FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour resizing dialog defined from resource
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
resizing dialog defined from resource
Posted: Fri May 09, 2008 05:55 PM

Hello there!

This is my first post here so please be gentle with your replies... 8)

I defined a dialog from workshop that looks like this:

......
CBS_DETAIL DIALOG 1, 1, 100, 100
STYLE WS_CHILD | WS_BORDER
FONT 10, "Courier"
{
}
......

then in my .prg:

......
DEFINE DIALOG oDlg RESOURCE "CBS_DETAIL";
FROM 1,1 TO oChildWnd:oWndClient:nHeight - 1, oChildWnd:oWndClient:nWidth - 2;
SIZE oChildWnd:oWndClient:nHeight - 1, oChildWnd:oWndClient:nWidth - 2;
OF oChildWnd PIXEL

          ACTIVATE DIALOG oDlg NOWAIT

......

BUT STILL I CAN'T RESIZE IT....

can anybody toss the salad for me here... it would be a great help.

-i'm using FW2.4 and xHarbour 1.0b

My regards.

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
resizing dialog defined from resource
Posted: Sat May 10, 2008 02:35 AM

Was able to SOLVED IT!

I add this:

oRect := oChildWnd:oWndClient:GETCLIRECT()

....

and this:

ACTIVATE WINDOW oChildWnd;
ON INIT ( oDlg:Move( 1,1,oRect:nRight, oRect:nBottom, .T.)

....

I hope this works with other controls too like oFolder define within dialog (as resource)

....

Is there better coding for this solution?

THANKS! 8)

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
resizing dialog defined from resource
Posted: Sat May 10, 2008 07:16 AM

It is fine :-)

You can also use oDlg:SetSize( nWidth, nHeight, lRepaint ) instead of Move()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
resizing dialog defined from resource
Posted: Sat May 10, 2008 08:15 AM

Thanks so much senior Linares! 8)

I also use oDlg:Resize(...) when I only need the dialog/object to expand.

My best regards,

Mr. Frances A. Padilla
International Elevator & Equipment, Inc.

www.iee.com.ph

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15

Continue the discussion