Hi, I entered the following code into my Data Dialog windows' POSTINIT method:
method PostInit(oWindow,iCtlID,oServer,uExtra) class MainMenu
//Put your PostInit additions here
self:SetStyle(WS_CAPTION,FALSE)
self:EnableSystemMenu(.f.)
self:EnableStatusBar(.f.)
self:EnableBorder(WINDOWNOBORDER)
// SetWindowPos( self:Handle(), 0, 0, 0, 0, 0, _or (SWP_NOMOVE ,SWP_NOSIZE))
return nil
To remove the entire caption bar at the top. Thats worked, but what's with the light gray area at the bottom and right margin? I've experimented with the window size, position of buttons etc, the screen changes in layout as per my changes, but those areas always remain exactly the same. See screenshot below:
Thanks again folks.
Problem with with Data Dialog Window
-
- Posts: 774
- Joined: Wed May 17, 2017 8:50 am
- Location: Germany
Problem with with Data Dialog Window
Hi Jeff,
try
RefreshFrame ( SELF:Handle() )
after the
self:EnableBorder(WINDOWNOBORDER)
regards
Karl-Heinz
try
RefreshFrame ( SELF:Handle() )
after the
self:EnableBorder(WINDOWNOBORDER)
Code: Select all
FUNCTION RefreshFrame( hWnd AS PTR ) AS VOID PASCAL
SetWindowPos ( hWnd , hWnd ,;
0 , 0 , 0 , 0 , _OR ( SWP_DRAWFRAME , SWP_FRAMECHANGED ,;
SWP_NOSIZE , SWP_NOZORDER , SWP_NOMOVE ) )
RETURN
Karl-Heinz
Problem with with Data Dialog Window
Genius! Thanks very much Karl-Heinz, that worked a treat!