Hi,
I make the MainForm accessible to script to manage its properties like "Width" and "Caption", but I can't do so with "Components" property. How can I do this ?. What I need is to loop through MainForm components to adjust their sizes and positions.
Thank you in advance,
You have to register methods and public properties, which is the case of Components
property. Several ways to do that:
https://doc.tmssoftware.com/biz/scripter/guide/scripter.html#calling-methods
https://doc.tmssoftware.com/biz/scripter/guide/scripter.html#registering-indexed-properties
https://doc.tmssoftware.com/biz/scripter/guide/scripter.html#registering-a-class-in-scripter
Alternatively you can also add the existing import library for Classes
unit which register those:
uses {...}, ap_Classes;
...
IDEScripter1.AddLibrary(TatClassesLibrary);
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.