Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Misbehaving ComboBox Part 2
Message
From
21/03/2000 18:11:47
Dragan Jankovic
Delegate Technology GmbH
Vienna, Austria
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00348438
Message ID:
00348645
Views:
25
>
>The form consists (basically) of a command group with 7 buttons, 1 of which will set the “Find” ComboBox to visible and vice versa with the command group. Selecting the entry you wish to find from the combo will then reverse this procedure on the Click Event and move to the selected record in the DB. The click event only seems to fire when you click or hit return on the drop-down-list, not when you hit return in the actual text part of the ComboBox. When you hit return and the text is not matched in the DB the drop-down-list appears. Fine. Problem is if you type in the CORRECT text and hit return, the focus seems to move off to the Quit button in the command group! This causes the form to release – bad news. OK, now I solved the problem with an “if(this.visible=.t – then release”. on the click of the Quit button but I would like to know why the focus is moved to an object which is not visible – I thought “visible” had the same effect as enabled when it came to clicks/set focus
>etc…

When do you switch Commandgroup.Visible to .t.?
Anyway, if you want to override default tab skipping with combo, in Valid() event test if you entered correct DB text; if so, end Valid() with "return 0" to stay on combo, or "return ", where is relative tab-offset of the control you want to get focus...
Previous
Reply
Map
View

Click here to load this message in the networking platform