Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to object on page frame
Message
De
04/03/1997 07:39:48
 
 
À
03/03/1997 08:55:43
Narendra Lilaramani
Gentech Business Machines Ltd
Ahmedabad, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00022439
Message ID:
00022787
Vues:
47
>>>>>In VFP 3.0b, with a form containing a page frame with two pages, has anyone had problems with programitically setting the focus to an object on Page1 when Page2 is the active page? I use the following code structure:
>>>>>
>>>>>WITH THISFORM.MyPageframe
>>>>> .ACTIVEPAGE = 1
>>>>> .PAGE1.MyObject.SETFOCUS
>>>>>ENDWITH
>>>>>
>>>>>accompanied by REFRESHes tried in various places to try to get the correct object to receive the focus.
>>>>>
>>>>>Thanks,
>>>>>Bill
>>>>
>>>>Just to let you know that I have the same problem as you using 3.0b. I set the pageframe's ACTIVEPAGE property to 1 and in page 1's ACTIVATE method I set the focus to a command button. When it's all said and done, a textbox winds up with the focus instead of the command button.
>>>>
>>>You might try Nodefault before setfocus, sometimes that works...
>>
>>Hi Bruce,
>> Thanks, I will give that a try.
>>Bill
>
>Try following, It works
>On seond (or whatever) page write:
>thisform.pageframe1.pages(1).YrObject.setfocus()
>thisform.pageframe1.activepage=1
>thisform.refresh
>
>Narendra

Thanks, I will give that a try.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform