fullscreen problem

Discussion in 'Questions (Windows Mobile)' started by cpc6128, Feb 27, 2008.

  1. cpc6128

    cpc6128 Member Licensed User

    The attached code runs fine in the IDE on my PC but not (when compiled) on my PPC (xda orbit2).
    The code is supposed to put the form into fullscreen mode, then fill the form with blocks and finally copy the contents of the form to the game window.
    The problem seems to be the line


    as the compiled program will run without it.
    Has anybody else had this problem or could suggest a solution?
    If I were able to draw directly to a game window I could do without that line but this does not seem to be possible.

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Currently DrawBackgroundImage releases the bitmap memory after drawing it.
    It will be fixed in a future release.
    Anyway you should use a Bitmap object with a Drawer object as it will work much faster (drawing off-screen).
    See the attached code.

    Attached Files:

  3. cpc6128

    cpc6128 Member Licensed User

    Fantastic, thank you!
    That works excellently & is indeed much faster!
  4. kaninjo

    kaninjo New Member


    Need some help :) ... I wrote a simple Welcome screen for my friends PNA, but I have a little problem with the fullscreen mode. It doesnot fills the screen. Tried, to set the screen size in the Form1 to 320x240, and 320x234 too (manufacturer says, this is the native resolution), but nothing... The bottom of the screen is not "filled" with the window.
    Taskbar is disabled in Win.
    What is missing, or what is wrong? The code:
    Sub Globals
    'Declare the global variables here.

    End Sub

    Sub App_Start
    'On the device it will remove the title bar too

    End Sub

    Sub ImageButton1_Click

    End Sub

    Sub ImageButton2_Click
    End Sub
    Thanks, and Best Regards

    Attached Files:

    • PNA1.jpg
      File size:
      60.8 KB
  5. klaus

    klaus Expert Licensed User

    Hi kaninjo,

    Try this code:

    This will remove both the title line and the menu line.

    Best regards
    Last edited: Mar 5, 2008
  6. kaninjo

    kaninjo New Member


    Tried the code. The bottom of the screen is still not filled at any resolution... :(

    P.S.: If I start the program from the explorer window, the scroll bar (of the expl. window) on the bottom is visible, but can't be actuated.
  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