FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about dialog box
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Question about dialog box
Posted: Mon Jul 12, 2010 03: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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Question about dialog box
Posted: Mon Jul 12, 2010 06: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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Question about dialog box
Posted: Mon Jul 12, 2010 07: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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Question about dialog box
Posted: 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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Question about dialog box
Posted: Tue Jul 13, 2010 01: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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Question about dialog box
Posted: Tue Jul 13, 2010 01: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion