I have a GUI program that starts thus:
Code: Select all
mode = ScreenList(32)
While (mode)
hres = HiWord(mode)
vres = LoWord(mode)
mode = ScreenList
Wend
'-------------------------------------------
ScreenRes hres,vres, 32, ,&h04
But when I run the program on another PC (15" monitor), it reads a screen resolution of 1600 x 1280, whereas the PC has been set to 1024 x 768 resolution. So my program does not display properly (very tiny font etc)
So I changed my code to force hres & vres to be 1024 x 768, rather than use the code above to find the best available screen size.
1. How can I correctly read the screen setting as set by the user (800x600, or 1024 x 768, etc)
2. The mouse pointer is constantly flickering while inside my program window (on the other PC). This does not happen on my PC.
3. I have a few buttons (coded in FB) inside my window. The buttons in the upper half work properly when I click on them. But the buttons near the window bottom - I have to click slightly below them for them to work (getmouse() not reporting correctly ?). Again this problem is not there on my PC, but on the other PC.
I noted that the other PC was of a poorer configuration than mine (512kb RAM, 15" monitor etc) than mine (2GB RAM, 19" monitor) .
How may I solve these issues ?
--Thanks !!