CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Assigning TIWCGJQEdit to TIWCGPanelListItem

by ScottWGast » 27 Oct 2017 14:55

In my quest to build a property editor, I'd like to utilize two vertical, parallel panel lists. The left panel list will contain the names of the various properties and the panel list on the right will contain the various CG Dev tools edit components to match the property data type.

In this example, I want to create a TIWCGJQEdit component and assign it to the panel list item I just added.

Code: Select all
procedure TframePropertyEditor.IWCGJQFrameCreate(Sender: TObject);
var
  itemEditPanel: TIWCGPanelListItem;
  itemEdit: TIWCGJQEdit;
begin
  itemEditPanel := Self.listPropertyNames.Items.Add;
  itemEditPanel.Caption := 'StartDate';

  itemEditPanel := Self.listPropertyValues.Items.Add;
  itemEdit := TIWCGJQEdit.Create(Self);
  itemEdit.Parent := itemEditPanel;
end;


TIA!
Scott

OK, hold on a minute... I just looked @ the CGDev Tools demo and found the TreeView demo to be perfect for my needs.
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

Return to CGPanelList

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.