Information générale
Catégorie:
Codage, syntaxe et commandes
>I have a 2 page pageframe on my data entry form. Page1 has all the fields for data entry and Page2 has a listbox of all entered records for easy navigation. To hilight the current record in the listbox I have the following code in Page2's .Activate method:
>
>THISFORM.Lockscreen=.T.
>mnrecno=RECNO()
>COUNT ALL WHILE RECNO()#mnrecno TO mnoffset
>THIS.lstCourse.Selected(mnoffset+1)=.T.
>THISFORM.rtgPageFrame1.Page2.Refresh
>THISFORM.Lockscreen=.F.
>
>This works every time except for the first time Page2 is Activated. The first time nothing is hilighted. If I click on page2, then page1, and then back to page2 the current record is hilighted.
>
>Any ideas are greatly appreciated.
Colin,
In an equivalent situation I remember trying something like:
PageFrame1.Page2.MyListConstrol.SetFocus
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement