Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

Problem with with Data Dialog Window 21 Dec 2019 14:49 #12340

  • BiggyRat
  • BiggyRat's Avatar
  • Topic Author



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.
Attachments:

Please Log in or Create an account to join the conversation.

Problem with with Data Dialog Window 21 Dec 2019 17:17 #12341

  • Karl-Heinz
  • Karl-Heinz's Avatar


  • Posts: 774
  • Hi Jeff,

    try

    RefreshFrame ( SELF:Handle() )

    after the

    self:EnableBorder(WINDOWNOBORDER)

    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

    Please Log in or Create an account to join the conversation.

    Problem with with Data Dialog Window 22 Dec 2019 02:08 #12342

    • BiggyRat
    • BiggyRat's Avatar
    • Topic Author



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

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1