Mailing List ecs-isp@2rosenthals.com Archived Message #1095 | tilbake listen |
|
---|
On 11/12/24 11:46, Alfredo Fern�ndez D�az wrote:<snip>
On 2024/12/10 11:42, Peter Moylan wrote:
Not really, there is a reason for everything. Apparently all code
dealing with VIO windows lives in PMVIOP.DLL, and the function that
handles the VIO default font size reads string #153 from that DLL to use
it as the key name. The string in question corresponds to the menu item
that invokes (surprise!) the dialog that lets you adjust VIO font size.
Naturally, the string is NLS-dependent, and complying with CUA, it ends
in '...' to signal that it will invoke a dialog, rather than execute
some action right away.
Interesting stuff. I wouldn't have guessed any of that.
In the end, I implemented a very simple solution. Here's the complete script.
/* Wrapper to set font size and then run accounts. */
CALL RxFuncAdd SysLoadFuncs, rexxutil, sysloadfuncs
CALL SysLoadFuncs
oldsize = SysIni("USER", "Shield", "~Font Size...")
rows = 22
cols = 12
newsize = D2C(cols)||D2C(rows)
result = SysINI( "USER", "Shield", "~Font Size...", newsize)
'start /C /WIN D:\accounts\accounts.exe'
result = SysINI( "USER", "Shield", "~Font Size...", oldsize)
I could have done something fancier if I put more time into it, but for now I
have higher-priority problems to look at.
<snip>I see. After some digging at the new Hobbes archive, a little GPL
utility called 'Console' turned up, that does just that: it will adjust
similar. I seem to recall some old WPS enhancer also included another
command-line utility that could do it, more or less, but I forget which
one -- X-it, Nice, NPS...?
Thanks. I've saved that information to look at later when I have more time.
Abboner: Feed,
Digest,
Index. Stopp abbonement E-post til ListMaster |