This is an implementation, based on Vector-Drawing (with the cairo-Wrapper-Classes from vbRichClient5).
A normal VB6-UserControl is used as the Host for these Drawings - fully transparent and alpha-aware.
The Star-Rendering will be smooth and antialiased, even when the Controls are resized
(to behave properly in DPI-aware Apps).
The MinHeight of the Control is 16-, its MaxHeight 56-Pixels.
The ScreenShot below shows, how the rendering behaves with different Sizes (and Colors).
The Value of the Control can be set also per Mouse-Interaction (Drag- or Click) - and
will (in Drag-Mode) show a darker "Hover-Overlay" (so the older Value can be seen for comparison,
until the Mouse-Button is released).
Here's the Source-Zip: StarRating.zip
And here a ScreenShot:
![]()
Olaf
A normal VB6-UserControl is used as the Host for these Drawings - fully transparent and alpha-aware.
The Star-Rendering will be smooth and antialiased, even when the Controls are resized
(to behave properly in DPI-aware Apps).
The MinHeight of the Control is 16-, its MaxHeight 56-Pixels.
The ScreenShot below shows, how the rendering behaves with different Sizes (and Colors).
The Value of the Control can be set also per Mouse-Interaction (Drag- or Click) - and
will (in Drag-Mode) show a darker "Hover-Overlay" (so the older Value can be seen for comparison,
until the Mouse-Button is released).
Here's the Source-Zip: StarRating.zip
And here a ScreenShot:

Olaf