Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem, UiEnable fire before Page.Activate
Message
From
23/10/2003 12:26:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/10/2003 11:32:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841599
Message ID:
00841648
Views:
20
>Hi,
>
>this is a Old Bug ? I see this on VFP6/7/8.
>
>On a VCX, a pageframe initialization events is:
>
>Page1.Init
>....
>PageN.Init
>* Now ActivatePage property is read
>* On any control on ActivatePage
>Uienable(.T.)
>....
>Uienable(.T.)
>Pageframe.Init
>.....
>Form.Init
>pageframe.ActivatePage.Activate
>Form.Activate
>.....
>
>I aspected
>
>Page1.Init
>....
>PageN.Init
>* Now ActivatePage property is read, but not events fire
>Pageframe.Init
>.....
>Form.Init
>pageframe.ActivatePage.Activate
>* On any control on ActivatePage
>Uienable(.T.)
>....
>Uienable(.T.)
>Form.Activate
>.....
>
>
>On SCX UiEnabled not fire, not before, not after;
>instead fire a Deactivate of the default page.
>
>Then, is hard to build a general pageframe, good on SCX and VCX.
>
>Fabio

No it's not an old bug because it's not a bug.

From help as is :
"Parameters
lEnable
Contains a logical value that specifies whether the page that the object is contained within is being activated or deactivated. If lEnable is true (.T.), the page that the object is contained within is being activated (becoming the active page). If lEnable is false (.F.), the page is being deactivated (becoming the inactive page).
Remarks
Use the UIEnable event to specify any action you want to occur for an object or control when the page that it is contained within is activated or deactivated.

The UIEnable event does not occur for pages when the form is initially activated. The UIEnable event occurs only when a page is programmatically or interactively activated or deactivated."

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