xsharp.eu • Problem with with Data Dialog Window
Page 1 of 1

Problem with with Data Dialog Window

Posted: Sat Dec 21, 2019 1:49 pm
by Anonymous
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:
Capture.JPG
Capture.JPG (45.68 KiB) Viewed 289 times
Thanks again folks.

Problem with with Data Dialog Window

Posted: Sat Dec 21, 2019 4:17 pm
by Karl-Heinz
Hi Jeff,

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

regards
Karl-Heinz

Problem with with Data Dialog Window

Posted: Sun Dec 22, 2019 1:08 am
by BiggyRat
Genius! Thanks very much Karl-Heinz, that worked a treat!