From Clomosy Docs

TclDrawForm is a custom form object that contains many graphic objects and properties. It can be used for drawing operations and can present drawing, graphics or other visual interactions to the user.
For example, it can give the user the ability to draw a picture or create graphics using drawing tools.


Before using these features, the form must be initialized.
An object of the TclDrawForm class should be defined.

var
  DrawForm1 : TclDrawForm;

The defined object must be created using the "Create" function.

{
  DrawForm1 = TclDrawForm.Create(Self);
  DrawForm1.Run;
}

The features are provided in the table below.

Feature Use of Definition
clSetStyle DrawForm1.clSetStyle(DrawForm1.DarkSB); //DrawForm1.LightSB The form can be given a dark and light theme. The clSetStyle property should be used for this. DarkSB is used for dark color and LightSB is used for light color.
DrawApp DrawForm1.DrawApp(True); It is a feature that allows it to be used as a drawing application.

Example

 var
   DrawForm1 : TclDrawForm;
 
 {
   DrawForm1 = TclDrawForm.Create(Self);
   DrawForm1.clSetStyle(DrawForm1.DarkSB); //DrawForm1.DarkSB - DrawForm1.LightSB
   DrawForm1.DrawApp(True);  
 
   DrawForm1.Run;
 }

Output:
TclDrawFormScreen.png

See Also