I need my Express application to fill the complete screen (cash-register application).
To titlebar, Windows startmenu is hidden under the application.
So a real full-screen.
I almost got it right, but I get a grey-space in the top of the dialog, just between the menubar and the red button.

The red button should be just 5 pixles below the menubar.
In "Normal" mode, the resize option takes care of resize a toolbar and other controls without problems..
What is my mistake?
See attached 2 screen shots.
The first is full screen with the grey-space in the top. (Light-grey, you need to look carefully)
The second is the normal dialog
Regards,
Jack Duijf
Code: Select all
Procedure ToggleFullScreen()
LOCAL oDlg := GetApplication():MainForm (Dc_Dialog1, main app dialog)
LOCAL oRect := nil
If oDlg:TitleBar
oDlg:TitleBar := FALSE
oDlg:Border := XBPDLG_NO_BORDER
oRect := GetDesktopRect() // Get screen dimensions (1920 x 1200)
oDlg:SetPosAndSize({0,0},{oRect:Right,oRect:Bottom}) // Set full screen
oDlg:Configure() // Removes titlebar and borders
Else
oDlg:Border := XBPDLG_SIZEBORDER
oDlg:TitleBar := TRUE
oDlg:Configure() // Titlebar and border are back again.
Endif
Return