Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 20 MAR 2000 12:24:34PM B. Cameron wrote:

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


At 20 MAR 2000 12:33PM B. Cameron wrote:

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.


At 20 MAR 2000 12:44PM Matt Sorrell wrote:

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

msorrel@greyhound.com


At 20 MAR 2000 12:45PM Matt Sorrell wrote:

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

msorrel@greyhound.com


At 20 MAR 2000 01:18PM Don Bakke wrote:

Bruce,

The easiest method is to use the SIZE property of the SYSTEM.

dbakke@srpcs.com

SRP Computer Solutions


At 20 MAR 2000 01:35PM B. Cameron wrote:

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.


At 20 MAR 2000 02:40PM Don Bakke wrote:

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.

dbakke@srpcs.com

SRP Computer Solutions


At 20 MAR 2000 04:05PM B. Cameron wrote:

Ahh that word that Homer Simpson says goes here….

Thanks Don!!

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/33795f1b0ee04a8a852568a8005a23d1.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1