#include <dropdownmenu.h>
Inheritance diagram for os::DropdownMenu::

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 hook called by the system when the view is resized. More... | |
| virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
| Hook called by the system when a mouse button is pressed. More... | |
| virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
| Hook called by the system when a key is pressed while the view has focus. More... | |
| virtual void | AllAttached () |
Friends | |
| class | DropdownView |
|
|||||||||||||||||||||||||||||
|
|
|
|
|
|
|
Reimplemented from os::View. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from os::View. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from os::View. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from os::Handler. |
|
|||||||||||||||
|
\Description: The new item is inserted before the nPosition'th item.
|
|
|
|
|
||||||||||||||||||||||
|
Reimplemented from os::View. |
|
|||||||||||||||
|
Reimplemented from os::View. |
|
|
Reimplemented from os::View. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||
|
|
|
|
In addition to those fields comes the fields added by Invoker::Invoke(). If pcMsg is NULL no event will be triggered by changing the selection.
|
|
|
|
|
|
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001