Quote Originally Posted by Mith View Post
Before i switched to the VBCCR controls i used my own unicode usercontrols with the support of AutoSize for the Checkbox & OptionButton control.
I used the windows API GetTextExtentPoint32W to determine the width of the unicode text. t's quite easy to implement such a feature. The only tricky thing was to take care of the Alignment property, for example, if you have a RightAlignment you need to move the control to the left and not only extend the usercontrol width! Just my 2 cents...
In the VBFlexGrid I already included a TextWidth function.
It also takes into account multi-line text, like VB Form's TextWidth.

So I will include soon some TextWidth function to certain VBCCR controls. (Where it makes sense)

Thanks for your comments always.