Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame in a class
Message
From
29/10/2002 19:37:35
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00716708
Message ID:
00716740
Views:
18
This message has been marked as the solution to the initial question of the thread.
>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).

There is no reason why this shouldn't work in a class (as opposed to a form). Something else must have changed.

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

>
>WITH This.Parent.Parent
>   IF .ActivePage < .PageCount
>      .ActivePage = .ActivePage + 1
>   ENDIF
>ENDWITH
>
You could try using the Codemine setpage() method in the above block to set the new active page. This will then ensure that certain other codemine page events are called to simulate a page change as though it had been done interactively.

Also, take a look at the lPageChangeKeys property. This was an enhancement that Dave put in at my request. If set True, you can use the PageUp/PageDn keys to change the pages. I used to use the tabs driver in my 2.6 stuff and my pageframes could be changed using these keys. Its quite a natural way to change the pages.
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform