Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Placing windows in other windows
Message
From
03/10/2001 03:30:36
 
 
To
02/10/2001 19:45:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00563299
Message ID:
00563452
Views:
11
Hi!

In addition, to answer the question "And can this association be changed on the fly?" - YES, you can use SHOW WINDOW ... IN WINDOW ... command.

But beware, your form should be modeless. Otherwise you will require to call Form.SHOW() to activate main form after making visible child form defined that way. Ina ddition, child form will not accept any clicks. In modeless form clicking on child form will move focus from controls in maing form to child form (amd, maybe, to the control inside of the child form, if any).


>>Is there a way to instantiate a form, and tell the system that this form is a window that is inside the window of another form (like IN WINDOW for windows created in the Fox2.6 way)? And can this association be changed on the fly?
>>
>>JON MELVIN
>>jdm@vi-i.com
>
>You can define a window in the FPW2.6 way and place it inside of a form, but not another VFP form. For example:
>
Define Window myWindow At 5,1 Size 13, 45;
>	In Window frmEditor Name oEditor
>oEditor.Visible = .t.
>Where frmEditor is your existing form. Once created you can treat it like another VFP form, for the most part. Notice the use of the Visible property instead of the FPW Activate Window equivalent. I haven't tried to change the association to another form though.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform