mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
add combobox demo
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@730 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -11,7 +11,7 @@ foreach my $l (@ARGV) {
|
||||
}
|
||||
}
|
||||
|
||||
our $prefix = "/usr/local";
|
||||
our $prefix = "/usr/local";
|
||||
our $cc = defined($ENV{CC}) ? $ENV{CC} : "*host*gcc";
|
||||
our $ar = defined($ENV{AR}) ? $ENV{AR} : "*host*ar";
|
||||
our $incdir = "-I include";
|
||||
@@ -93,7 +93,7 @@ foreach my $l (@ARGV) {
|
||||
print("\n");
|
||||
print("Options:\n");
|
||||
print(" -h --help Display this help\n");
|
||||
print(" --prefix=PREFIX Installation prefix\n");
|
||||
print(" --prefix=PREFIX Installation prefix\n");
|
||||
print(" --host=TARGET Host for compiler/archiver\n");
|
||||
print(" --target=TARGET Specify target\n");
|
||||
print(" --cross Indicate cross compilation\n");
|
||||
|
||||
23
examples/basic/combobox.c
Normal file
23
examples/basic/combobox.c
Normal 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);
|
||||
}
|
||||
@@ -89,6 +89,7 @@ new_example("examples/basic/viewport");
|
||||
new_example("examples/basic/listbox");
|
||||
new_example("examples/basic/progressbar");
|
||||
new_example("examples/basic/colorpicker");
|
||||
new_example("examples/basic/combobox");
|
||||
|
||||
if (param_get("opengl")) {
|
||||
new_example("examples/gldemos/boing", $gl_libs);
|
||||
|
||||
Reference in New Issue
Block a user