Forum Home
Press F1
 
Thread ID: 33513 2003-05-18 02:05:00 Delphi - Screen Resolution Poolee (3823) Press F1
Post ID Timestamp Content User
145337 2003-05-18 02:05:00 Hi

I'm relatively new to Delphi, so I don't all the tricks. Some tricks seem to be harder to come by than others despite spending numerous hours searching via google etc.

I need a way to check the computer's current resolution from Delphi, 800x600 etc. I don't need to change, I just need to find out what it is. Couldn't find anything anywhere.

Somebody please help!

Many thanks
Paul
Poolee (3823)
145338 2003-05-19 11:57:00 Not sure if it is actually what you want but set the window to maximise and it will utilize the full screen. You also need to set the parent window to maximise. mikebartnz (21)
145339 2003-05-19 19:30:00 Cheers Mike

I actually did something very similar in the end... I had a child window which wasn't used until later in the program. So, on activation, I made it a transparent window, un-hid it, set its border to none, maximised it, read the width and height, un-maximised it, and set all its settings back to normal. Works like a charm, and the user doesn't see anything!

I'm sure this is a pretty neat work-around, but it would be nice to use some smaller, faster code...

Paul
Poolee (3823)
145340 2003-05-19 23:24:00 There is a way to get the screen res but I can't remember off hand and will have to delve into Delphi sometime to find it. mikebartnz (21)
1