Problem with with Data Dialog Window

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
Anonymous

Problem with with Data Dialog Window

Post 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 139 times
Thanks again folks.
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am

Problem with with Data Dialog Window

Post 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
BiggyRat

Problem with with Data Dialog Window

Post by BiggyRat »

Genius! Thanks very much Karl-Heinz, that worked a treat!
Post Reply