diff options
author | Pixel <pixel@nobis-crew.org> | 2010-06-15 00:59:57 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-06-15 00:59:57 -0700 |
commit | eed0eb6a476d54ce19aeff137984aa981d9e3976 (patch) | |
tree | 807891636efd2f87dcbd261e971216269973ae07 /iup/test/button.c | |
parent | ccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff) |
Upgrading to iup 3.1
Diffstat (limited to 'iup/test/button.c')
-rwxr-xr-x | iup/test/button.c | 20 |
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); |