FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dialog dimensions (SOLVED)
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Dialog dimensions (SOLVED)
Posted: Wed May 20, 2009 12:49 PM
Hello,

this sample:
Code (fw): Select all Collapse
FUNCTION Main()

   LOCAL oDlg
   LOCAL lExit := .F.
   LOCAL oBtn

   DEFINE DIALOG oDlg FROM 5, 5 TO 40, 80 TITLE "A Dialog Box"

   @  1,  1 TO 4, 30 LABEL "&This is a LABEL for anything:" OF oDlg

   @  2,  2 CHECKBOX lExit PROMPT "This is a CHECKBOX with a long text description"  OF oDlg
   @  3,  2 CHECKBOX lExit PROMPT "This is a CHECKBOX with a long text description"  OF oDlg
   
   @  5,  4 BUTTON "&Ok" OF oDlg SIZE 40, 12

   @  5, 12 BUTTON oBtn PROMPT "&Cancel" OF oDlg SIZE 40, 12 ;
            ACTION( MsgInfo( "Cancel" ), lExit := .T., oDlg:End() )

   ACTIVATE DIALOG oDlg VALID lExit

RETURN nil


generates this output:


- What about the row hight? How to adjuste?
- The row hight seem to differ, is that normal?
- The lines of the LABEL are partly overwritten by the check boxes.
- How to adjuste the size of the controls?
- Is it opportune to change to PIXEL?

Thanks in advance for any help
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Dialog dimensions
Posted: Fri May 22, 2009 04:45 PM

Frank,

you can change the default size of controls in the ON INIT clause. With the PIXEL clause you can place the controls more exactly on the dialog.

kind regards

Stefan
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Dialog dimensions
Posted: Sat May 23, 2009 04:38 PM

Stefan,

many thanks for your tip.

It's really better to develop the dialogs with a resource compiler, e. g. 'Resource Builder' and not handmade.

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86

Continue the discussion