Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic Set Focus
Message
 
To
26/08/1998 09:20:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00130031
Message ID:
00130035
Views:
47
Hello Rixon,

Create three new property on the form say
1. csetfocusobj1 = 'Thisform.pgf.page1.text1'
2. csetfocusobj2 = 'Thisform.pgf.page2.text1'
3. csetfocusobj3 = 'Thisform.pgf.page3.text1'

*--
Click of Add button
*--
LOCAL lnpage
lnpage = Thisform.pgf.activepage
DO CASE
CASE lnpage = 1
&csetfocusobj1..SetFocus()
CASE lnpage = 2
&csetfocusobj2..SetFocus()
CASE lnpage = 3
&csetfocusobj3..SetFocus()
ENDCASE

Bye
Jayesh



>I have a form with a pageframe with three pages. There is an edit button at the bottom of the form outside the pageframe. When the user clicks the edit button the focus should be set on the first object of the page that is active. How do I accomplish this?
>
>Thanks in advance.
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform