Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe issues
Message
From
31/07/2007 08:49:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
31/07/2007 08:33:56
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01243049
Message ID:
01244829
Views:
25
Mike,

all what you need is a invisible object on each page. You can use the UIEnable of this object to refresh or wathever. I've had problems with Activate (for example it fires if you switch betweeen forms)

My Pageframe Class INIT event simply adds a object of a special class to each page (adding pages during runtime does it as well)

The pageframe has a AfterPageChanged Event. This is called from extra objects UIENABLED. So all I need to do is code the AfterPageChanged event, all other stuff is done somewhere in the classes. For all of mage pageframes.

Agnes
>Thanks Agnes.
>
>I'll look into this tip, however, I'm doubting it is going to work since I don't have any objects in any of the pages.
>
>I did change it to put the code into the activate event of the pages and that works.
>
>Mike
>
>>Mike,
>>
>>once I had a similar problem.
>>My solution was finaly the use of UIEnable of an object on the page. If you need further instruction how to use this, let me know.
>>
>>Agnes
>>
>>>I have a pageframe on the right side of my form. It has 23 pages with tabs positioned along the right side to act like a quick index ("Rolodex style"). I've put code into the click event of the pages to set a filter and refresh a grid on the same form. This works great as long as I literally click on the tab with the mouse. If I use the keyboard to pick a tab and press spacebar or enter, nothing happens.
>>>
>>>Why does the spacebar not trigger a Click event in this case (similar to a button, checkbox, option group, etc.)? Just so you know, there are no controls on the 23 pages so nothing is really getting focus in the pageframe other than the tab itself. I can see a dashed outline when I keyboard to them.
>>>
>>>TIA.
>>>Mike
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform