Solved ProgressBar top down lazarus / 31-LCL ---------------------------------------------------------------------- Ruptor · 2016-02-24 01:05 How do I get the progress bar to run from top to bottom or from right to left. The orientation parameter doesn't seem to make any difference? pbtopdown is the same as pbvertical and ditto for pbrighttoleft. Using Lazarus 1.6RC2 on WinXP. ---------------------------------------------------------------------- Mike.Cornflake · 2016-02-24 02:58 Dunno.  I'm seeing the same under Lazarus Trunk under Win 7 Hmm.  Win32WSComCtrls.pas doesn't differentiate between the two modes of each orientation Code: [Select]      if (Orientation = pbVertical) or (Orientation = pbTopDown) then         Flags := Flags or PBS_VERTICAL;       if (Win32WidgetSet.CommonControlsVersion >= ComCtlVersionIE6) and          (Style = pbstMarquee) then  And that led me to the follow MS documentation https://msdn.microsoft.com/en-us/library/544f5zyx.aspx Doesn't look like the MS control supports it.  The other values are for the other OS's. DOH!  And this finally reminds me of the "Restricted" tab in your object inspector.  Have a look.  Orientation is listed as a Restricted property with a windows icon.  This means that under Windows, this property is not fully supported. UPDATE: Have a look at the following:  One may suit your requirements. http://wiki.lazarus.freepascal.org/Eye-Candy_Controls#TECProgressBar http://wiki.lazarus.freepascal.org/ATGauge http://wiki.lazarus.freepascal.org/KControls There's more as well.  Search this forum or the wiki. ---------------------------------------------------------------------- engkin · 2016-02-24 04:04 Windows progress bar supports right to left if WS_EX_LAYOUTRTL flag is added to its ExStyle: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses  ..., ComCtrls, LCLType; type   TR2LProgressBar = class(TCustomProgressBar)  protected    procedure CreateParams(var Params: TCreateParams); override;  end;...procedure TR2LProgressBar.CreateParams(var Params: TCreateParams);const  WS_EX_LAYOUTRTL      =   $00400000; { Should be added to LCLType? }begin  inherited CreateParams(Params);  Params.ExStyle := Params.ExStyle or WS_EX_LAYOUTRTL;end; Test it with something like: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Button1Click(Sender: TObject);var  pb: TCustomProgressBar;begin  pb := TR2LProgressBar.Create(Self);  with pb do  begin    Parent := self;    Left := 10;    Top := 10;    Width := 100;    Position := 15;  end;end; ---------------------------------------------------------------------- Ruptor · 2016-02-24 11:13 Quote from: Mike.Cornflake on February 24, 2016, 03:58:58 amDOH!  And this finally reminds me of the "Restricted" tab in your object inspector.  Have a look.  Orientation is listed as a Restricted property with a windows icon. I will have to remember about the restricted tab for the future thanks Mike. I am just an amateur user so if it isn't in Lazarus it won't get used it would be too complicated for my little brain.