>De: Stéphane Goujet <stephane.gou...@wanadoo.fr> >Enviado: domingo, 18 de dezembro de 2022 20:05 >Para: iup-users@lists.sourceforge.net >Assunto: [Iup-users] IupFrame too short when its title is wider than its >content
>[I am using IUP version 3.30, with GTK2 on X11] >Hello, Hi Stéphane. > IupFrame doesn't take the width of the title into account when it >calculates the width of the frame. > Therefore, when the content of the Frame is not wide, the title is >cut short. I didn't check if it's a bug or not. But You can use IupVbox and IupHbox to change your layout and get the result you need. #include <stddef.h> #include <iup.h> int main(void) { Ihandle *dlg, *frame, *button; Ihandle *hbox; Ihandle *vbox; IupOpen(NULL, NULL); button = IupButton("Button", NULL); hbox = IupHbox(button, NULL); IupSetAttribute(hbox, "SIZE", "200x80"); frame = IupFrame(hbox); IupSetAttribute(frame, "TITLE", "A title wider than the button"); vbox = IupVbox(frame, NULL); dlg = IupDialog(vbox); IupSetAttribute(dlg, "TITLE", "Test bug length of frame when title is set"); IupSetAttribute(dlg, "SIZE", "200x80"); IupShowXY(dlg, IUP_CENTER, IUP_CENTER); IupMainLoop(); IupClose(); return 0; } regards, Ranier Vilela _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users