How to block size of window/dialog

How to block size of window/dialog

Postby Maurilio Viana » Wed Nov 30, 2005 12:33 pm

Hello!

I have a nonmodal dialog and I let the use redimension it.
But I want define the min and max size to redimension the dialog.
How can I do it?

Regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Re: How to block size of window/dialog

Postby Enrico Maria Giordano » Wed Nov 30, 2005 2:35 pm

This is a working sample:

Code: Select all  Expand view
// How to control authorized position, size and tracking dimensions
// Try to resize or maximize this window and see what happens!

#include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

   local oWnd

   DEFINE WINDOW oWnd FROM 3, 6 TO 100, 100 PIXEL ;
      TITLE "Welcome to FiveWin" ;
      COLOR "W+/B"

   @ 2, 2 SAY "Resize me" OF oWnd SIZE 100, 20

   oWnd:aMinMaxInfo = { 200, 200,;  // xMaxSize,      yMaxSize
                         50,  50,;  // xMaxPosition,  yMaxPosition
                         80,  80,;  // xMinTrackSize, yMinTrackSize
                        150, 150 }  // xMaxTrackSize, yMaxTrackSize

   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How to block size of window/dialog

Postby Maurilio Viana » Wed Nov 30, 2005 4:00 pm

Thanks a lot, Enrico!!!!

Best regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 78 guests