REALbasic – ProgressBar Control line

ProgressBar Control available in REALbasic is a great tool to show a progress of some action in visual way. You can see this control for example in browsers on loading page, when you are coping a file in your system or extracting a document etc.

Changing ProgressBar value

If we like change a ProgressBar Control value to 50% we simply use this code. The default ProgressBar.Maximum is 100 so a half from this is 50.

1
ProgressBar1.Value = 50

HTMLViewer page load progress

More practical example for using ProgressBar Control is displaying a page load progress from HTMLViewer control. To do this go to code editor and in HTMLViewer Sub DocumentProgressChanged (URL As String, percentageComplete As Integer) enter:

1
ProgressBar1.Value = percentageComplete

Barber pole

To display a barber pole set the maximum property to 0.

1
ProgressBar1.Maximum = 0

Author: Jakub Pawlak

I'm interested in all. Currently working on the development of TUTSPOLIS and I hope that in near feature the project will be successful.

Leave a Reply

Copyrights (c) TUTSPOLIS | Powered by Wordpress MU | Inspired at Elegant Themes designed by qbap (HTML5 & CSS3)