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
07/10/2003 04:10:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00835178
Message ID:
00835654
Views:
19
Yes it wouldn't. It's the main form. The other form is in it.
Maybe it'd better for you to have the main fox window. You could remove titlebar, statusbar, menus, toolbars to make it just like a frame for the whole environment.
Cetin

>Hi Cetin,
>
>In your example, when I click on the first form (after having opened the second form), the first form gets focus but still won't come on top. So, it's not the solution.
>
>>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