A
ajk
I have a user control which displays a number say 12.2 and I would
like to maximize the size of the number in the control. If a user
changes the size of the control the number/font size should scale
accordingly.
At the moment I create a number of Font's; first large then smaller
until it fits into the control, then from small to large until it no
longer fits - then take largest fitting font size. This seems somehow
like a resource demanding clumsy way so I was wondering if somebody
knows a best practice for this?
br/ajk
like to maximize the size of the number in the control. If a user
changes the size of the control the number/font size should scale
accordingly.
At the moment I create a number of Font's; first large then smaller
until it fits into the control, then from small to large until it no
longer fits - then take largest fitting font size. This seems somehow
like a resource demanding clumsy way so I was wondering if somebody
knows a best practice for this?
br/ajk