Dialog dimensions (SOLVED)

Dialog dimensions (SOLVED)

Postby frose » Wed May 20, 2009 12:49 pm

Hello,

this sample:
Code: Select all  Expand view
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:
Image

- 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
Last edited by frose on Sat May 23, 2009 4:38 pm, edited 1 time in total.
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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Dialog dimensions

Postby StefanHaupt » Fri May 22, 2009 4: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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Dialog dimensions

Postby frose » Sat May 23, 2009 4: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 77 guests