PDA

View Full Version : Bilboard depending on actual OS display resolution



MichalCh
10-29-2007, 06:36 AM
I would like to have possibility of recognizing in the script what is actual resoulution of the windows desktop . It is important for me for useing different billboard .bmp - different sized files, depending on OS resoulution actual on the end user's PC.

Maybe U can advice me, is there a special OS register variable having this info?

Or any other idea how to ...

Regards
Michał

andrea
10-29-2007, 07:19 AM
Michał,

You can use the "Get System Information (Screen Resolution) script function ;)

Does this help?

Andrea

MichalCh
10-29-2007, 09:32 AM
Yes ! Thanks a lot ;-) It is generally ok


... but we 'get' only larger dimension of ( screen ) rectangular .

Sometimes graphic card have 'exotic ' resolution like of mine:
1280 x 1024 , 1280 x 960 , 1280 x 768, 1280 x 720, 1280x600.
In this case SB got only 1280 for each one of them. To provide 'universal' bilboard I'd have to make 1280x1024 bmp but remember that rest of mensioned above resolution during setup process cut off some 'information' on the bottom of my bilboard, isn't it.
Is there possibility to get second smaler dimension of the screen?

Thanks once more 4 all help.
M.Ch.

linder
10-29-2007, 10:19 AM
Michal,

No problem. Use the following CallDll function ;)

The %_SB_RETURN% holds the height of the screen of the primary display monitor, in pixels.

Does this help?

Friedrich

MichalCh
10-30-2007, 02:29 AM
Yes , this is what I am looking for.

Thank you Friedrich