68 long onFocusUp(
FXObject*,FXSelector,
void*);
69 long onFocusDown(
FXObject*,FXSelector,
void*);
70 long onFocusSelf(
FXObject*,FXSelector,
void*);
71 long onMouseWheel(
FXObject*,FXSelector,
void*);
72 long onFieldButton(
FXObject*,FXSelector,
void*);
73 long onListUpdate(
FXObject*,FXSelector,
void*);
74 long onListClicked(
FXObject*,FXSelector,
void*);
75 long onListChanged(
FXObject*,FXSelector,
void*);
76 long onListCommand(
FXObject*,FXSelector,
void*);
77 long onListForward(
FXObject*,FXSelector,
void*);
78 long onCmdSetValue(
FXObject*,FXSelector,
void*);
79 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
80 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
83 ID_LIST=FXPacker::ID_LAST,
90 FXListBox(
FXComposite *p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=FRAME_SUNKEN|FRAME_THICK|LISTBOX_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);
93 virtual void create();
96 virtual void detach();
99 virtual void destroy();
102 virtual void layout();
105 virtual void enable();
108 virtual void disable();
111 virtual FXint getDefaultWidth();
114 virtual FXint getDefaultHeight();
117 FXint getNumItems()
const;
120 FXint getNumVisible()
const;
123 void setNumVisible(FXint nvis);
126 FXbool isItemCurrent(FXint index)
const;
129 virtual void setCurrentItem(FXint index,FXbool notify=
false);
132 FXint getCurrentItem()
const;
135 FXString getItem(FXint index)
const;
138 FXint setItem(FXint index,
const FXString& text,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
141 FXint fillItems(
const FXchar *
const *strings,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
144 FXint fillItems(
const FXString* strings,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
147 FXint fillItems(
const FXString& strings,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
150 FXint insertItem(FXint index,
const FXString& text,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
153 FXint appendItem(
const FXString& text,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
156 FXint prependItem(
const FXString& text,
FXIcon* icon=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
159 FXint moveItem(FXint newindex,FXint oldindex,FXbool notify=
false);
162 FXListItem* extractItem(FXint index,FXbool notify=
false);
165 void removeItem(FXint index,FXbool notify=
false);
168 void clearItems(FXbool notify=
false);
180 FXint findItem(
const FXString&
string,FXint start=-1,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP)
const;
189 FXint findItemByData(FXptr ptr,FXint start=-1,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP)
const;
192 void setItemText(FXint index,
const FXString& text);
195 FXString getItemText(FXint index)
const;
198 void setItemIcon(FXint index,
FXIcon* icon,FXbool owned=
false);
201 FXIcon* getItemIcon(FXint index)
const;
204 void setItemData(FXint index,FXptr ptr)
const;
207 FXptr getItemData(FXint index)
const;
210 FXbool isItemEnabled(FXint index)
const;
213 FXbool enableItem(FXint index);
216 FXbool disableItem(FXint index);
219 void showMenu(FXbool shw);
222 FXbool isMenuShown()
const;
228 void setFont(
FXFont* fnt);
234 void setShrinkWrap(FXbool flag);
237 FXbool getShrinkWrap()
const;
240 virtual void setBackColor(FXColor clr);
243 FXColor getBackColor()
const;
246 void setTextColor(FXColor clr);
249 FXColor getTextColor()
const;
252 void setSelBackColor(FXColor clr);
255 FXColor getSelBackColor()
const;
258 void setSelTextColor(FXColor clr);
261 FXColor getSelTextColor()
const;
264 FXListSortFunc getSortFunc()
const;
267 void setSortFunc(FXListSortFunc func);
270 void setHelpText(
const FXString& txt);
273 const FXString& getHelpText()
const;
276 void setTipText(
const FXString& txt);
282 virtual void save(
FXStream& store)
const;
The List Box is a control to select one of a list of options.
Definition: FXListBox.h:55
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
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:42
Packer is a layout manager which automatically places child windows inside its area against the left...
Definition: FXPacker.h:48
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
List item.
Definition: FXList.h:48
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42