Public Methods |
| DropdownMenu (const Rect &cFrame, const char *pzName, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) |
| DropdownMenu constructor. More...
|
| ~DropdownMenu () |
void | SetEnable (bool bEnable=true) |
bool | IsEnabled () const |
void | SetReadOnly (bool bFlag=true) |
| Change the "read-only" status. More...
|
bool | GetReadOnly () const |
| Returns the read-only status. More...
|
void | AppendItem (const char *pzString) |
| Add a item to the end of the drop down list. More...
|
void | InsertItem (int nPosition, const char *pzString) |
| Insert and item at a given position. More...
|
bool | DeleteItem (int nPosition) |
| Delete a item. More...
|
int | GetItemCount () const |
| Get the item count. More...
|
void | Clear () |
| Delete all items. More...
|
const std::string& | GetItem (int nItem) const |
| Get one of the item strings. More...
|
int | GetSelection () const |
| Get the current selection. More...
|
void | SetSelection (int nItem, bool bNotify=true) |
| Set current selection. More...
|
const std::string& | GetCurrentString () const |
void | SetCurrentString (const std::string &cString) |
void | SetMinPreferredSize (int nWidthChars) |
int | GetMinPreferredSize () const |
void | SetMaxPreferredSize (int nWidthChars) |
int | GetMaxPreferredSize () const |
void | SetSelectionMessage (Message *pcMsg) |
| Set the message that will be sendt when the selection changes. More...
|
Message* | GetSelectionMessage () const |
| Get a pointer to the current "SelectionChanged" message. More...
|
void | SetSendIntermediateMsg (bool bFlag) |
bool | GetSendIntermediateMsg () const |
void | SetEditMessage (Message *pcMsg) |
| Set the message sendt when the user changes the content of the edit box. More...
|
Message* | GetEditMessage () const |
| Get a pointer to the current "SelectionChanged" message. More...
|
virtual void | HandleMessage (Message *pcMessage) |
| Handle events from sub components. More...
|
virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. More...
|
virtual Point | GetPreferredSize (bool bLargest) const |
virtual void | FrameSized (const Point &cDelta) |
virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
virtual void | AllAttached () |
Friends |
class | DropdownView |