Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox in a toolbar...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00154964
Message ID:
00155106
Vues:
23
>BOb,
>
>>I have a cTextBox instance in a cToolBar subclass. Not control source is on the txtBox... why can't I enter text in the text box? I can seem to figure it out.>
>
>Does a VFP base textbox class work in your toolbar? If so, you can track it down by overriding the code in each method that contains code in CTextBox...I'd pay close attention to the When event.
>
>Regards,

Yep... tried that.. tried to return .t. in gotfocus and when... still didn't work.. I think I tracked it down to a control on the active form now giving up focus, even though the cursor appeared in the text box that was in the tool bar.

As I said above, navigation keys don't seem to do anything when the textbox in the toolbar has focus. The VFP DOC makes mention of this, but it is not to detauled.

I seem to have got it working.

Do you know if returning FALSE from the keypress event of the textbox causes the control to loose focus, the doc didn't seem to say?

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform