summaryrefslogtreecommitdiff
path: root/iup/test/split.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/test/split.c
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/test/split.c')
-rw-r--r--iup/test/split.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/iup/test/split.c b/iup/test/split.c
new file mode 100644
index 0000000..7b3208a
--- /dev/null
+++ b/iup/test/split.c
@@ -0,0 +1,47 @@
+#include <stdio.h>
+#include "iup.h"
+
+void SplitTest(void)
+{
+ Ihandle *dlg, *bt, *split, *ml, *vbox;
+
+ bt = IupButton("Button", NULL);
+ IupSetAttribute(bt, "EXPAND", "YES");
+
+ ml = IupMultiLine(NULL);
+ IupSetAttribute(ml, "EXPAND", "YES");
+ IupSetAttribute(ml, "VISIBLELINES", "5");
+ IupSetAttribute(ml, "VISIBLECOLUMNS", "10");
+
+ split = IupSplit(bt, ml);
+// IupSetAttribute(split, "DIRECTION", "VERTICAL");
+// IupSetAttribute(split, "DIRECTION", "HORIZONTAL");
+// IupSetAttribute(split, "COLOR", "127 127 255");
+// IupSetAttribute(split, "LAYOUTDRAG", "NO");
+// IupSetAttribute(split, "AUTOHIDE", "YES");
+// IupSetAttribute(split, "SHOWGRIP", "NO");
+
+ vbox = IupVbox(split, NULL);
+ IupSetAttribute(vbox, "MARGIN", "10x10");
+ IupSetAttribute(vbox, "GAP", "10");
+
+ dlg = IupDialog(vbox);
+ IupSetAttribute(dlg, "TITLE", "IupSplit Example");
+
+ IupShow(dlg);
+}
+
+#ifndef BIG_TEST
+int main(int argc, char* argv[])
+{
+ IupOpen(&argc, &argv);
+
+ SplitTest();
+
+ IupMainLoop();
+
+ IupClose();
+
+ return EXIT_SUCCESS;
+}
+#endif