FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Create MDI in dialog?
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Create MDI in dialog?
Posted: Mon Jan 21, 2013 07:52 PM
Can this be done?

Code (fw): Select all Collapse
tela normal
 
+----------------------+
|      dialog          |
|                      |
|                      |
|                      |
|                      |
+----------------------+
Desired
+----------------------+
|      dialog          |
|                      |
|  +--------+          |
|  | MDIDLG |          |
|  +--------+          |
+----------------------+
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Create MDI in dialog?
Posted: Tue Jan 22, 2013 07:31 AM

I think not.

-make mdi window (frame) ..create dialog as child to this frame.
-make mdi window child (frame as parent).. create dialog as child to this mdi child

my two cents.

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: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Create MDI in dialog?
Posted: Tue Jan 22, 2013 10:27 AM

I have a dialog that I redefine from resource, and I wanted to add a MDI child to that dialog...

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Create MDI in dialog?
Posted: Tue Jan 22, 2013 12:01 PM
FUNCTION DLG_MAIN()
LOCAL oDlg1

DEFINE DIALOG oDlg1 RESOURCE "MAIN" TITLE "Main-Dialog" TRANSPARENT
...
...
ACTIVATE DIALOG oDlg1 CENTER ;
ON INIT DLG_CHILD( oDlg1 )

RETURN( NIL )

// ------------------

FUNCTION DLG_CHILD( oDlg1 )
LOCAL oDlg2

DEFINE DIALOG oDlg2 OF oDlg1 RESOURCE "CHILD" TITLE "Child-Dialog" TRANSPARENT
...
...
ACTIVATE DIALOG oDlg2 NOWAIT

RETURN NIL

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Create MDI in dialog?
Posted: Tue Jan 22, 2013 01:31 PM

Uwe, can you post a image of how this will work?

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2

Continue the discussion