Scrollbar on a Panel

Discussion in 'Questions (Windows Mobile)' started by willisgt, Mar 10, 2008.

  1. willisgt

    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:
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    A small example is attached.
    This is the code:
    Code:
    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
     

    Attached Files:

    • 1.sbp
      File size:
      453 bytes
      Views:
      28
  3. agraham

    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:
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    But your example is more comprehensive ;)
     
  5. agraham

    agraham Expert Licensed User

    This example shows how to change parent with FormLib for a control from a library.
     

    Attached Files:

  6. willisgt

    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:
     
Loading...