This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

TElTrackBar

edited May 2012 in LMD ElPack

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

Sign In or Register to comment.