Hide App

Discussion in 'Questions (Windows Mobile)' started by Georg, Sep 8, 2009.

  1. Georg

    Georg Member Licensed User

    I have an App in fullscreen and wont to call Hardware1.ShowTodayScreen, and later activate the App again
    It works with this code on winmobile 5 and 6 but not on winmobile 6.1. Then when I activate the app again, the app closed. here is a test code. What is wrong.

    Code:
    Sub Globals
        
    'Declare the global variables here.
        ToDayScreen=0 
        
    End Sub

    Sub App_Start
        Form1.Show
     Hardware1.New1
        flib.New1(
    "form1",B4PObject(1))
        obj.New1(
    False)
        obj2.New1(
    False)
        obj2.FromControl(
    "form1")
    If cPPC Then
              
    'flib.MinimizeBox=True
            evtFormActivated.New1(obj2.Value,"Activated")
        
    End If
        flib.FullScreen(
    True)
    End Sub




    Sub ReturnTitle_Click
        obj.FromControl(
    "form1")
        obj.SetProperty(
    "MaximizeBox",True)
        obj.SetProperty(
    "ControlBox",True)
        obj.SetProperty(
    "FormBorderStyle","Sizable")
        obj.SetProperty(
    "WindowState","Normal")
    ToDayScreen=
    1 
    Hardware1.ShowTodayScreen
    End Sub


    Sub evtFormActivated_NewEvent

        
    If cPPC AND ToDayScreen=1 Then
    flib.FullScreen(
    True)
            
    Sip(False)
            ToDayScreen=
    0
        
    End If
    End Sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I'm not sure if it is relevant, but why do you need to catch the Activated event and why do you need to change these setting with the Door library?
    Did you try to just use flib.FullScreen2(true, true) ?
     
  3. Georg

    Georg Member Licensed User

    The problem is, when you use Fullscreen before you can't use ShowTodayScreen
    That is my problem.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I see the problem with ShowTodayScreen after FullScreen too.
    Searching for this led me to some related issues without a clear solution.
    I'm sorry but currently I don't see any good solution for this issue.
     
  5. Georg

    Georg Member Licensed User

    A command Fullscreen(false,false) that brings back the menu and the Title could be fine. Is that possible to create?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

  7. Georg

    Georg Member Licensed User

    it works with these code with the Door.dll perhaps it helps someone

    code:

    Sub Globals
    'Declare the global variables here.

    End Sub

    Sub App_Start
    Form1.Show
    Hardware1.New1
    flib.New1("form1",B4PObject(1))
    obj.New1(False)
    obj2.New1(False)
    obj2.FromControl("form1")
    flib.FullScreen2(True,True)
    End Sub

    Sub ReturnTitle_Click
    obj.FromControl("form1")
    obj.SetProperty("MaximizeBox",True)
    obj.SetProperty("ControlBox",True)
    obj.SetProperty("FormBorderStyle","Sizable")
    'obj.SetProperty("WindowState","Normal")
    Hardware1.ShowTodayScreen
    End Sub
     
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