Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActivePage Works Only During Trace/Debug
Message
From
03/08/2001 07:52:59
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
02/08/2001 19:35:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00538807
Message ID:
00539303
Views:
12
>>From a button on Page3 of a pageframe, calling SetFocus for an object on Page2 and setting ActivePage = 2 leaves Page3 visible instead of Page2. Except when I Suspend and then immediately Resume from the debugger it does display correctly. Is this a Refresh issue? I have used the Event Tracking, but still can't seem to see why Page2 will not display. Everything says that it should be, but it's not. Also, it seems that the Page3.Activate occurs right after the Page2.Object.SetFocus call from the button on Page3. Why would that happen? Event Tracking shows me when events are fired; is there anything that tells e why? Thanks!
>
>Small UI issue. If a condition makes page 3 inaccessible, it would be better from a user's POV to simply not have the opportunity to select the page. No doubt you are giving them a helpful message that explains why they're not allowed to see the page when they've asked for it, and why they're being dropped into another control...but it is really our job as programmers to help the user make correct choices in the beginning. Not let them make wrong choices that confuse or make extra work. My .02 USD.

Nancy,

I may not have been clear about the functionality. Of course, that doesn't mean that it's still not wrong. :-) Page3 is where edit/adds are made based on a record selected on Page2. If the user chooses to cancel the editing on Page3 they are given the opportunity to continue. If they choose not to, then they are escorted back to Page2. It was during this final cancel process that I was issuing the ActivePage and SetFocus calls.

I think it's more like .80 worth, but any intellectual money you throw my way is always appreciated... :-)

Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform