Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed 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, 118 views)
Attached Files
File Type: sbp test.sbp (1.6 KB, 12 views)
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 02:47 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
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, 15 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, 23 views)
File Type: jpg PNA2.jpg (54.5 KB, 20 views)
Reply With Quote
  #5 (permalink)  
Old 03-04-2008, 01:00 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 532
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
formlib.fullscreen(false)..? TWELVE Questions & Help Needed 3 06-19-2008 09:11 AM
Fullscreen,MinimizeBox,ShowToDayScreen Bobbes German Forum 1 04-03-2008 12:54 PM
fullscreen(false) problems kolbe Questions & Help Needed 1 03-22-2008 01:39 AM
Form.Height in Fullscreen berndgoedecke Questions & Help Needed 2 01-24-2008 07:10 PM
FullScreen and getting screen size glook Questions & Help Needed 5 11-23-2007 06:48 PM


All times are GMT. The time now is 04:56 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0