Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageFrame in a class
Message
De
29/10/2002 19:37:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00716708
Message ID:
00716740
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform