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 and getting screen size


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2007, 04:23 PM
Junior Member
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 29
Default FullScreen and getting screen size

When using FullScreen from FormLib.dll, how is it possible to determine the actual usable screen size? I would like to resize an Image control to the maximum available.

Perhaps I have misunderstood something? I thought that Form.Width and Form.Height would always give the screen dimensions, but they do not change after invoking FullScreen!

The menu and title bars are removed, as expected. I used MsgBox to check the
form dimensions before and after - they are always 240x188. However it is possible to display the Image control with a "forced" height of more than 188.

Geoff.
Reply With Quote
  #2 (permalink)  
Old 11-23-2007, 05:28 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,816
Default

If you remove both the title bar and the menu bar then the screen size should be 240x320.
There is no problem with setting the Image size to more than 188.
Reply With Quote
  #3 (permalink)  
Old 11-23-2007, 05:32 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 448
Default

Quote:
Originally Posted by Erel View Post
If you remove both the title bar and the menu bar then the screen size should be 240x320.
There is no problem with setting the Image size to more than 188.
Erel, I've just been playing with this to see if I could get it to work.
I thought that a simple Form refresh would do the trick but still my message box reports the same screen size as before making the screen fullsize.
Why does Form.Height not change?

Regards,
RandomCoder.
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #4 (permalink)  
Old 11-23-2007, 05:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,816
Default

It will be fixed in the next version.
Reply With Quote
  #5 (permalink)  
Old 11-23-2007, 05:50 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 448
Default

Thanks Erel, I thought that I must have been doing something wrong - it wouldn't have been the first time

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #6 (permalink)  
Old 11-23-2007, 06:48 PM
Junior Member
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 29
Default

Thanks for the responses.

I had also previously tried Form.Refresh, but no change. I know my test device is 240x240, but need to cater for different sizes.

I'll look forward to a future fix - it will be a while until the rest of my project is finished anyway! That is no reflection on B4ppc though - it's quick to code and I think it's a fantastic product

Geoff.
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
How to obatin screen size and o/s info? alfcen Questions & Help Needed 8 04-13-2008 03:25 AM
incorrect results on screen size 480x272 gs4322 Questions & Help Needed 5 01-15-2008 04:40 PM
screen size to form size relation Cableguy Basic4ppc Wishlist 2 08-14-2007 09:40 PM
screen size on desktop Cableguy Questions & Help Needed 3 07-02-2007 04:57 PM


All times are GMT. The time now is 02:32 AM.


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