From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 36: | Line 36: | ||
MainForm.Run; | MainForm.Run; | ||
} | } | ||
</pre> | </pre> | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]] | * [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]] | ||
Revision as of 10:45, 13 November 2024
function clRTGetProperty(Object: TCLComponent; PropName: String): String;
Object : The name of the component to be processed should be written.
PropName : The name of the component feature you want to get is specified.
clRTGetProperty is a part of the Clomosy library and is used to retrieve a property of a component. This function returns the value of a specific property of a component at runtime.
The general usage is as follows:
clRTGetProperty(Btn, 'Text')
clRTGetProperty(Btn, 'Visible')
clRTGetProperty(MyForm, 'ComponentCount')
Example
var
MainForm : TclForm;
iconBtn : TCLProButton;
{
MainForm=TclForm.Create(self);
MainForm.SetFormBGImage('https://clomosy.com/demos/bg1.png');
iconBtn = MainForm.AddNewProButton(MainForm,'iconBtn','Hello!');
clComponent.SetupComponent(iconBtn,'{"Align" : "Top","MarginTop":40,"MarginLeft":5,
"Height":150}');
ShowMessage(clRTGetProperty(iconBtn,'Text'));
MainForm.Run;
}