From Clomosy Docs
(Created page with " AddNewProListViewDesignerPanel(TComponent, xName):TClProListViewDesignerPanel; It is a component that can be defined in Listview and that we can add elements to and design. We can add a certain amount of elements in the DesignerPanel. The binding parameters of these elements to be added are as follows: * clCaption * clText * clText1 * clText2 * clText3 * clText4 * clText5 * clText6 * clImage1 * clImage2 * clRecord_GUID How do we use these parameters?<br> For example,...") |
No edit summary |
||
| Line 30: | Line 30: | ||
testListview.'''SetDesignerPanel'''(testDesignerPanel); | testListview.'''SetDesignerPanel'''(testDesignerPanel); | ||
</blockquote> | </blockquote> | ||
In this way, we have made our definitions. You can see the sample project in the [[ | In this way, we have made our definitions. You can see the sample project in the [[TClProListView|AddNewProListView]] field. | ||
Revision as of 14:02, 5 December 2023
AddNewProListViewDesignerPanel(TComponent, xName):TClProListViewDesignerPanel;
It is a component that can be defined in Listview and that we can add elements to and design. We can add a certain amount of elements in the DesignerPanel. The binding parameters of these elements to be added are as follows:
- clCaption
- clText
- clText1
- clText2
- clText3
- clText4
- clText5
- clText6
- clImage1
- clImage2
- clRecord_GUID
How do we use these parameters?
For example, there is a label and it is text. We can use one of the clText ones for this. Let's take a look at the usage.
testDesignerPanel.AddPanelObject(testLabel,clText);
Let's define it to use in our project.
testDesignerPanel : TClProListViewDesignerPanel;
Let's add the DesignerPanel to the ProListView.
testDesignerPanel := MyForm.AddNewProListViewDesignerPanel(testListview,'testDesignerPanel');
clComponent.SetupComponent(testDesignerPanel,'{"Height":100,"Width" : 150,"BackgroundColor":"#F6EDDB","BorderColor":"#F5BCC9","BorderWidth":2,"RoundHeight":20,"RoundWidth":20}');
testListview.SetDesignerPanel(testDesignerPanel);
In this way, we have made our definitions. You can see the sample project in the AddNewProListView field.