Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-03

Win32 fullscreen

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

[...This is actually a question regarding fpGUI...]

How do I switch an existing Form or a new form to fullscreen mode? Under X11 I simply send a NetLayer naWM_STATE_FULLSCREEN message to the window. Any such luck under Windows?

So far I have found there possible options... Are there any better ones I haven't found yet?

Option #1:
Override GETMINMAXINFO to maximize so that the client area would be the display size. Use AdjustClientRect to find out the size..

Option #2:
WS_POPUP + SW_SHOWMAXIMIZED (XP at least)

Option #3:
Similar to #2. Create a popup window exactly the size of the desktop and positioned at 0,0. Do not use the WS_CAPTION, WS_MINIMIZEBOX, WS_MINIMIZEBOX, or WS_SYSMENU styles.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email