FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dialog units for "DEFINE DIALOG"
Posts: 23
Joined: Thu Aug 30, 2007 08:52 AM
Dialog units for "DEFINE DIALOG"
Posted: Tue Sep 11, 2007 09: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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Dialog units for "DEFINE DIALOG"
Posted: Tue Sep 11, 2007 11:57 AM

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

EMG

Posts: 23
Joined: Thu Aug 30, 2007 08:52 AM
Dialog units for "DEFINE DIALOG"
Posted: Wed Sep 12, 2007 07:09 AM

Enrico

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

Regards
Alex

Continue the discussion