Dialog units for "DEFINE DIALOG"

Dialog units for "DEFINE DIALOG"

Postby alexstrickland » Tue Sep 11, 2007 9:45 am

If I wish to create a dialog into which these two fields will fit:

@ 10, 10 SAY cVar1 VAR oVar1 OF oDlg SIZE 50, 10 PIXEL
@ 20, 10 SAY cVar2 VAR oVar2 OF oDlg SIZE 50, 10 PIXEL

what calculation can I use to decide the dimensions nY and nX to use in :

DEFINE DIALOG oDlg FROM 0, 0 TO nY, nX TITLE "Dialog" PIXEL ?

In another way my question is what units do I use for the "DEFINE DIALOG"?

It does not seem to be straight forward (like 30 and 50, even if that would be a bit small).

TIA
Alex
alexstrickland
 
Posts: 23
Joined: Thu Aug 30, 2007 8:52 am

Re: Dialog units for "DEFINE DIALOG"

Postby Enrico Maria Giordano » Tue Sep 11, 2007 11:57 am

Try to move and/or resize all during ON INIT phase.

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

Postby alexstrickland » Wed Sep 12, 2007 7:09 am

Enrico

Thank you, a clever tip, it makes things really quite simple.

Regards
Alex
alexstrickland
 
Posts: 23
Joined: Thu Aug 30, 2007 8:52 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests