FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TPages from source
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TPages from source
Posted: Tue May 22, 2007 06:59 PM
Hi,

is anyone using the tpages-class creating pages from source ?

I have great problems creating a page control and placing controls on the page. The coordinates (nTop,nLeft,nBottom,nRight) does not seem to be pixel coordinates nor text coordinates.

DEFINE DIALOG oDlg FROM  0, 0 TO 690,910 TITLE 'Event' PIXEL ;
          FONT oFnt1 COLOR CLR_BLACK,CLR_HGRAY

oPage := TPages():New(0,0, oDlg:nHeight-20,oDlg:nWidth, oDlg)


the sample above creates a page which is greater than the dialog itself. Why ?

Do I miss something ?

Stefan
kind regards

Stefan
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: TPages from source
Posted: Tue May 22, 2007 07:32 PM
Try adding

ACTIVATE DIALOG oDlg;
         ON INIT oPage:Move( 0, 0, oDlg:nHeight-20, oDlg:nWidth )


EMG
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TPages from source
Posted: Wed May 23, 2007 08:13 AM

Enrico,

thanks for your tip, but it does not work.

The result is, that the height of the page is greater than the height of the dialog and the width is smaller than the dialog width

I tried to insert a picture here, but I did not succeed. How can insert picture from the local disk ?

What now?

Stefan

kind regards

Stefan
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
TPages from source
Posted: Wed May 23, 2007 08:17 AM
Stefan,

There is a small typo in Enrico's code:
ACTIVATE DIALOG oDlg;
         ON INIT oPage:Move( 0, 0, oDlg:nWidth, oDlg:nHeight-20 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TPages from source
Posted: Wed May 23, 2007 09:12 AM

Antonio,

It´s working now

thanks

kind regards
Stefan

kind regards

Stefan
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
TPages from source
Posted: Wed May 23, 2007 10:16 AM
Antonio Linares wrote:There is a small typo in Enrico's code:


Sorry.

EMG

Continue the discussion