General information
Category:
Forms & Form designer
I just made up a form with a simple pageframe with 2 pages. The second page has a button with this.parent.parent.activepage = 1 in the click method. Page1 activate method does this.text2.setfocus()
It works okay. So, I'm afraid this isn't much help to you, except it *should* work. What version of VFP? I'm using 5.0aw/sp3.
>I'm just tearing my hair out with this one! I'm in VFP 5. I have 9 pages in a pageframe that represent different activities of clients. When data gets saved, I give the client the option to go back to the first page of data. When they say yes, I activate the 1st page with this: THISFORM.PAGEFRAME1.ACTIVEPAGE=1 This works, and from watching with the debugger it triggers the activate procedure for page 1. In the activate procedure I have the command: This.Text1.setfocus. Getting to the page works on the activepage command, but the focus just goes up to the tab title - not on text1. It DOES focus on text1 if the user clicks on the tab instead of using my programmatic option. What gives? This is the case everywhere, by the way, that I activate a page programmtically. I can't seem to set the focus to a particular object - and it matters very much that I do... Anyone got any ideas?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only