It looks like you're new here. If you want to get involved, click one of these buttons!
I have a TElPanel and on this I have a TElTrackbar, a TStringGrid and a load of other TElPanels. This all works fine but I now want to turn this whole thing into a component. The problem I have is with the TElTrackBar:
LocalVolumeControl := TElTrackBar.Create (Self);
with LocalVolumeControl do
begin
Parent := LocalVolumeBasePanel;
Orientation := toVertical;
Align := alLeft;
// Max := 40;
// Position := 20;
ThemeMode := ttmNone;
ThumbColor := clMaroon;
ThumbType := tstBox;
TickColor := clYellow;
TickPosition := tpBoth;
TrackColor := clMoneyGreen;
ParentColor := false;
Width := 30;
end;
As soon as I un-comment one of those lines, I get a problem when I place the component in the main application. I get messages like "Control has No Parent Window".
I am using LMD2011 and Delphi XE2.
Any clues much appreciated.
Graham
Comments
This does not appear to be fixed in 2012.5. Nothing in the History log either.
Graham