|
Post by George on Mar 20, 2023 14:13:16 GMT -5
Robert: Re: partial font sizes.
OK, Word (and others) may support fractional font pitches, but all the API interfaces for font selection dialogs define the parameter as an integer variable. I suspect Word (and co.) are using custom dialog boxes to support this. If it is possible the value will have to be entered specifically. And I'd still have to alter all my variables to Real.
Still worth exploring?
George
|
|
|
Post by George on Mar 20, 2023 14:14:24 GMT -5
Stefan: What setting options do you see for the MouseWheel? It's not clear from your post.
George
|
|
|
Post by Robert on Mar 20, 2023 14:50:20 GMT -5
George, I tested beta 079 and ran the macro that previously caused a loop error. Whatever you did to correct it worked. The macro always was somewhat long-running, but with the scroll bar enabled, it is no MORE long-running than previously. I would say you found the problem. Thanks. As far as fractional sizes, in terms of your support for them, keep in mind that the ONLY fraction allowed is 0.5 and nothing else. You could 'scale' your font-size values by doubling the integer value and using a low-bit of 1 to mean 0.5. If you did that, all your variable definitions could stay as integer. You may be right that MS has a custom font dialog. Notepad requires an integer. I know some software won't even allow all integer values. NotePad++ demands the font size to be an even number, not just an integer. An internet search got me this: learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms646914(v=vs.85)ChooseFont function learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-choosefontaCHOOSEFONTA structure This allows you to select a font, and the "point size" is an integer scaled to 1/10th of a point. I think MS Word just uses a later, more capable API.
|
|
|
Post by Robert on Mar 20, 2023 15:12:15 GMT -5
Just found this in the PB help under FONT NEW Statement:
"points! Size of the font, in points. This may be specified as a value for fractional point sizes."
It seems like they omitted a word in the description of "points", like they meant "string value" instead of "value".
Maybe this will help?
|
|
|
Post by Stefan on Mar 20, 2023 15:38:08 GMT -5
George,
SPFLite has the setting on OPTIONS - GENERAL - No of columns/lines per Auto-Scroll (BTW ... why "AUTO" scroll? Puzzles me what is 'auto' about it.
Windows 10
Go to Settings - Devices - Mouse
On that page you have...
Roll the mouse wheel to scroll box (default is 'lines' alternative is 'screens')
Choose how many lines to scroll each time
And under Related settings you have Additional mouse options
This last one takes you to your mouse driver's specific capabilities which may vary depending on what's installed. I use a Lenovo Laser wireless mouse.
On the Wheel tab (part of the MS standard offering, I think) I see the number of lines to scroll per mouse 'notch'.
This is the same value as the one set by 'Choose how many lines to scroll..." above. I note that the slider sets this value, but setting the value here doesn't re-align the slider! Good ol' MS!
|
|
|
Post by Robert on Mar 20, 2023 15:47:59 GMT -5
After much more searching, it seems like the font issue is a giant, bottomless rabbit hole. Unless you know something here, I don't understand how Word allows for fractional point sizes.
It's an enigma wrapped in an API buried in a WIN32 document, somewhere or other.
|
|
|
Post by Robert on Mar 20, 2023 17:32:46 GMT -5
Wow, am I confused. My thought about fractional font sizes was based on the idea that if I changed my font from Courier New 13 to 12.5 I'd get maybe 1 or 2 extra columns to "make room" for the scroll bar.
Surprise! I changed the a full point to 12. Guess what? NO DIFFERENCE. With EITHER 13 or 12, I get 118 columns.
How that's possible, I don't know, but I tested it 3 times to make sure I didn't confuse something. Nope.
If I really needed extra characters, I would either chop off 1 position on the line command area, or pick a different font with "condensed" characters, or buy a new monitor that is wider (mine is NOT one with HDTV dimensions).
Long story short: A total red herring. No need to support fractional fonts. None.
|
|
|
Post by Robert on Mar 20, 2023 18:09:31 GMT -5
One last word (right) about fonts. I tried Consolas Bold at 12 point. It is very readable (even with my crummy eyesight) and on my monitor the max length went from 118 to 132.
Anyone still wringing their hands over "losing" a column or two ought to try Consolas. I think you will be pleased how it looks.
|
|
|
Post by George on Mar 21, 2023 8:22:10 GMT -5
I tried Consolas, not bad. If I go full screen I get 35 x 143. Not that it matters, I never use full screen, I usually use windowed and it becomes 32 x 117.
George
|
|