Ok I was able to implement a wrapping label by using iup.flatlabel. To make
it wrapping and resizing I had to do the following:

1. Get the natural size of the label after the mapping of the dialog is
done and store it permanently
2. Create a callback which is called everytime the dialog is resized. In
the callback whatever is the rastersize of the label I check how many
heights of the natural size are needed to make the natural size area fit in
the current raster size area.

This seems to work fine.

Thanks,
Milind

On Mon, Jul 26, 2021 at 4:07 PM Milind Gupta <milind.gu...@gmail.com> wrote:

> Hi Antonio,
>           How can I set the size of a wrapping label so that I can show
> the full text. The only way I see is to do EXPAND = "YES" which makes it
> take a lot of space. I want it to expand vertically only the amount needed
> to show the text. Is there a way to calculate how much that should be so I
> can set it at every resize event or is there  a better way to do it?
>
> Thanks,
> Milind
>
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to