Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Form size problem on PC?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007, 06:09 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Form size problem on PC?

Apologies if this is a known issue but I have just joined.

I have an B4PPC application that displays perfectly on my Axim X30 but when I run the same source code on my PC the right hand side of the display is missing. On investigation a screen capture of the PC shows that the display area on the PC is only 229 pixels wide by 266 high

The PC Designer shows the form width property as 240 and the height property as 266 but it is obviously not displaying the full width on the PC.

Stranger still a screen capture of the Designer shows that it is allowing me to place controls visible within a 239 pixel wide by 269 pixel high area - confimed by placing a control at the bottom right and adding its' top and left properties to its' height and width.

Are these inconsistencies a known issue? I am running Vista Home Premium on the PC and 2003 SE on the Axim.
Reply With Quote
  #2 (permalink)  
Old 07-04-2007, 06:19 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

Can you post a screen shot?
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 06:47 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi Erel

Two screenshots attached in the zip file. Sould be obvious from the titles which is which.

EDIT : Stupid me - its' obvious from the picture content anyway
Attached Files
File Type: zip FrameSize.zip (60.2 KB, 25 views)

Last edited by agraham : 07-04-2007 at 07:03 PM.
Reply With Quote
  #4 (permalink)  
Old 07-04-2007, 07:02 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

Looks like your windows form settings include a small margin for the forms (maybe it is Vista default?).
A workaround will be to change the screen size parameter.
Reply With Quote
  #5 (permalink)  
Old 07-04-2007, 07:54 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I tried the same app. under XP Home on my laptop - screenshots enclosed.

Well its' different but...

The XP designer still has the same layout size of 239 x 269 as under Vista. Not surprising as it is in the top left of the form and doesn't fill it so can be drawn whatever size is needed. I can only assume that you are requesting to draw the area this size.

The XP running app has a drawing area of 237 (nearly there) x 276 (that's 10 extra!) pixels though both forms are drawn the same size (245 x 322) by both OS's. So I guess you are defining the external form size and accepting whatever client area comes with it without allowing for varying non-client area sizes
Attached Files
File Type: zip XPframeSize.zip (32.4 KB, 20 views)
Reply With Quote
  #6 (permalink)  
Old 07-04-2007, 08:12 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

The drawable area on a standard device matches 239*269 pixels.
As you see there are small differences depending on the user setup.
Reply With Quote
  #7 (permalink)  
Old 07-05-2007, 09:06 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Erel View Post
The drawable area on a standard device matches 239*269 pixels
Ok, I know I'm being pedantic but the actual drawing area on both the Visual Studio emulator and my Axim X30 is 240 x 268 pixels. Maybe they are both non-standard but at least they match!

I want the development environment on the PC to match what I will see on the device which, as per your suggestion above, I can achieve by setting different screen sizes.
Reply With Quote
  #8 (permalink)  
Old 07-05-2007, 09:14 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

I see your point and now I think we owe you one pixel
Reply With Quote
  #9 (permalink)  
Old 07-05-2007, 09:37 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Thanks for taking it graciously Erel.

You are unfortunate that, many years ago, I used to lead a software team developing an Operating System and applications for early PDAs and getting things positioned consistently on screen between applications and OS utilities was important to get the right "feel" of the device. After all these years I am still sensitive to such things!
Reply With Quote
  #10 (permalink)  
Old 07-05-2007, 10:27 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Thumbs up

A quick follow up comment to wrap up the thread.

To get a runtime view on the PC of 240 x 320 I need to set the screen size in the PC Designer to 243 x 313 on XP and 251 x 322 on Vista. The Designer on the device is fine of course as that is running on the target.

Changing the screen size in the PC Designer is only a workaround and not a fix as this changes the form size in the Designer. Although the runtime size is now correct on the PC, and will match the device, those runtime views (and Design time view on the device) doesn't quite match that in the PC Designer. The width in Vista and the height in XP are quite a lot off.

Although I bought B4PPC to actually develop on the device I actually intend to do the layout and initial coding on the PC and refine on the device so matching the Designer view to the device is quite important (to me anyway )

Please don't these comments as criticism. I like B4PPC and it lets me work on the device and in a .NET sort of way that looks something like Visual Studio. I've found nothing else to match it. In some ways it is better than VS for small jobs being quick and easy to use. I think that it has potential for further improvements (but still has some rough edges!)
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
Problem With Form Size RandomCoder Questions & Help Needed 15 09-05-2008 03:03 PM
Newbie: Form Size 264h enonod Questions & Help Needed 7 04-28-2008 12:14 PM
Changing the size of a form magi6162 Questions & Help Needed 1 10-24-2007 08:38 AM
screen size to form size relation Cableguy Basic4ppc Wishlist 2 08-14-2007 10:40 PM
Menu changes Form Size BPak Questions & Help Needed 2 05-06-2007 06:56 AM


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


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