implemented choice editor with drop down list, todo: submenus

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@93 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-25 00:35:33 +00:00
parent 0a916f89bc
commit 563afde7a3
9 changed files with 211 additions and 22 deletions
+4 -4
View File
@@ -56,11 +56,11 @@ class DropDownList : public wxPopupWindow {
/// Draw an icon at the specified location
virtual void drawIcon(DC& dc, int x, int y, size_t item, bool selected) const = 0;
/// Is there a line below an item?
virtual bool lineBelow(size_t item) const { return false; }
virtual bool lineBelow(size_t item) const { return false; }
/// Should the item be highlighted?
virtual bool highlightItem(size_t item) const { return false; }
// An extra menu that pops up from an item, or null if there is no popup menu
virtual DropDownList* popup(size_t item) const { return nullptr; }
virtual bool highlightItem(size_t item) const { return false; }
// An extra submenu that pops up from an item, or null if there is no popup menu
virtual DropDownList* submenu(size_t item) const { return nullptr; }
// --------------------------------------------------- : Layout