Recent

Author Topic: ProgressBar  (Read 6427 times)

obiwankby

  • New member
  • *
  • Posts: 7
ProgressBar
« on: May 20, 2010, 04:35:54 am »
It is possible to placing a ProgressBar into a status bar ?

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: ProgressBar
« Reply #1 on: May 20, 2010, 06:36:38 am »
I remember that with Delphi and Windows it was possible to change the Parent of a Progressbar what can be used to move the Progressbar into a Statusbar. Perhaps this will work for you:

Code: [Select]
aProgressBar:=TProgressBar.Create(MainStatusBar);
aProgressBar.Parent:=MainStatusBar.Panels[0];
...

Unfortunately, that does not work with Linux and you should think about to draw it yourself.
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018