topic "StarIndicator";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,2#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
[H6;0 $$4,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal]
[{_}%EN-US 
[ {{10000@(113.42.0) [s0; [*@7;4 StarIndicator]]}}&]
[s3; &]
[s1;:StarIndicator`:`:class: [@(0.0.255)3 class][3 _][*3 StarIndicator][3 _:_][@(0.0.255)3 publi
c][3 _][*@3;3 ProgressIndicator]&]
[s0;i448;a25;kKO9;@(0.0.255) &]
[s9; [/ Derived from ][/^topic`:`/`/CtrlLib`/src`/ProgressInd`$en`-us`#ProgressIndicator`:`:class^ P
rogressIndicator][/ . Part of ][/^topic`:`/`/Controls4U`/src`/Controls4U`$en`-us^ Con
trols4U][/  library.]&]
[s9; &]
[s9; StarIndicator is a kind of ProgressIndicator allowing to show 
the popularity of something, as we can see on some merchant web 
sites. It indicates the popularity with stars, and shows with 
text the exact rate (with one decimal) of the popularity and 
the number of votes.&]
[s9; &]
[s9; Colors are used to show the confidence we can give to the grade, 
according to the number of votes :&]
[s9;i150;O0; Light blue if undefined,&]
[s9;i150;O0; Red if less than the value defined in the variable [*/ m`_nVotesLow],&]
[s9;i150;O0; Yellow if more than the value defined in the variable 
[*/ m`_nVotesLow] and less than the value defined in the variable 
[*/ m`_nVotesHigh],&]
[s9;i150;O0; Light Green if more than the value defined in the variable 
[* m`_nVotesHigh]&]
[s9; &]
[s9; As seen in layout designer :&]
[s9; -|
@@PING:3150&633
(iVBORw0KGgoAAAANSUhEUgAAAXoAAABMCAYAAABj9HyUAAAACXBIWXMAAAsTAAALFAFP2wrfAAABY0lEQVR4nO3ZsW0DMRQFQdK4wq40lfY7kwMDDhT7QGA9EzJ6YLABuWfmvQDI+jo9AIBnXWutNTOHZwDwhPu+f0K/1lqv1+vgFACeMDOebgDqrs+Dt6/ZA1w68Pf23mstn7EAeUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPECf0AHFCDxAn9ABxQg8QJ/QAcUIPEHd9Hux9YsZ/59KB5/yGfmYOzgDgKd9Iww/k/zAUKQAAAABJRU5ErkJggg==)
&]
[s9; As seen in program :&]
[s9; -|
@@PING:3108&567
([encoded data, 5988 characters])
&]
[s9; -|
@@PING:3108&567
([encoded data, 15048 characters])
&]
[s9; &]
[ {{10000F(128)G(128)@1 [s0; [* Constructor detail]]}}&]
[s4; &]
[s5;:StarIndicator`:`:StarIndicator`(`): [* StarIndicator()]&]
[s2; Initializes StarIndicator with the default behavior :&]
[s2;i150;O0; The text will be displayed when the mouse goes over 
the control,&]
[s2;i150;O0; The text will be black,&]
[s2;i150;O0; The total will be shown,&]
[s2;i150;O0; The number of votes will be shown,&]
[s2;i150;O0; The number of votes is 0,&]
[s2;i150;O0; The minimal number of votes is 5 (for yellow stars),&]
[s2;i150;O0; The optimal number of votes is 50 (for green stars).&]
[s3; &]
[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
[s4; &]
[s5;:StarIndicator`:`:AlwaysShowValue`(bool`): [@(0.0.255) virtual] 
[_ StarIndicator][@(0.0.255) `&] [* AlwaysShowValue]([@(0.0.255) bool]_[*@3 b])&]
[s2; If [*@3 b] is [/ true], the text will always appear. If not, it 
will appear only when the mouse is over the control.&]
[s7;i1120;a17; [*C@3 b]-|Indicates if the text must be always shown 
or not.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:Layout`(`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Layout]()&]
[s2; This method is invoked when layout of StarIndicator has to be 
refreshed. This is usually either before window is displayed 
or when the StarIndicator is resized.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:MouseEnter`(Point`,dword`): [@(0.0.255) virtual] 
[@(0.0.255) void]_[* MouseEnter]([_^Point^ Point]_[*@3 p], [_^dword^ dword]_[*@3 keyflags])&]
[s2; This method is called by default implementation of MouseEvent 
when mouse cursor enters the view area of StarIndicator.&]
[s7;i1120;a17; [*C@3 p]-|Point of mouse cursor in view coordinates.&]
[s7;i1120;a17; [*C@3 keyflags]-|Combination of key flags for Shift, 
Ctrl and Alt keys.&]
[s3;  &]
[s4; &]
[s5;:StarIndicator`:`:MouseLeave`(`): [@(0.0.255) virtual] [@(0.0.255) void]_[* MouseLeave](
)&]
[s2;b17;a17; This method is called by default implementation of MouseEvent 
when mouse cursor leaves view area of StarIndicator.&]
[s3; &]
[s4; &]
[s5; [@(0.0.255) virtual] [@(0.0.255) void]_[* MouseMove]([_^`:`:Point^ Point]_[*@3 p], 
[_^`:`:dword^ dword]_[*@3 keyflags])&]
[s2;b17;a17; This method is called by default implementation of MouseEvent 
when mouse cursor hovers above view area of StarIndicator.&]
[s7;i1120;a17; [*C@3 p]-|Position of mouse cursor in view coordinates.&]
[s7;i1120;a17; [*C@3 keyflags]-|Combination of key flags for Shift, 
Ctrl and Alt keys.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:Paint`(Draw`&`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Paint]([_^`:`:Draw^ D
raw][@(0.0.255) `&]_[*@3 draw])&]
[s2;b17;a17; This method is called when StarIndicator`'s view area 
is about to be repainted.&]
[s7;i1120;a17; [*C@3 draw]-|Target of draw operations.&]
[s0; &]
[s4; &]
[s5;:StarIndicator`:`:Set`(double`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Set]([@(0.0.255) d
ouble]_[*@3 n])&]
[s2;b17;a17; Sets the new rate.&]
[s7;i1120;a17; [*C@3 n]-|New value.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:Set`(int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Set]([@(0.0.255) i
nt]_[*@3 n])&]
[s2;b17;a17; Sets the new rate as integer value.&]
[s7;i1120;a17; [*C@3 n]-|New value.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:Set`(int`,int`): [@(0.0.255) virtual] [@(0.0.255) void]_[* Set]([@(0.0.255) i
nt]_[*@3 n],[*@3  ][@(0.0.255) int]_[*@3 tot])&]
[s2;b17;a17; Sets the new rate as integer value and the maximum possible 
rate.&]
[s7;i1120;a17; [*C@3 n]-|New value.&]
[s7;i1120;a17; [*C@3 tot]-|New maximum rate.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:SetFontColor`(Color`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* SetFontColor]([_^`:`:Point^ Color]_[*@3 c])&]
[s2; Sets the color of the text.&]
[s7;i1120;a17; [*C@3 c]-|Color of the text.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:SetVotes`(int`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* SetVotes]([@(0.0.255) int]_[*@3 n])&]
[s2; Sets the number of votes.&]
[s7;i1120;a17; [*C@3 n]-|Number of votes.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:SetVotesHigh`(int`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* SetVotesHigh]([@(0.0.255) int]_[*@3 n])&]
[s2; Sets the minimal number of votes giving full confidence to the 
rate. The stars will be colored in light green if the number 
of votes is more than [*@3 n].&]
[s7;i1120;a17; [*C@3 n]-|Number of votes for full confidence.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:SetVotesLow`(int`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* SetVotesLow]([@(0.0.255) int]_[*@3 n])&]
[s2; Sets the minimal number of votes giving half confidence to the 
rate. The stars will be colored in yellow if the number of votes 
is more than [*@3 n], in red if lower than [*@3 n].&]
[s7;i1120;a17; [*C@3 n]-|Number of votes for half confidence.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:ShowPercent`(bool`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* ShowPercent]([@(0.0.255) bool]_[*@3 b])&]
[s2; Changes the way the text will display the rate : in percents 
if_[*@3 b] is true or in value if false. It will be displayed according 
to the choice set by the call of [* AlwaysShowValue]([@(0.0.255) bool]_[*@3 b]).&]
[s7;i1120;a17; [*C@3 b]-|Indicates if the text will display the rate 
in percents or in value.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:ShowTotal`(bool`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* ShowTotal]([@(0.0.255) bool]_[*@3 b])&]
[s2; The maximum rate value can be displayed or not, according to 
[*@3 b]. It will be displayed according to the choice set by the 
call of [* AlwaysShowValue]([@(0.0.255) bool]_[*@3 b]).&]
[s7;i1120;a17; [*C@3 b]-|If [/ true], the total (maximum rate value) will 
be displayed.&]
[s3; &]
[s4; &]
[s5;:StarIndicator`:`:ShowVotes`(bool`): [@(0.0.255) virtual] [_ StarIndicator][@(0.0.255) `&
] [* ShowVotes]([@(0.0.255) bool]_[*@3 b])&]
[s2; The number of votes can be displayed or not, according to [*@3 b]. 
It will be displayed according to the choice set by the call 
of [* AlwaysShowValue]([@(0.0.255) bool]_[*@3 b]).&]
[s7;i1120;a17; [*C@3 b]-|If [/ true], the number of votes will be displayed.&]
[s3;%- ]]