>De: Stéphane Goujet <stephane.gou...@wanadoo.fr>
>Enviado: segunda-feira, 19 de dezembro de 2022 10:16
>Para: iup-users@lists.sourceforge.net
>Assunto: Re: [Iup-users] IupFrame too short when its title is wider than its 
>content

>Hello,

>Le Sun, 18 Dec 2022 20:41:56 +0000,
>Ranier Fonseca <ranier_...@hotmail.com> a écrit :

>> >  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.

  > Well, I guess that when we set a title, we expect it to be displayed
>fully and correctly, don't we? :-)
Not necessarily in all cases.
If the size is hardcoded, the title will probably be cut off.

>> But You can use IupVbox and IupHbox to change your layout and get the
>> result you need.

  >Yeah, thank you, but that's more like a work around, because you need
>to hardcode the dimension of the content, or calculate it by yourself
>(and the calculation will probably be at least as brittle as my Q&D
>patch).
Yes, my example was not entirely illuminating.
The point is that IupVbox and IupHbox allow you to create dynamic layouts.

regards,
Ranier Vilela

_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to