From Clomosy Docs
(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...") |
No edit summary |
||
| Line 1: | Line 1: | ||
AddNewProPanel(TComponent, xName | AddNewProPanel(TComponent, xName): 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> | 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> | ||
Revision as of 06:08, 30 October 2023
AddNewProPanel(TComponent, xName): 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;