|
-
May 13th, 2020, 06:52 AM
#11
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Mith
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|