Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In-Top-Level-Form prevents As-Top-Level-Form come on top
Message
From
06/10/2003 13:11:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00835178
Message ID:
00835455
Views:
15
Peter,
Is this what you want ?
PUBLIC oform1, oform2

oform1=NEWOBJECT("form1")
oform1.Show
read events
RETURN

DEFINE CLASS form1 AS form

	Top = 17
	Left = 102
	ShowWindow = 2
	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"

	ADD OBJECT command1 AS commandbutton WITH ;
		Top = 36, ;
		Left = 66, ;
		Height = 27, ;
		Width = 84, ;
		Caption = "Command1", ;
		Name = "Command1"


	ADD OBJECT command2 AS commandbutton WITH ;
		Top = 210, ;
		Left = 264, ;
		Height = 27, ;
		Width = 84, ;
		Caption = "Command2", ;
		Name = "Command2"


	PROCEDURE command1.Click
		oform2=NEWOBJECT("form2")
		oform2.Show
	ENDPROC


	PROCEDURE command2.Click
		thisform.release()
	ENDPROC
	Procedure QueryUnload
		clear events
	endproc
ENDDEFINE

DEFINE CLASS form2 AS form

	Top = 0
	Left = 0
	Height = 205
	Width = 327
	Desktop = .F.
	ShowWindow = 1
	DoCreate = .T.
	Caption = "Form2"
	Name = "Form2"


	ADD OBJECT command1 AS commandbutton WITH ;
		Top = 150, ;
		Left = 216, ;
		Height = 27, ;
		Width = 84, ;
		Caption = "Command1", ;
		Name = "Command1"


	PROCEDURE command1.Click
		thisform.release()
	ENDPROC

ENDDEFINE
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform