formlib.fullscreen(false)..?

Discussion in 'Questions (Windows Mobile)' started by TWELVE, Jun 17, 2008.

  1. TWELVE

    TWELVE Active Member Licensed User

    Hello all together,

    is it possible to reverse the formlib.fullscreen(true) with an formlib.fullscreen(false) ?

    It does not appear to work on the device and my forum search did not clarify this.

    If the fullscreen(true) cannot be reversed,

    - why is this so..?

    - can this be implemented yet or are there restrictions by the OS..?

    - are there workarounds to enable the user to switch between fullscreen and normal window mode..?


    cheers

    TWELVE
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The boolean argument in FullScreen determines if the title bar should be removed or not.
    You can use the following code to return the title bar and menu bar:
    Code:
    'obj and obj2 are Objects (from the door library)
    Sub Globals
        
    'Declare the global variables here.

    End Sub

    Sub App_Start
        Form1.Show
        flb.New1(
    "form1",B4PObject(1))
        obj.New1(
    false)
        obj2.New1(
    false)
        obj2.FromControl(
    "form1")
        obj2.Value = obj2.GetProperty(
    "Menu")

        flb.FullScreen(
    true)
    End Sub

    Sub ReturnTitle
        obj.FromControl(
    "form1")
        obj.SetProperty(
    "MaximizeBox",true)
        obj.SetProperty(
    "ControlBox",true)
        obj.SetProperty(
    "FormBorderStyle","Sizable")
        obj.SetProperty(
    "WindowState","Normal")
    End Sub

    Sub ReturnMenu
        obj.FromControl(
    "form1")
        obj.SetProperty2(
    "Menu",obj2.Value)
    End Sub
     
  3. TWELVE

    TWELVE Active Member Licensed User

    Hi Erel,

    thx for your reply.I do not necessarily like to add one more lib just for this small task.That's one of the biggest disadvantages of B4P.You definitely need to add more of these external lib functions into the B4P core.I already have lost oversight what functionality is covered by what library and the often similar naming of the libraries doesn't make that task any easier.

    Very often B4P programming isn't that logical i would expect as a programmer.FullScreen(false) is an excellent example for that.I've got some serious difficulties to understand the logic behind, especially when reading the poor documentation or some source code.That's kind of frustating.For Windows apps, i'm using PureBasic and this is a complete different world.
    Everything is strict logical and i do not have any issues in understanding command, instructions or parameters.Regardless of this my PPC app has grown to 4500 lines source code over time, since i wrote my first post here in this forum.But even with that it did not reach the functionality of my purebasic Windows App, which has "only" 4500 lines of source code.
    cheers

    TWELVE
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Thank you for your feedback.
    FormLib.FullScreen description was updated.

    Since version 6.30 libraries are merged in the executable during compilation.
    The cost of adding the door library to your project is minimal (executable size will be increased by less than 4KB).
     
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