Question about dialog box

Question about dialog box

Postby driessen » Mon Jul 12, 2010 3:27 pm

Hello,

If I use a dialog box from resource, how can I prevent that the size of the dialog box is changed by the user ?

Thank you very much in advance for any help.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Question about dialog box

Postby Antonio Linares » Mon Jul 12, 2010 6:31 pm

Michel,

Do you mean that the user resizes the dialogbox with the mouse on runtime ?

Or that the resources are modified ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Question about dialog box

Postby driessen » Mon Jul 12, 2010 7:22 pm

Antonio,

Thanks for your attention.

What I mean is this : I don't want the users to change the size of some dialog boxes, created from resources.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Question about dialog box

Postby Antonio Linares » Mon Jul 12, 2010 11:05 pm

Michel,

If you use these styles for the dialog:
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU

then the border is not resizeable and the user can not change it.

Are you placing the dialog box inside a MdiChild window ? How can the user resize the dialog ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Question about dialog box

Postby driessen » Tue Jul 13, 2010 1:00 pm

Antonio,

I already use these styles in my dialog boxes. But the user still can change the size by using the mouse.

I'm not talking about a dialog box inside a MdiChild window, just an independant dialog box.

Thanks a lot.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Question about dialog box

Postby James Bott » Tue Jul 13, 2010 1:08 pm

Michel,

None of my dialogs are resizable. What resource editor are you using? Can you show us a screenshot of a dialog that is resizable? Can we see the section of the resource file that contains a resizable dialog?

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

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