Hi,
I am not able to find a solution how to limit width of Label (or any Button) while property autoFit is set to TRUE.
I like autofit possibility.
But if I set really too long title to Label, then label is enlarged as much as possible to be the title completely visible and it could lead to unexpected layout.
I want to limit it to some maximum width => do not enlarge more than some "px" width or "%" of parent container.
If necessary then text should be clipped with "...".
For example if I set "isGroup" property on Canvas, then a frame with label is shown around the canvas contents.
But if group title is too long, it is not clipped, it does not respect canvas width and title is rendered in full length over the next widgets.
Layout is completely corrupted.
I need something similar also for menu ... if a title of menu item is too long, clip it from some specified maximum width (or something like this).
But if it is short enough, let's consume only as much space as necessary.
Do you have some hint how to limit it?
I can't find a solution :-(
Thanks,
Ales
I am not able to find a solution how to limit width of Label (or any Button) while property autoFit is set to TRUE.
I like autofit possibility.
But if I set really too long title to Label, then label is enlarged as much as possible to be the title completely visible and it could lead to unexpected layout.
I want to limit it to some maximum width => do not enlarge more than some "px" width or "%" of parent container.
If necessary then text should be clipped with "...".
For example if I set "isGroup" property on Canvas, then a frame with label is shown around the canvas contents.
But if group title is too long, it is not clipped, it does not respect canvas width and title is rendered in full length over the next widgets.
Layout is completely corrupted.
I need something similar also for menu ... if a title of menu item is too long, clip it from some specified maximum width (or something like this).
But if it is short enough, let's consume only as much space as necessary.
Do you have some hint how to limit it?
I can't find a solution :-(
Thanks,
Ales
Comment