Page 1 of 1

Dialog units for "DEFINE DIALOG"

Posted: Tue Sep 11, 2007 9:45 am
by alexstrickland
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

Re: Dialog units for "DEFINE DIALOG"

Posted: Tue Sep 11, 2007 11:57 am
by Enrico Maria Giordano
Try to move and/or resize all during ON INIT phase.

EMG

Posted: Wed Sep 12, 2007 7:09 am
by alexstrickland
Enrico

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

Regards
Alex