Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1476

VB6 StarRating-Control (cairo-Rendering)

$
0
0
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
Attached Files

Viewing all articles
Browse latest Browse all 1476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>