Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tablerevert and updateable views
Message
From
03/03/1997 13:34:14
 
 
To
03/03/1997 13:09:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00022691
Message ID:
00022693
Views:
30
>I have a toolbar object also ref'd in app object. A button on the toolbar calls a tablerevert function in the app object for one of my updateable views.
>
>When I call bring up the form and change a field, then undo it with the toolbar button the field doesn't update. But if I add a button to the form and call the app object tablerevert function it does work. It seems to be some scoping thing, but I don't want to place the button on the form, I need to call tablerevert from the toolbar. I'm new at this, so I could be missing something simple! Help!

One thing you might be missing - a ToolBar does not take the focus away from the textbox the user is typing in.

So to force the text they typed to be registered, Windows needs to be told the user has finished typing. This is the same in all windows applications - you will see MS people using TAB before clicking on toolbars in some demos to make sure it works...

In VFP the solution to that is to use _SCREEN.ActiveForm.ActiveControl.SetFocus() to force the update of the value.


I'm not sure form your description if this is what you are seeing or not.
I don't think it's what you are describing.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform