milsko/examples/basic/combobox.c
IoI_xD c705d2b98c
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
generate pkgconfig file (don't commit yet i fucked it up)
2026-07-15 17:32:53 -07:00

22 lines
518 B
C

#include <Mw/Milsko.h>
int main() {
MwWidget w, cb;
MwLibraryInit();
w = MwVaCreateWidget(MwWindowClass, "main", NULL, MwDEFAULT, MwDEFAULT, 5 + 320 + 5, 5 + 24 + 5,
MwNtitle, "combobox",
NULL);
cb = MwCreateWidget(MwComboBoxClass, "combobox", w, 5, 5, 320, 24);
MwComboBoxAdd(cb, -1, "wow!");
MwComboBoxAdd(cb, -1, "insert");
MwComboBoxAdd(cb, -1, "cool");
MwComboBoxAdd(cb, -1, "text");
MwComboBoxAdd(cb, -1, "here");
MwComboBoxAdd(cb, -1, "!!!");
MwLoop(w);
}