Detecting XP Theme or Classic Mode (OpenInsight 32-Bit)
At 09 APR 2008 02:05:31PM Richard Guise wrote:
Returning to the messy old subject of edit table borders…
Does anyone know of a simple way to detect inside OI whether the workstation is running XP in Theme or Classic mode?
I have an option in my own ini file so that pre-XP edit tables adjust size on loading if the flag is set. It would be much nicer to auto-detect.
At 09 APR 2008 02:16PM S Mecklenberg wrote:
Richard:
is this what you are looking for?
desktopTheme=Get_Property('SYSTEM','THEMED')
I check to see if users are running an XP theme - so I can tell them to disable it - as the form display does have unpredictable results sometimes if themes are present.
Regards, Stacy
At 10 APR 2008 05:03PM Richard Guise wrote:
Stacy
Many thanks - that one slipped into the manual when I blinked. I've looked that up in OI help and themes in Win help. I must confess that I got used to Classic and that's what I've stuck with.
To save me lots of experimenting, can you tell me if Get_Property('SYSTEM','THEMED') returns 0 for Classic but non-zero for all non-Classic? If one just has the default non-Classic (without fancy themes) does that return non-zero (or what?).
Richard
At 11 APR 2008 04:56AM Richard Guise wrote:
Stacy
A "PS". Since last posting I've checked this out and it seems it does indeed return 1 if non-Classic, even if Classic has been modified.
FWIW the purpose is that I have a promoted event on creating edit tables (all painted in Classic, mostly before themes appeared). Apart from other purposes, the edit table's size is increased by 2 pixels in each direction if "themed" (now auto rather than my config setting) to solve problems of thicker table border when themed.
Thanks again for pointing me in the right direction.
Richard
At 11 APR 2008 10:17AM S Mecklenberg wrote:
Richard, I am running into this of late as MS display properties are becoming an issue in the edittable.
in TS I need to keep the users from making changes to display properties as it impacts the form when entering the data.
the latest one was interesting, if "selected items" in MS display properties (appearance tab, advance pb, selected items) if color is a dark color, then it overrides my COLOR_BY_POS settings in the edittable when i use the TAB key, ENTER key or the arrow keys, so user cannot "see" SELPOS in the edittable.
I have written a script for TS users in the login process that hardcodes this setting as I could find no where in MS where I can access this function in windows and change programmatically.
Regards, Stacy
At 14 APR 2008 08:16AM Richard Guise wrote:
It all seems to stem from giving users choice how their screens look!
Back with ARev I had an adventurous client who made foreground and background the same colour and then complained about the display!
Users should be given less choice - not more!
Cheers
Richard