Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form(s) within another
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01058371
Message ID:
01058462
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>We are trying to activate one or more guest forms within a host form. The only way we could find is
>
ACTIVATE WINDOW (frmGuest.Name) IN WINDOW (frmHost.Name)
>Are we asking for trouble handling forms through ACTIVATE WINDOW?
>
>TIA

Sorin,

I don't know about what trouble you might run into with the ACTIVATE method, but here is another way.
PUBLIC otopform
otopform = CREATEOBJECT("topform")
otopform.show()
DEFINE CLASS topform as Form
	mdiform = .t.
	showwindow =2 && As top level 
	backcolor = RGB(255,255,255)

	ochild = null
	FUNCTION click()
		this.ochild = CREATEOBJECT("childform")
		this.ochild.show()
	ENDFUNC 
ENDDEFINE 

DEFINE CLASS childform as Form
	mdiform = .f.
	showwindow =1 && in top level 
	backcolor = RGB(0,0,200)
	FUNCTION click()
		thisform.Release() 
	ENDFUNC 
ENDDEFINE 
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform