From Clomosy Docs

No edit summary
No edit summary
 
Line 41: Line 41:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]]
* [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]]
{{#seo:|description=Discover how to use the clRTGetProperty function in Clomosy to access and retrieve runtime property values of components dynamically.}}

Latest revision as of 11:02, 24 December 2024

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:

Example

var
  MainForm : TclForm;
  iconBtn : TCLProButton;
{
  MainForm=TclForm.Create(self);
  MainForm.SetFormBGImage('https://clomosy.com/demos/bg1.png');
  
  iconBtn = MainForm.AddNewProButton(MainForm,'iconBtn','Hello!');
  iconBtn.Align = AlTop;
  iconBtn.Height = 150;
  iconBtn.Margins.Top = 40;
  iconBtn.Margins.Left = 5;
  
  ShowMessage(clRTGetProperty(iconBtn,'Text'));
  
  MainForm.Run;
}

See Also