Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird problem...
Message
From
05/10/2011 15:33:23
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01525574
Message ID:
01525673
Views:
58
>Hi everybody,
>
>In a form with a TList on the left and a pageframe with many pages on the right I found the following unexplainable behavior:
>
>I expand the Tree view -> open Particular Production -> Shows page. Click on the Add Show button. I then click on the Cancel button in that page that brings me back to the selected Production. I again select Shows, press the Add Show button.
>
>My focus is now on the Description field but I can not type - nothing happens. However, if I move my cursor around and go back to this Description field, I can type now.
>
>The code in the Shows page Add Show button is this
>
>thisform.lAdding = .t.
>SELECT rsShows
>APPEND BLANK
>replace ProdID WITH thisform.ProductionSeriesTree.ItemValues(thisform.LastSelectedIndex,'ProdID').Value
>this.Parent.Parent.ActivePage = 4
>this.Parent.Parent.pagShowEdit.txtDescription.SetFocus()
>
>The Show Edit page has only this.Refresh in its Activate method.
>
>What will cause such behavior?
>
>Thanks in advance.

Seems like sometimes you have to setfocus() to a different control first and reset it to the control you want?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform