MoSync 3.3
Search bar

Defines

#define MAW_SEARCH_BAR_TEXT   "text"
 Set or get the current text of the search bar.
#define MAW_SEARCH_BAR_PLACEHOLDER   "placeholder"
 Set a text in the search bar that acts as a placeholder when an edit box is empty.
#define MAW_SEARCH_BAR_SHOW_KEYBOARD   "showKeyboard"
 Shows or hides the virtual keyboard. If shown the focus will be set to this widget.

Detailed Description

The available widget properties for a MAW_SEARCH_BAR. See Widget properties for more properties.


Define Documentation

#define MAW_SEARCH_BAR_TEXT   "text"

Set or get the current text of the search bar.

Valid values
A null-terminated string.
Operations
Set and get.
Example
        maWidgetSetProperty(searchBarHandle, MAW_SEARCH_BAR_TEXT, "My search query");
#define MAW_SEARCH_BAR_PLACEHOLDER   "placeholder"

Set a text in the search bar that acts as a placeholder when an edit box is empty.

Valid values
A null-terminated string.
Operations
Set only.
Example
        maWidgetSetProperty(searchBarHandle, MAW_SEARCH_BAR_PLACEHOLDER, "Search...");
#define MAW_SEARCH_BAR_SHOW_KEYBOARD   "showKeyboard"

Shows or hides the virtual keyboard. If shown the focus will be set to this widget.

Valid values
A boolean string 'true' or 'false'.
Operations
Set only.
Example
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines