Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child in a child in a child in a child...
Message
From
31/07/2006 17:53:49
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01141898
Message ID:
01141956
Views:
17
>Hallo everybody.
>I have a question in thread ID: 1140897. I have tried myself and I have asked friends about it. But nowhere I found any solution.
>
>So, my simple question is:
>Is it totally impossible to do a childform inside another childform when I use the formdesigner? (Or a child in a "no toplevel form" placed in "_screen"?)
>If I use "define window" I can create a window inside an other window, and create a new window in that one, and so on, as many levels I want. But in that case I cant use the formdesigner to create and place objects in the forms, so that is no solution.
>
>Does anyone have any comments about this.
>I am so frustrated.
>Have a nice day
>/Kjell
CLEAR

MODIFY FORM new1 nowait
* move the form in screen
show WINDOW form1 IN screen
* OS ref
=ASELOBJ(ax,3)
?ax[1].hwnd
MODIFY FORM new2 nowait
?ASELOBJ(ay,3)
?ay[1].hwnd
ay[1].Caption = "Form2"

DECLARE SHORT SetParent IN WIN32API LONG, LONG

* Move Form2 into Form1
SetParent(ay[1].hwnd,ax[1].hwnd)

MODIFY FORM new3 nowait
?ASELOBJ(az,3)

az[1].Caption = "Form3"

* Move Form3 into Form2
SetParent(az[1].hwnd,ay[1].hwnd)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform