From Clomosy Docs

No edit summary
No edit summary
 
Line 63: Line 63:
<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:|title=CLRTMethod Using in Clomosy - Clomosy Docs}}
{{#seo:|description=clRTMethod allows access to component properties like BringToFront, SendToBack, and ShowModal, enabling efficient component management in Clomosy.}}
{{#seo:|description=clRTMethod allows access to component properties like BringToFront, SendToBack, and ShowModal, enabling efficient component management in Clomosy.}}

Latest revision as of 14:06, 24 December 2024

Allows access to the properties of a component.

Object : The name of the component to be processed should be written.

xMethod : The feature of the selected component to be accessed is written.

This function provides access to various properties. For example, when two components are aligned at the same position, the BringToFront property is used to bring one to the front for visibility, while the SendToBack property is used to keep it at the back.

The other important function used exclusively on the Windows platform and with clRTMethod is the ShowModal method. This method also serves the purpose of the Run method. When used, the Run method should not be used. An error is encountered as a result. The ShowModal feature restricts access to and hides the forms prior to the one opened with it. This prevents interference when clicking on the Clomosy project list.

In addition, properties like Run and Show can be utilized for executing the form object and displaying it on the screen, respectively.


Example

 var
   myForm:TclForm;
   showBtn:TclButton;
   showImg : TclImage;
 void onclikImg;
 {
   clRTMethod(showBtn, 'BringTofront');
 }
 
 void onclikBtn;
 {
   clRTMethod(showBtn, 'SendToBack');
 }
 
 {
   myForm = TClForm.Create(Self);
   showBtn = myForm.AddNewButton(MyForm, 'btn1','click');
   showBtn.Width = 200;
   
   showImg = MyForm.AddNewImage(MyForm,'showImg');
   MyForm.setImage(showImg,'https://clomosy.com/educa/bg3.png');
   showImg.Height = 300;
   showImg.Width = 300;
   MyForm.AddNewEvent(showImg, tbeOnClick, 'onclikImg');
   MyForm.AddNewEvent(showBtn, tbeOnClick, 'onclikBtn');
   
   clRTMethod(MyForm, 'Show'); //myForm.Run;
 }

See Also