Menu disappears in FormLib

Discussion in 'Questions (Windows Mobile)' started by BPak, May 7, 2007.

  1. BPak

    BPak Active Member Licensed User

    Code:
    Sub App_Start
       Form1.Show
       fbl.New1(
    "Form1",B4PObject(1))
    '   fbl.FullScreen(False)   
    End Sub
    When I use the fbl.FullScreen(False) the Menu that was with Form1 (created in the Designer) disappears from the screen.

    Is this intended? Is there a work-around?
     

    Attached Files:

  2. Cableguy

    Cableguy Expert Licensed User

    Hi,

    I had a similar problem and it turns out that fbl.FullScreen(False) does not work, once you've gone in fullscreen mode, there's no turning back, to that especific form that is....
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    The FullScreen syntax is:
    FullScreen (RemoveTitle As Boolean)
    If RemoveTitle is true then both the menu and the title will disappear.
    If it is false then only the menu will disappear.
    What are you trying to achieve?
     
  4. BPak

    BPak Active Member Licensed User

    I have seen different mobiles and they seem to have different screen sizes so I was thinking that using the FullScreen(False) function would adjust the app to the mobile size so as to have full size screen on the PDA for my apps??
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    The form's size is always the same size as the size of the device screen.
    The FullScreen option should only be used if you want to remove the menu bar and the title bar.

    You can use Form.Width / Form.Width to get the size of the form and adjust your controls to fit.
     
  6. BPak

    BPak Active Member Licensed User

    Thanks for the solution.
     
  7. lost2

    lost2 Member

    Hi all,

    I am trying to full screen Form1 (main form) and Form2 (options form).
    I can full screen Form1 using:

    Sub App_Start
    AddObject("flb","Formlib")
    flb.New1("Form1",B4PObject(1))
    flb.FullScreen(cPPC)
    Form1.show
    End Sub

    but how do I get Form2 in full screen ?
    When I click some button to go to Form2 it appears in normal mode (not full screen) on top of Form1. As Form2 is smaller I can see both forms.

    Any help ?

    Thank you.
    MC
     
  8. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Lost2,
    I've tried and tested this and it worked for me...

    Code:
    Sub App_Start
    AddObject(
    "flb","Formlib")
    flb.New1(
    "Form1",B4PObject(1))
    flb.FullScreen(cPPC)
    flb.New1(
    "Form2",B4PObject(1))
    flb.FullScreen(cPPC)
    Form1.show
    End Sub
    Attached is a test file if you want to give it a go.

    Regards,
    RandomCoder
     

    Attached Files:

  9. lost2

    lost2 Member

    hey ... tanks a lot. It's working now!
    It's a simple digital clock with big digits and big buttons where we can use our fingers ;-)
    MC
     
Loading...