Pavel Sanda wrote:
hello,
i'm trying to derive new kind of inset, which would be similar to
InsetBox, but i need it to be fixed-width (i mean really fixed, not
that after reaching .width the inset is magnified to wider text).
Why not adding a new option to InsetBox instead?
is this somehow possible to do just by deriving from eg InsetBox/InsetText
with just adjusted parameters ?
up to know i tried to clone insetbox and play with metrics written similarly to
insetbox but it seems not easy to make it work. single touch and many things
get broken with no obvious fix.
Welcome to the wonderful world of metrics and painting ;-)
btw it is know the painting bug of insetbox, when set to fixed width ?
when typing gets over the width painting starts to be garbled, but it
gets ok when moving mouse over it or make it somehow repainted with keyborad.
I'll have a look.
Abdel.