Hi, I have a project with IUP 3.24 that works without problem. Now I updated to IUP 3.26 and I have a problem with IupScrollBar. Today I update IUP to svn to be sure I'm using the latest source. But the problem remains. Attached is a small test that show the problem, move the horizontal and vertical scrolls and you will see the problem. Is this a bug? Or maybe something has changed at IUP and I need update my code?
Regards.
#include <stdlib.h> #include <stdio.h> #include <iup.h> int main(int argc, char **argv) { int x, y; Ihandle *dialog, *chalkBoard, *scroll, *button1, *button2, *hbox, *buttonCell; IupOpen(&argc, &argv); button1 = IupButton("Button 1", NULL); button2 = IupButton("Button 2", NULL); chalkBoard = IupGridBox(NULL); // Add the cells for the chalkboard. for (y = 1; y <= 18; y = y + 1) { for (x = 0; x < 26; x = x + 1) { buttonCell = IupFlatButton(""); IupSetAttribute(buttonCell, "RASTERSIZE", "50x50"); IupAppend(chalkBoard, buttonCell); } } IupSetAttribute(chalkBoard, "NUMDIV", "26"); hbox = IupHbox(button1, button2, NULL); scroll = IupScrollBox(chalkBoard); IupSetAttribute(scroll, "RASTERSIZE", "500x150"); IupSetAttribute(scroll, "BGCOLOR", "0 0 0"); IupSetAttribute(scroll, "BORDER", "YES"); dialog = IupDialog(IupVbox(hbox, scroll, NULL)); IupSetAttribute(dialog, "RASTERSIZE", "570x300"); IupSetAttribute(dialog, "TITLE", "Scrollbar Test"); IupShowXY(dialog,IUP_CENTER,IUP_CENTER); IupMainLoop(); IupDestroy(dialog); IupClose(); return EXIT_SUCCESS; }
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users