mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-04 00:20:51 +00:00
seems to work
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@677 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#define MwNmodernLook "ImodernLook"
|
||||
#define MwNwaitMS "IwaitMS"
|
||||
#define MwNhideInput "IhideInput"
|
||||
#define MwNsingleClickSelectable "IsingleClickSelectable"
|
||||
|
||||
#define MwNtitle "Stitle"
|
||||
#define MwNtext "Stext"
|
||||
@@ -46,7 +47,7 @@
|
||||
#define MwNmouseDownHandler "CmouseDown" /* MwLLMouse* */
|
||||
#define MwNmouseUpHandler "CmouseUp" /* same as MwNmouseDownHandler */
|
||||
#define MwNmouseMoveHandler "CmouseMove" /* MwPoint* */
|
||||
#define MwNchangedHandler "Cchanged" /* NULL */
|
||||
#define MwNchangedHandler "Cchanged" /* NULL/int* (MwComboBox) */
|
||||
#define MwNkeyHandler "Ckey" /* int* (MwLLKeyEnum or character code) */
|
||||
#define MwNkeyReleaseHandler "CkeyRelease" /* same as MwNkeyHandler */
|
||||
#define MwNcloseHandler "Cclose" /* NULL */
|
||||
|
||||
@@ -131,9 +131,10 @@ struct _MwListBox {
|
||||
};
|
||||
|
||||
struct _MwComboBox {
|
||||
char** list;
|
||||
int opened;
|
||||
int selected;
|
||||
char** list;
|
||||
int opened;
|
||||
int selected;
|
||||
MwWidget listbox;
|
||||
};
|
||||
|
||||
struct _MwDirectoryEntry {
|
||||
|
||||
@@ -19,7 +19,7 @@ extern "C" {
|
||||
MWDECL MwClass MwComboBoxClass;
|
||||
|
||||
/*!
|
||||
* @brief Adds the entry to ComboBox
|
||||
* @brief Adds the entry to combobox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @param text Text
|
||||
@@ -28,6 +28,19 @@ MwInline void MwComboBoxAdd(MwWidget handle, int index, const char* text) {
|
||||
MwVaWidgetExecute(handle, "mwComboBoxAdd", NULL, index, text);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Gets the entry from combobox
|
||||
* @param handle Widget
|
||||
* @param index Index
|
||||
* @return Text
|
||||
*/
|
||||
MwInline const char* MwComboBoxGet(MwWidget handle, int index) {
|
||||
const char* text;
|
||||
MwVaWidgetExecute(handle, "mwComboBoxGet", (void*)&text, index);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user