From Clomosy Docs

Revision as of 14:47, 8 March 2023 by ClomosyManager (talk | contribs) (Created page with "TclLoyout is a container for other graphic object. Use TclLayout to edit multiple chart controls under the same parent. For example, you wanted to put 2 components (label, button) in a single line on the page you want to design. In such cases, you can position these 2 components in a single Layout. AddNewLayout(TComponent, xName) <span style="color:blue">''TComponent''</span> : The variable name of the defined component is written. Here you should write the component...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TclLoyout is a container for other graphic object. Use TclLayout to edit multiple chart controls under the same parent. For example, you wanted to put 2 components (label, button) in a single line on the page you want to design. In such cases, you can position these 2 components in a single Layout.

AddNewLayout(TComponent, xName)

TComponent : The variable name of the defined component is written. Here you should write the component variable name of whatever your component will be in.

xName : The name of the defined layout should be written.

Let's create a layout.
1. Create a new project.

2. You need to define TclLayout on the form. To do this, you should add under the var parameter on the ide as follows. It is the name of your variable you typed at the beginning. You should define this as you want and add it as TclLayout.

var
testLayout : TclLayout;

3. Add the TclLabel to the form. For this, you must add the begin end block and add it inside the form after the form is defined. By saying MyForm.AddNewLabel, we actually add to the form we have defined. Here, you need to add your form definition as whatever you wrote it.