Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editbox and Windows Ctrl-F
Message
From
21/01/2003 07:59:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
20/01/2003 22:37:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00743638
Message ID:
00743713
Views:
11
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform