Skip to content

Commit

Permalink
gui All Combos: click to drop, no edit fix #38
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham committed Nov 17, 2024
1 parent 6b7adaf commit 55213f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/common/Gui_Def.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,16 @@ class BGui
if (edit && edit->eventEditTextChange.empty()) edit->eventEditTextChange += newDelegate(this, &CGuiCom::event);


// combo
#define Cmb(cmb, name, event) \
// combo _ mode true = no edit, click drops | cmb->setMaxListLength(530);
#define Cmb(cmb, name, event) \
cmb = fCmb(name); \
if (cmb && cmb->eventComboChangePosition.empty()) cmb->eventComboChangePosition += newDelegate(this, &CGui::event);
if (cmb) { cmb->setComboModeDrop(true); \
if (cmb->eventComboChangePosition.empty()) cmb->eventComboChangePosition += newDelegate(this, &CGui::event); }

#define CmbC(cmb, name, event) \
cmb = fCmb(name); \
if (cmb && cmb->eventComboChangePosition.empty()) cmb->eventComboChangePosition += newDelegate(this, &CGuiCom::event);
if (cmb) { cmb->setComboModeDrop(true); \
if (cmb->eventComboChangePosition.empty()) cmb->eventComboChangePosition += newDelegate(this, &CGuiCom::event); }


// tab
Expand Down

0 comments on commit 55213f0

Please sign in to comment.