Board index » cppbuilder » progress bar in status bar?

progress bar in status bar?

Has anyone been able to place a progress-bar component inside of a status bar component?
(As is done in Outlook Express for example)
I would like to gauge the significance of the task using BCB3.

This would be useful for me since I need to show a progress bar and don't really have any room for
it on the dialog

It doesn't seem to possible in terms of the normal usage and I haven't managed to find a FAQ on this
particular subject as of yet.

Thanks.

 

Re:progress bar in status bar?


Hi,Peter!

Quote
Peter vdW wrote:
> Has anyone been able to place a progress-bar component inside of a status bar component?
> (As is done in Outlook Express for example)
> I would like to gauge the significance of the task using BCB3.

> This would be useful for me since I need to show a progress bar and don't really have any room for
> it on the dialog

> It doesn't seem to possible in terms of the normal usage and I haven't managed to find a FAQ on this
> particular subject as of yet.

Try something like this...

 ProgressBar1->Parent=StatusBar1;
 ProgressBar1->Top=5;
 ProgressBar1->Left=10;

--
Visit my page : http://sergss.newmail.ru/
BCB components : http://sergss.newmail.ru/BCB_eng.htm
| )))))
|
|___
|ooo|
|ooo|
|ooo|
|___|
Sergei.

Re:progress bar in status bar?


You can also put it in there during build time by putting the progress bar
anywhere on the form.  Then just right clicking on the form and selecting to
see it as text.  Then go down to the progress bar code and cut it from its
current location.  Paste this text within the brackets of the Status Bar.
Before returning to the code make its top value 1 and its left whatever.
After this is done you can return to viewing your form normaly and your
progress bar will be in your status bar.  By putting it in the code like
that manually you set its parent as the status bar component and therefore
won't move out of there.

Hope this helps.

Joe ( Gooboy99 )

Quote
"Peter vdW" <spurrymo...@nospambigpond.com> wrote in message

news:8rs537$32d7@bornews.borland.com...
Quote
> Has anyone been able to place a progress-bar component inside of a status
bar component?
> (As is done in Outlook Express for example)
> I would like to gauge the significance of the task using BCB3.

> This would be useful for me since I need to show a progress bar and don't

really have any room for
Quote
> it on the dialog

> It doesn't seem to possible in terms of the normal usage and I haven't

managed to find a FAQ on this
Quote
> particular subject as of yet.

> Thanks.

Re:progress bar in status bar?


Hello Sergei, Peter,

Sergei Sorokin <ser...@ncc.nnov.ru> schreef in berichtnieuws
39E1C068.3AF1...@ncc.nnov.ru...

Quote
> Hi,Peter!
> Try something like this...

>  ProgressBar1->Parent=StatusBar1;
>  ProgressBar1->Top=5;
>  ProgressBar1->Left=10;

And don't forget to set the ControlStyle of the TStatusBar to
csAcceptsControls...;-))

Quote
> Sergei.

--
Greetings from rainy Amsterdam

                Jan

email: bijs...@worldonline.nl
http://home.worldonline.nl/~bijster

Re:progress bar in status bar?


Quote
Peter vdW wrote:
> Has anyone been able to place a progress-bar component inside of a status bar component?
> (As is done in Outlook Express for example)
> I would like to gauge the significance of the task using BCB3.

> This would be useful for me since I need to show a progress bar and don't really have any room for
> it on the dialog

> It doesn't seem to possible in terms of the normal usage and I haven't managed to find a FAQ on this
> particular subject as of yet.

> Thanks.

If you want to be really stingy on resources - set a Panel to ownerdraw style, and draw the progress
rectangle in the onCustomDraw event, using the Windows colour clActiveWindow

HTH

Patrick

Other Threads