Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form(s) within another
Message
 
To
12/10/2005 17:43:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01058371
Message ID:
01058529
Views:
10
>>
ACTIVATE WINDOW (frmGuest.Name) IN WINDOW (frmHost.Name)
>>Are we asking for trouble handling forms through ACTIVATE WINDOW?
>>
>
>1. forms name must to be unique
>a my big wish is for ( emulate SetParent() API):
>
>ACTIVATE WINDOW (frmGuest.hwnd) IN WINDOW (frmHost.hwnd)
>
>
>2. ACTIVATE WINDOW it is equal to .Visible = .T.,
>but it is not equal to .Show

Hi Fabio,

1. I agree that forms name conflict may be an issue, thus something like ACTIVATE WINDOW (frmGuest.hwnd) IN WINDOW (frmHost.hwnd)would be better than ACTIVATE WINDOW childname IN WINDOW parentname, though SetParent API is easily accesible. Thanks for the SetParent suggestion.

2. I disagree. ACTIVATE WINDOW seems to be equivalent to form.Show (with no arguments); the form.Activate event is raised.

My concern is that the help on ACTIVATE WINDOW states that it should be used on windows created with DEFINE WINDOW. I am not sure what impact this would have on windows created as forms.

Thanks,

Sorin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform