]> git.saurik.com Git - wxWidgets.git/blame - interface/srchctrl.h
latex include not properly working for links and titlepage
[wxWidgets.git] / interface / srchctrl.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: srchctrl.h
3// Purpose: documentation for wxSearchCtrl class
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxSearchCtrl
11 @wxheader{srchctrl.h}
7c913512
FM
12
13 A search control is a composite control with a search button, a text
23324ae1 14 control, and a cancel button.
7c913512 15
23324ae1
FM
16 @beginStyleTable
17 @style{wxTE_PROCESS_ENTER}:
18 The control will generate the event wxEVT_COMMAND_TEXT_ENTER
19 (otherwise pressing Enter key is either processed internally by the
20 control or used for navigation between dialog controls).
21 @style{wxTE_PROCESS_TAB}:
22 The control will receive wxEVT_CHAR events for TAB pressed -
23 normally, TAB is used for passing to the next control in a dialog
24 instead. For the control created with this style, you can still use
25 Ctrl-Enter to pass to the next control from the keyboard.
26 @style{wxTE_NOHIDESEL}:
27 By default, the Windows text control doesn't show the selection
28 when it doesn't have focus - use this style to force it to always
29 show it. It doesn't do anything under other platforms.
30 @style{wxTE_LEFT}:
31 The text in the control will be left-justified (default).
32 @style{wxTE_CENTRE}:
33 The text in the control will be centered (currently wxMSW and
34 wxGTK2 only).
35 @style{wxTE_RIGHT}:
36 The text in the control will be right-justified (currently wxMSW
37 and wxGTK2 only).
38 @style{wxTE_CAPITALIZE}:
39 On PocketPC and Smartphone, causes the first letter to be
40 capitalized.
41 @endStyleTable
7c913512 42
23324ae1
FM
43 @library{wxcore}
44 @category{FIXME}
7c913512 45
23324ae1
FM
46 @seealso
47 wxTextCtrl::Create, wxValidator
48*/
49class wxSearchCtrl : public wxTextCtrl
50{
51public:
52 //@{
53 /**
54 Constructor, creating and showing a text control.
55
7c913512 56 @param parent
23324ae1
FM
57 Parent window. Should not be @NULL.
58
7c913512 59 @param id
23324ae1
FM
60 Control identifier. A value of -1 denotes a default value.
61
7c913512 62 @param value
23324ae1
FM
63 Default text value.
64
7c913512 65 @param pos
23324ae1
FM
66 Text control position.
67
7c913512 68 @param size
23324ae1
FM
69 Text control size.
70
7c913512 71 @param style
23324ae1
FM
72 Window style. See wxSearchCtrl.
73
7c913512 74 @param validator
23324ae1
FM
75 Window validator.
76
7c913512 77 @param name
23324ae1
FM
78 Window name.
79
80 @sa wxTextCtrl::Create, wxValidator
81 */
82 wxSearchCtrl();
7c913512
FM
83 wxSearchCtrl(wxWindow* parent, wxWindowID id,
84 const wxString& value = "",
85 const wxPoint& pos = wxDefaultPosition,
86 const wxSize& size = wxDefaultSize,
87 long style = 0,
88 const wxValidator& validator = wxDefaultValidator,
89 const wxString& name = wxSearchCtrlNameStr);
23324ae1
FM
90 //@}
91
92 /**
93 Destructor, destroying the search control.
94 */
95 ~wxSearchCtrl();
96
97 /**
7c913512 98 Returns a pointer to the search control's menu object or @NULL if there is no
23324ae1
FM
99 menu attached.
100 */
101 virtual wxMenu* GetMenu();
102
103 /**
7c913512 104 Returns the search button visibility value.
23324ae1
FM
105 If there is a menu attached, the search button will be visible regardless of
106 the search
7c913512 107 button visibility value.
23324ae1
FM
108
109 This always returns @false in Mac OS X v10.3
110 */
111 virtual bool IsSearchButtonVisible();
112
113 /**
114 Sets the search control's menu object. If there is already a menu associated
115 with
116 the search control it is deleted.
117
7c913512 118 @param menu
23324ae1
FM
119 Menu to attach to the search control.
120 */
121 virtual void SetMenu(wxMenu* menu);
122
123 /**
124 Shows or hides the cancel button.
125 */
126 virtual void ShowCancelButton(bool show);
127
128 /**
7c913512 129 Sets the search button visibility value on the search control.
23324ae1
FM
130 If there is a menu attached, the search button will be visible regardless of
131 the search
7c913512 132 button visibility value.
23324ae1
FM
133
134 This has no effect in Mac OS X v10.3
135 */
136 virtual void ShowSearchButton(bool show);
137};