33 COMBOBOX_NO_REPLACE = 0,
34 COMBOBOX_REPLACE = 0x00020000,
35 COMBOBOX_INSERT_BEFORE = 0x00040000,
36 COMBOBOX_INSERT_AFTER = 0x00060000,
37 COMBOBOX_INSERT_FIRST = 0x00080000,
38 COMBOBOX_INSERT_LAST = 0x000A0000,
39 COMBOBOX_STATIC = 0x00100000,
78 long onFocusUp(
FXObject*,FXSelector,
void*);
79 long onFocusDown(
FXObject*,FXSelector,
void*);
80 long onFocusSelf(
FXObject*,FXSelector,
void*);
81 long onMouseWheel(
FXObject*,FXSelector,
void*);
82 long onTextButton(
FXObject*,FXSelector,
void*);
83 long onTextChanged(
FXObject*,FXSelector,
void*);
84 long onTextCommand(
FXObject*,FXSelector,
void*);
85 long onListClicked(
FXObject*,FXSelector,
void*);
86 long onListCommand(
FXObject*,FXSelector,
void*);
87 long onFwdToText(
FXObject*,FXSelector,
void*);
88 long onUpdFmText(
FXObject*,FXSelector,
void*);
91 ID_LIST=FXPacker::ID_LAST,
98 FXComboBox(
FXComposite *p,FXint cols,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=COMBOBOX_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD);
101 virtual void create();
104 virtual void detach();
107 virtual void destroy();
110 virtual void enable();
113 virtual void disable();
116 virtual FXint getDefaultWidth();
119 virtual FXint getDefaultHeight();
122 virtual void layout();
125 FXbool isEditable()
const;
128 void setEditable(FXbool edit=
true);
131 void setText(
const FXString& text,FXbool notify=
false);
137 void setNumColumns(FXint cols);
140 FXint getNumColumns()
const;
143 void setJustify(FXuint mode);
146 FXuint getJustify()
const;
149 FXint getNumItems()
const;
152 FXint getNumVisible()
const;
155 void setNumVisible(FXint nvis);
158 FXbool isItemCurrent(FXint index)
const;
161 void setCurrentItem(FXint index,FXbool notify=
false);
164 FXint getCurrentItem()
const;
167 FXString getItem(FXint index)
const;
170 FXint setItem(FXint index,
const FXString& text,FXptr ptr=
nullptr,FXbool notify=
false);
173 FXint fillItems(
const FXchar *
const *strings,FXbool notify=
false);
176 FXint fillItems(
const FXString* strings,FXbool notify=
false);
179 FXint fillItems(
const FXString& strings,FXbool notify=
false);
182 FXint insertItem(FXint index,
const FXString& text,FXptr ptr=
nullptr,FXbool notify=
false);
185 FXint appendItem(
const FXString& text,FXptr ptr=
nullptr,FXbool notify=
false);
188 FXint prependItem(
const FXString& text,FXptr ptr=
nullptr,FXbool notify=
false);
191 FXint moveItem(FXint newindex,FXint oldindex,FXbool notify=
false);
194 void removeItem(FXint index,FXbool notify=
false);
197 void clearItems(FXbool notify=
false);
209 FXint findItem(
const FXString&
string,FXint start=-1,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP)
const;
218 FXint findItemByData(FXptr ptr,FXint start=-1,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP)
const;
221 void setItemText(FXint index,
const FXString& text);
224 FXString getItemText(FXint index)
const;
227 void setItemData(FXint index,FXptr ptr)
const;
230 FXptr getItemData(FXint index)
const;
233 FXbool isItemEnabled(FXint index)
const;
236 FXbool enableItem(FXint index);
239 FXbool disableItem(FXint index);
242 void showMenu(FXbool shw);
245 FXbool isMenuShown()
const;
251 void setFont(
FXFont* fnt);
257 void setComboStyle(FXuint mode);
260 FXuint getComboStyle()
const;
263 void setShrinkWrap(FXbool flag);
266 FXbool getShrinkWrap()
const;
269 virtual void setBackColor(FXColor clr);
272 FXColor getBackColor()
const;
275 void setTextColor(FXColor clr);
278 FXColor getTextColor()
const;
281 void setSelBackColor(FXColor clr);
284 FXColor getSelBackColor()
const;
287 void setSelTextColor(FXColor clr);
290 FXColor getSelTextColor()
const;
293 FXListSortFunc getSortFunc()
const;
296 void setSortFunc(FXListSortFunc func);
299 void setHelpText(
const FXString& txt);
302 const FXString& getHelpText()
const;
305 void setTipText(
const FXString& txt);
311 virtual void save(
FXStream& store)
const;
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
A List Widget displays a list of items, each with a text and optional icon.
Definition: FXList.h:169
Definition: FX4Splitter.h:28
Packer is a layout manager which automatically places child windows inside its area against the left...
Definition: FXPacker.h:48
A text field is a single-line text entry widget.
Definition: FXTextField.h:63
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
A Combo Box provides a way to select a string from a list of strings.
Definition: FXComboBox.h:65
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42