W willisgt Active Member Licensed User Mar 10, 2008 #1 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:
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 B4X founder Staff member Licensed User Longtime User Mar 10, 2008 #2 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 1.sbp 453 bytes · Views: 261
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
agraham Expert Licensed User Longtime User Mar 10, 2008 #3 1) works fine for me for both ProgressBar and ScrollBar! EDIT :- Damn - Erel got in first while I was typing :sign0137: Attachments PanelTest.ZIP 8.3 KB · Views: 265
1) works fine for me for both ProgressBar and ScrollBar! EDIT :- Damn - Erel got in first while I was typing :sign0137:
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2008 #4 But your example is more comprehensive
agraham Expert Licensed User Longtime User Mar 10, 2008 #5 This example shows how to change parent with FormLib for a control from a library. Attachments PanelTest2.zip 12.1 KB · Views: 238
W willisgt Active Member Licensed User Mar 10, 2008 #6 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:
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: