add combobox demo

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@730 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-15 19:27:56 +00:00
parent 95897ba449
commit db298fb6e9
3 changed files with 26 additions and 2 deletions

23
examples/basic/combobox.c Normal file
View File

@@ -0,0 +1,23 @@
/* $Id$ */
#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);
}