From Clomosy Docs

Revision as of 14:31, 14 August 2023 by ClomosyManager (talk | contribs) (Created page with " AddNewProPanel(TComponent, xName, xCaption): TclProPanel The TclProPanel feature is a component that contains components that we use more than once in our application. You can define the component with the json structure. It has the features described below.<br> * Width * Height * PositionX * PositionY * Align * BackgroundColor * MarginTop * MarginBottom * MarginRight * MarginLeft * RoundHeight * RoundWidth * BorderColor * BorderWidth '''Code:'''<br> '''Var''' M...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AddNewProPanel(TComponent, xName, xCaption): TclProPanel

The TclProPanel feature is a component that contains components that we use more than once in our application. You can define the component with the json structure. It has the features described below.

  • Width
  • Height
  • PositionX
  • PositionY
  • Align
  • BackgroundColor
  • MarginTop
  • MarginBottom
  • MarginRight
  • MarginLeft
  • RoundHeight
  • RoundWidth
  • BorderColor
  • BorderWidth

Code:

Var  
 MyForm:TclForm;
 testPanel : TclProPanel;
begin MyForm:=TclForm.Create(self); testPanel:=MyForm.AddNewProPanel(MyForm,'testPanel'); clComponent.SetupComponent(testPanel,'{"Align" : "Center","MarginBottom":135,"Width" :200, "Height":280,"RoundHeight":10,"RoundWidth":10,"BorderColor":"#fabd2","BorderWidth":2}');
MyForm.Run; end;