Scrollbar on a Panel

willisgt

Active Member
Licensed User
I'm trying to add a progress bar to a panel. So far I've tried to:

1.) Create the progress bar (using progressbar.New1) with the panel as the parent (in place of the form name). No luck.

2.) Create the progress bar on the same form as the panel (works fine) and move it onto the panel by changing the parent via formlib. No Luck.

Is it even possible to place a progress bar on a panel? (I've encountered the same problem with scrollbars.)


Gary

:sign0163:
 

Erel

Administrator
Staff member
Licensed User
A small example is attached.
This is the code:
B4X:
Sub Globals
    'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    bar.New1("panel1",10,10,200,30)
    bar.Value = 40
End Sub
 

Attachments

  • 453 bytes Views: 77

agraham

Expert
Licensed User
1) works fine for me for both ProgressBar and ScrollBar!

EDIT :- Damn - Erel got in first while I was typing :sign0137:
 

Attachments

willisgt

Active Member
Licensed User
Well, now I just feel plain silly...

My apologies, I just got back from a week in Minnesota and I think part of my brain must still be frozen. But thanks to all for pointing me in the right direction.


Gary

:signOops:
 
Top