Board index » cppbuilder » How to put a progress bar in a status bar
Ruel Smit
![]() CBuilder Developer |
Sun, 28 Apr 2002 03:00:00 GMT
How to put a progress bar in a status bar
I want to add a progress bar in a status bar. I am writing a communications
program for work that will be called by the parent program. It's very simple, with a main form that arises that lets you enter the phone number to dial, a button that takes you to an options form that has various dial settings, and it simply selects a file to transfer, dials the number and transfer the file via zmodem. I have 2 panels in my status bar: 1 that has the dialing/connnecting/transmitting/disconnecting/idle message and the other I want to have a progress bar that shows the progress of the file in transmit. I have set up the panel's style property to psOwnerDraw and wrote the beginnings of an event handler void __fastcall TForm1::StatusBarDrawPanel(TStatusBar *StatusBar, Quote} Also, any suggestions in determining how much of a file has been transmitted to update the progress bar? I'm new to C++ Builder and GUI programming. Any help in finishing this would be much appreciated. -- |