Newbie: Form Size 264h

Discussion in 'Questions (Windows Mobile)' started by enonod, Apr 27, 2008.

  1. enonod

    enonod Well-Known Member Licensed User

    I understand why 264 height is shown for the form, but because it is possible to turn off the status bar etc. and thus utilise the space, how do I recover that space?
    It seems that setting the screen size automatically deducts the area in question.
    I have searched but could not find a solution.
    Thank you
     
  2. specci48

    specci48 Well-Known Member Licensed User

    Hello enonod,

    you can use the FullScreen method provided by the FormLib:

    Code:
    Sub App_Start
          Form1.show
          flb.New1(
    "Form1",B4PObject(1))
          flb.FullScreen(
    True)
    End Sub

    specci48
     
  3. enonod

    enonod Well-Known Member Licensed User

    Thank you specci48, I have much to learn
     
  4. enonod

    enonod Well-Known Member Licensed User

    Sorry, (if you can catch this post) I tried the following in app start sub but the image jumps to the top left of desktop screen, without this it used to be at screen centre.
    Can you help please?
    Form1.Show
    flb.New1("Form1",B4PObject(1))
    flb.FullScreen(True)
    gw.New1("Form1",0,0,Form1.Width,form1.Height)
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You should not remove the title bar on the desktop.
    Usually FullScreen is called like this:
    Code:
    flb.FullScreen(cPPC)
    That way it only removes the title bar on the device.
    On the desktop you can change the screen size under designer - Tools - Screen Size.
     
  6. enonod

    enonod Well-Known Member Licensed User

    Thank you Erel. I am struggling a bit to convert my mind from Delphi to this syntax.
    In this instance I am having trouble understanding how I would discover cPPC and know to use that instead of True.
    Would reading up on Visual Basic assist me in any way with this conversion I am going through?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    cPPC returns True when running on a device and False when running on the desktop.
     
  8. enonod

    enonod Well-Known Member Licensed User

    Thank you.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice