Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assist to modify Ramanis Progress Bar

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
Following a request from one of my users I added a label above the moving progress bar to show percentage throughout out the running of the bar. Previously the percentage was in the middle of the bar and disappeared when the blue bar got past halfway.

Now a user is pointing out the redundancy of the central percentage display as it is overwritten past halfway.

I won't repeat the whole class code as it's well known but in the ProgrammaticChange method

Code:
Procedure Progress1.ProgrammaticChange
* 380 is the Max width of the Progress Bar when 100% completed.
Set Cursor Off

This.Parent.ProgressBar.Width = (This.Value * 380)/100
This.Parent.ProgressPercent.Caption = Transform(This.Value)+'%'
This.Parent.lblProgress.Caption = 'Progress '+Transform(This.Value)+'%'
Inkey(0.0001)
endproc

Could someone plesae help me with the code to suppress the percentage under the progress bar?
I have tried with no success.

GenDev
 
Why, you can simply change the zorder and the bar will be behind the percentage.

Also you can simply set the caption you don't want to "", can't you?

Bye, Olaf.

 
Thanks Olaf,

>Also you can simply set the caption you don't want to "", can't you?

My previous code change was incorrect so yes that worked - many thanks.

GenDev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top