From Clomosy Docs

In Clomosy applications, individual objects are defined and special methods and properties are provided for various operations on these objects (receiving object data, aligning, adjusting height, etc.). These are properties and methods available in the source code of the application under test, as well as custom properties and methods implemented by application developers.

Align

Determines how a component is aligned. Use Align to align to the top, bottom, left, or right of a form or panel and keep the control there even if the size of the form, panel, or component containing the control changes. When the parent is resized, an aligned control is also resized to span the top, bottom, left, or right edge of the parent.

For example, to use a panel component with various controls as a tool palette, change the panel's Align value to alLeft. The alLeft value for the panel's Align property ensures that the tool palette stays on the left side of the form and is always equal to the form's client height.
Example usage;
Specifying where to align a button. You can do this in other components.

testBtn := MyForm.AddNewButton(MyForm,'testBtn','Scan Barcode...');
testBtn.Align := alCenter;
testBtn.Height := 100;
testBtn.Width := 200;
Properties Explanation
alNone It means that a component stays where it is positioned on a form or panel.
alTop It aligns at the top of the form to left and right based on.
alLeft Remains on the left side of the form and always ensures that the form is equal to client height.
alRight Remains on the right side of the form and always ensures that the form is equal to client height.
alBottom It stays at the bottom of the form and always ensures that the form is equal to the client's width setting.
alMostTop
alMostBottom
alMostLeft
alMostRight
alClient It takes up the entire form and always ensures that the form is equal to the client's width and height setting.
alContents It occupies the entire project page.
alCenter It is aligned in the middle of the page. As the client changes the page width, it is center aligned accordingly.
alVertCenter It is aligned based in right left in the middle of the form.
alHorzCenter It is aligned based in down on top the middle of the form.
alHorizontal Just like alVertCenter, it is right left justified. It is not centered as the client changes the height of the screen.
alVertical Just like alHorzCenter, it is down is on top justified. It is not centered when the client changes the width of the screen.
alScale The height and width of the button will cause change as the size of the form changes.
alFit The component is based on top and bottom. The size changes as the client plays with the size.
alFitLeft It is vertically justified to the left of the form. The size changes as the client plays with the size.
alFitRight It is vertically justified to the right of the form. The size changes as the client plays with the size.

Font Styles

Header text Header text
fsBold Makes text bold.
fsItalic Makes text italic.
fsUnderline Draws a line under the text.

Example Usage:

ztLbl.TextSettings.Font.Style := fsItalic;

Basis Events

  • tbeOnClick
  • tbeOnEnter
  • tbeOnExit
  • tbeOnItemClick

Example usage;

MyForm.AddNewEvent(testButton,tbeOnClick, 'ShowMessage(''Hello'')');

Form Templates

  • ftItems
  • ftProducts
  • ftCustomers
  • ftTasks
  • ftEmployees
  • ftThreads
  • ftMembers
  • ftTypes
  • ftGroups
  • ftMasters
  • ftActivities
  • ftBaseCustoms
  • ftThreadsView

Example Usage:

begin
Clomosy.OpenForm(ftProducts,fdtNone,froAddNew,ffoNoFilter);
end;

Form Display Types

Types Explanation
fdtNone When clicked, it is not possible to switch to another page.
fdtSingle Clicking it will switch to another page.
fdtBasket
fdtBasketPopup
fdtGuide Clicking on an area will exit the application.
fdtBasketCheckList
fdtBasketWithMaster

Example Usage:

begin
Clomosy.OpenForm(ftProducts,fdtNone,froAddNew,ffoNoFilter);
end;

Form List Objects

  • IoDefault
  • IoOrlistView
  • IoAlListView
  • IoTmListView

Form Record Options

Option Explanation
froReadOnly You can only read. A new field cannot be added within the page.
froAddNew The feature of adding a new field into the page becomes active.
froAddNewDetail It can be added to the page with new field detail information. When the '+' button is clicked, whatever is defined in the application comes up and you can add.
froUpdate

Example Usage:

begin 
Clomosy.OpenForm(ftProducts,fdtNone,froAddNew,ffoNoFilter); 
end;

Form Filter Options

Caption text
Header text Header text
ffoNoFilter You should use this value if you want the same data to be shown to users.
ffoDoFilter Each user saves different data. If you choose this, each user's data is shown to them.
ffoDoFilterWithEmpty

Example Usage:

begin 
Clomosy.OpenForm(ftProducts,fdtNone,froAddNew,ffoNoFilter);
end;