Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Not Firing
Message
 
 
To
17/07/2007 14:49:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01240814
Message ID:
01241237
Views:
30
>>
>>CMBATTACHMENT.GOTFOCUS (inherited combobox_custom)
>>KEYBOARD "{F4}" PLAIN CLEAR
>>DODEFAULT()
>>
>>
>>and in combobox_custom.GOTFOCUS()
>>
>>......
>>DODEFAULT()
>>
>>
>>?
>I'm not sure I understand.
>
>Are you recommending that I change the code in the original combobox_custom.gotfocus() method? That would change the behavior of all controls which are based upon it and I don't think I would want to do that.
>
>What I want is to supress the KEYBOARD command so the dblclick code will fire -- essentially bypass the parent code and get to the base class (combobox) code. Maybe there is some scope operator (:: ???) which could do that?
>
>I realize I may not be able to get that without creating a new combobox_custom3 control. That's OK, I have a different workaround which gets the job done.

Yes, there is a SCOPE operator you can use in your situation, e.g.:.
MyGrandParentClass::GotFocus()
Another alternative, if you can change the parent class, is to set some property to execute the drop down opening, e.g. Set OpenOnGotFocus property to .t. in the parent class and set it to false in the subclass. This way you can easily achieve your desired behavior by altering a property.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform