summaryrefslogtreecommitdiff
path: root/iup/test/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/test/button.c')
-rwxr-xr-xiup/test/button.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/iup/test/button.c b/iup/test/button.c
index da2906d..f04f082 100755
--- a/iup/test/button.c
+++ b/iup/test/button.c
@@ -346,13 +346,13 @@ void ButtonTest(void)
// IupSetAttribute(button, "ALIGNMENT", "ALEFT:ATOP");
// IupSetAttribute(button, "RASTERSIZE", "200x100");
// IupSetAttribute(button, "IMAGEPOSITION", "BOTTOM");
- IupSetAttribute(button, "PADDING", "5x5");
+// IupSetAttribute(button, "PADDING", "5x5");
// IupSetAttribute(button, "TITLE", "Text1");
- IupSetAttribute(button, "FONT", "Helvetica, 14");
+// IupSetAttribute(button, "FONT", "Helvetica, 14");
// IupSetAttribute(button, "IMAGE", "IUP_Tecgraf");
IupSetAttributeHandle(button, "IMAGE", image1);
// IupSetAttributeHandle(button, "IMINACTIVE", image1i);
-// IupSetAttributeHandle(button, "XXX__IMPRESS", image1p);
+ IupSetAttributeHandle(button, "IMPRESS", image1p);
IupSetAttribute(button, "TIP", "Image Label");
IupSetAttribute(button, "NAME", "button4");
set_callbacks(button);
@@ -360,13 +360,15 @@ void ButtonTest(void)
button = IupButton(NULL, NULL);
IupSetAttributeHandle(button, "IMAGE", image2);
- IupSetAttribute(button, "TITLE", "Text2");
+// IupSetAttribute(button, "TITLE", "Text2");
// IupSetAttribute(button, "IMAGEPOSITION", "TOP");
// IupSetAttribute(button, "SPACING", "30");
// IupSetAttribute(button, "ALIGNMENT", "ALEFT");
// IupSetAttribute(button, "RASTERSIZE", "200x100");
IupSetAttribute(button, "FLAT", "YES");
- IupSetAttribute(button, "FOCUSONCLICK", "NO");
+// IupSetAttributeHandle(button, "IMPRESS", image2);
+// IupSetAttribute(button, "FOCUSONCLICK", "NO");
+// IupSetAttribute(button, "RASTERSIZE", "15x15");
IupSetAttribute(button, "NAME", "button5");
set_callbacks(button);
IupAppend(box2, button);
@@ -382,12 +384,18 @@ void ButtonTest(void)
label = IupLabel(NULL);
IupSetAttribute(label, "SEPARATOR", "VERTICAL");
+ IupSetHandle("teste1", label);
+ IupSetHandle("xxxx", label);
+ IupSetHandle("teste2", label);
+ IupSetHandle("yyy", label);
+ IupSetHandle("dasdasdas", label);
+ IupSetHandle("label", label);
dlg = IupDialog(IupHbox(box1, label, box2, NULL));
IupSetAttribute(dlg, "TITLE", "IupButton Test");
// IupSetAttribute(box1, "BGCOLOR", "128 0 0");
// IupSetAttribute(dlg, "BGCOLOR", "0 128 0");
-// IupSetAttribute(dlg, "BACKGROUND", "0 0 128");
+ IupSetAttribute(dlg, "BACKGROUND", "255 128 128");
// IupSetAttributeHandle(dlg, "BACKGROUND", image2);
IupSetAttributeHandle(dlg, "STARTFOCUS", button);