I know this has been discussed before but I could not find a thread.
Can anyone help out with how to find out a clients monitor resolution
through OI.
If I could determine this, then I could send the user the larger or smaller form depending on what they've got.
TiA
Ok after little digging I would like to re-phrase my question.
In OI how would I read the registry data value…?
HKEY_CURRENT_CONFIG/Display/Settings/Resolution
If I got this I could just launch a specific form.
I have some functions in an Access book of mine that are supposed to make API calls and retrieve current screen information. I would be more than happy to email them to you if you would like.
I've never tried them, so I don't know how well they work.
Email me if you're interested.
Matt Sorrell
Actually, as I read some more in my book, they are designed to automatically rescale a given form to display at a resolution other than the one it was designed in.
I would think that with some modification they could be made to work with OI, as long as resizing controls doesn't violate any of the licenses you might be deploying under.
Matt Sorrell
Bruce,
The easiest method is to use the SIZE property of the SYSTEM.
Don,
Well I could be I believe it would be easier and quicker to
have 2 forms. If I could get to the registry value then I
can do an "If Then" or "Case" statement to launch the form
I want for that resolution.
Bruce,
That's what I am talking about. Instead of trying to use the Registry to get the resolution you can use:
Resolution=Get_Property("SYSTEM", "SIZE")
Width=Resolution
Height=Resolution
Begin Case
…
…
End Case
This is documented under the SIZE property in the PRG.
Ahh that word that Homer Simpson says goes here….
Thanks Don!!