4D v14Overview |
||
|
4D v14
Overview
Overview
With the SearchPicker widget, you can easily create standard search areas, similar to those found in browsers or tool bars. The appearance of the area depends on the platform. Windows: Mac OS: The text displayed by default in the area can be controlled by programming, using the SearchPicker SET HELP TEXT component method. Besides its appearance, a SearchPicker search area is characterized by the following elements: grayed out text, an entry area and a deletion icon.
During execution, you can launch your search method by clicking on the button or via a form event. The area generates more particularly the On Data Change and On Losing Focus events. You can provide a dynamic search that is reevaluated each time the user enters another character by calling the search method in the On Data Change event. You can also launch the search when the user hits the Enter key: in this case, you can simply call the search method in the On Losing Focus event. You can insert a SearchPicker area in a form in two ways:
Then specify the name of the variable bound with the subform ("Variable Name" property in the Property list). When the form is executed, this variable will automatically contain the value searched for by the user. You can then pass this value to your custom search method. |
PROPERTIES
Product: 4D ARTICLE USAGE
4D Widgets ( 4D v12) |