Label Caption
Changing the Caption of a Label
We have seen previously (or if you already know) that unigui allows you to add html instructions to a UniLabel.
You also understood that the HINT property of the components is where RadCORE processes the RadCORE rendering.
So, for example, imagine a label called "labCancel" where its "caption" contains "Cancel" and its hint:
[[ ico:fas-times|append ]]
When running the application, RadCORE renders the label and adds an icon before the caption:

Your hint, internally, will be:
[[ico:fas-times|append|caption:Cancel]]
Your caption, internally, will be:
<i class="fas fa-times fa-lg"></i><span> Cancel</span>
If you need to change the Label's caption, you can:
1) change the hint, changing the "caption:" attribute and rendering the label again
labCancel.hint := '[[ico:fas-times|append|caption:Delete]]';
dm_rc.rc_RenderControls( self, labCancel );
3) call the rc_ChangeLabelCaption function
rc_ChangeLabelCaption( self, labCancel, 'Delete', true );

Created with the Personal Edition of HelpNDoc: Free help authoring environment