Commits (2)
......@@ -304,6 +304,12 @@ BEGIN_METHOD_VOID(ComboBox_Popup)
END_METHOD
BEGIN_METHOD_VOID(ComboBox_Close)
COMBOBOX->popdown();
END_METHOD
BEGIN_METHOD(ComboBox_get, GB_INTEGER index)
......@@ -510,6 +516,7 @@ GB_DESC CComboBoxDesc[] =
GB_METHOD("_new", 0, ComboBox_new, "(Parent)Container;"),
GB_METHOD("_get", ".ComboBox.Item", ComboBox_get, "(Index)i"),
GB_METHOD("Popup", 0, ComboBox_Popup, 0),
GB_METHOD("Close", 0, ComboBox_Close, 0),
GB_METHOD("Clear", 0, TextBox_Clear, 0),
GB_METHOD("Insert", 0, TextBox_Insert, "(Text)s"),
GB_METHOD("Add", 0, ComboBox_Add, "(Item)s[(Index)i]"),
......
......@@ -374,6 +374,11 @@ void gComboBox::popup()
gtk_combo_box_popup(GTK_COMBO_BOX(widget));
}
void gComboBox::popdown()
{
gtk_combo_box_popdown(GTK_COMBO_BOX(widget));
}
#ifdef GTK3
GtkWidget *gComboBox::getStyleSheetWidget()
......
......@@ -53,6 +53,7 @@ public:
//"Methods"
void popup();
void popdown();
void add(const char *vl, int pos = -1);
virtual void clear();
int find(const char *ptr);
......
......@@ -561,6 +561,12 @@ BEGIN_METHOD_VOID(ComboBox_Popup)
END_METHOD
BEGIN_METHOD_VOID(ComboBox_Close)
COMBOBOX->hidePopup();
END_METHOD
BEGIN_PROPERTY(ComboBox_Text)
......@@ -957,6 +963,7 @@ GB_DESC CComboBoxDesc[] =
GB_PROPERTY_READ("Selected", "b", ComboBox_Selected),
GB_METHOD("Popup", NULL, ComboBox_Popup, NULL),
GB_METHOD("Close", NULL, ComboBox_Close, NULL),
GB_METHOD("Clear", NULL, ComboBox_Clear, NULL),
GB_METHOD("Insert", NULL, TextBox_Insert, "(Text)s"),
......