Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox little problem
Message
 
To
30/05/2001 19:01:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00512876
Message ID:
00512956
Views:
10
>>When coming from another control, if you click a in the graphical portion of a combobox (style 0 - Dropdown) it shows its content in a popup and the cursor changes to the pointing arrow, if you click in the text portion, that portion get focus and the cursor changes to I beam. That is the normal behavior of it.
>>
>>BUT if you add code to its GotFocus method, it always behave as if you have clicked in the text portion, no matter where you clicked, even if you have dodefault() on it. It works the same in VFP5 as in VFP6 SP5.
>>I need code in the getfocus and also I want the default functionality.
>>
>>How to solve this little problem?
>>
>>Thanks in advance,
>
>I've seen this behavior before...
>
>Are you basing your comboBox directly on the VFP comboBox base class? If so, try creating your own version of the base class (even if you don't make any changes to it). Drop your new comboBox class onto the form, and modify the gotFocus(). You don't need to put dodefault() in the gotFocus() method (if you do, the default code gets executed twice, unless you put NODEFAULT in the method also).

No, I have a class library with my base classes, and it is the same using VFP base class or using mine....
And you are right, it is ok now without the dodefault() (Argggg!), thank you very much.

...Y soy feliz, bien feliz, asi lo grito;
Mira, que el mundo sepa, que se sepa:
Soy feliz....                       

...And I'm happy, quite happy, so do I yell it;
Look, so the world knows it, so be known:
I'm happy...
 

Ismael Rivera "Oye cosita linda"
Previous
Reply
Map
View

Click here to load this message in the networking platform