Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editbox and Windows Ctrl-F
Message
De
21/01/2003 07:59:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/01/2003 22:37:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00743638
Message ID:
00743713
Vues:
13
>Is it possible to have an editbox, on a Modal form, to have the ability to do a Find via the Ctrl-F keypress?

The standard menu item is basically for a BROWSE window only. I don't think you can use it in an EditBox, or even in a Grid.

Of course, you can program some action for Ctrl-F. For instance, you can call up a standard form, ask for a value. Save it to a variable (I will assume tcSearchValue) and then do a search similar to:
LOCATE [REST] FOR UPPER(tcSearchValue) $ EVAL(trans(UPPER(This.ControlSource)))
The trans() should make it work even for dates and numbers.

All this would have to be programmed in your base classes, especially your version of the TextBox.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform