Re: [IUP] IupText minimum size [SOLVED]

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

When there is not enough horizontal size for all the elements clipping starts from the right-hand-side; clipping always sacrifices the right most elements and tries to preserve the left most elements. I couldn't find a way to defeat this rule.

You could try MINSIZE as an attribute rather than SIZE. (But RHS clipping still seems to follow the same rules.)

You could create a dynamic layout that reads the size of the dialog and then sets the attributes or the elements.

_tom

Thanks for replying. As above SHRINK solved the immediate problem.
I did try MINSIZE on ftxt but it appears to have no effect on an IupText control.
I agree that MINSIZE on the IupDialog is probably the best/only way to prevent unwanted clipping.
What I have found, however, is that for some reason MINSIZE needs to be multiplied by {1.5,1.875}, ie width*1.5 and height*1.875.
For example (on an IupDialog) setting MINSIZE to "478x354" has the effect of 319x189, I needed "717x664" to achieve 478x354

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu