Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

fullscreen problem

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2008, 11:39 AM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Default fullscreen problem

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

gwGame.DrawBackgroundImage2(formGame.Image)

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 Images
File Type: gif wall.gif (856 Bytes, 158 views)
Attached Files
File Type: sbp test.sbp (1.6 KB, 16 views)
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 02:47 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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
File Type: sbp sprite.sbp (1.9 KB, 22 views)
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 04:09 PM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Default

Fantastic, thank you!
That works excellently & is indeed much faster!
Reply With Quote
  #4 (permalink)  
Old 03-04-2008, 10:09 AM
Newbie
 
Join Date: Mar 2008
Posts: 2
Default

Hello!

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:
Code:
Sub Globals
    
'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    flb.New1(
"Form1",B4PObject(1))
      flb.FullScreen(CPPC) 
'On the device it will remove the title bar too

End Sub


Sub ImageButton1_Click
Shell(
"\sdmmc\navngo.exe","")

End Sub

Sub ImageButton2_Click
Shell(
"\MyStorage\CC\player.exe","")
End Sub
Thanks, and Best Regards
Kaninjo
Attached Images
File Type: jpg PNA1.jpg (60.8 KB, 32 views)
Reply With Quote
  #5 (permalink)  
Old 03-04-2008, 01:00 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi kaninjo,

Try this code:
flb.FullScreen2(CPPC,true)

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

Best regards
Klaus
Switzerland

Last edited by klaus : 03-05-2008 at 08:42 PM.
Reply With Quote
  #6 (permalink)  
Old 03-05-2008, 01:52 PM
Newbie
 
Join Date: Mar 2008
Posts: 2
Default

Hi!

Klaus!
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem mit Fullscreen Iceman72 German Forum 4 08-07-2008 11:51 AM
Form Image in FullScreen orhan Questions (Windows Mobile) 4 05-09-2008 10:56 AM
Fullscreen,MinimizeBox,ShowToDayScreen Bobbes German Forum 1 04-03-2008 12:54 PM
fullscreen(false) problems kolbe Questions (Windows Mobile) 1 03-22-2008 01:39 AM
Form.Height in Fullscreen berndgoedecke Questions (Windows Mobile) 2 01-24-2008 07:10 PM


All times are GMT. The time now is 08:49 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0