Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame in a class
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
PageFrame in a class
Miscellaneous
Thread ID:
00716708
Message ID:
00716708
Views:
43
I have a PageFrame with 5 pages in a Modal form (based on frmModalDataChild). Per another suggestion here in UT, I had added a little invisible text box which was the last tab order field on each page, and when that field was Tab-ed to it would switch to the next page and the first field on the new page, etc. This is the behavior I need.

The invisible field had the following code in the GotFocus() and did work correctly:
WITH This.Parent.Parent
   IF .ActivePage < .PageCount
      .ActivePage = .ActivePage + 1
   ENDIF
ENDWITH
I have now switched the Form to a Class, and this no longer works correctly, and simply quickly pages through all the pages until it selects page 5 (where this invisible field does not exist).

This worked fine until I converted the Form to a class.

Is there a better way to handle this in CodeMine, as the above way doesn't work in a class?

Thanks,
Mel Cummings
Next
Reply
Map
View

Click here to load this message in the networking platform