Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Stays Visible when Programmatically Changing Pag
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00343882
Message ID:
00343910
Views:
36
Hi, Barbara!

Thanks for replying. I forgot to mention that I already added a REFRESH as you mentioned, both before and after setting focus, with similar results. Perhaps I should stick with what works. I don't mind using band-aid approaches, but I want to avoid a poor structure.

Michael

>Michael,
>What happens if you add a This.Parent.Page6.Refresh before/after you set focus to the edit box?
>
>Barbara
>
>>Greetings!
>>
>>I have a combo box on a pageframe's page that is meant to cause an edit box on another page to get focus, depending on which selection is chosen. (The edit box is used to provide comments about the selection.) In the valid event, I have code such as this:
>>
>>
>>IF lcValue $ 'PC,NC'
>>  THIS.PARENT.ACTIVEPAGE = 6
>>  THIS.PARENT.PAGE6.edtComments.SETFOCUS()
>>ENDIF
>>
>>
>>However, when page 6 is made active, the combo box on the previous page is still visible, and is superimposed on the edit box. If I manually click on the page's tab, the combo box disappears.
>>
>>I got around this by adding THIS.VISIBLE=.F. to the above code, before setting the ACTIVEPAGE property. This works, except, of course, I needed to add THIS.cmbStatus.VISIBLE=.T. to the ACTIVATE event for the page containing the combo box.
>>
>>My question is, what am I missing? Why is the combo box remaining visible when I programmatically switch pages?
>>
>>Thanks!
>>
>>Michael Reynolds
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform