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.


Emulator on desktop


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2007, 05:26 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 101
Default Emulator on desktop

When I use the desktop the screen is smaller and all controls are covered on bottom and right side. The same program on the device is perfect. IS it my pc or what.
Reply With Quote
  #2 (permalink)  
Old 10-20-2007, 05:38 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I've discussed this with Erel before

Form size problem on PC?

But he hasn't done anything in version 5.5 to improve it. You can always resize the desktop form in the form designer - the device is always correct.
Reply With Quote
  #3 (permalink)  
Old 10-20-2007, 06:27 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Depending on your windows settings the form's size may be slightly incorrect (1-2 pixels).
You can set the form's size under Designer - Tools - Screen Size and increase it.
There are also small differences between the device controls and desktop controls.
Reply With Quote
  #4 (permalink)  
Old 10-20-2007, 07:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Sorry Erel but it is more than "slightly incorrect (1-2 pixels)"

With a nominal form size of 240 x 264 there are much larger inconsistences with reported and actual client area sizes.

Under Vista

Form1.Width reports 238 : Form1.Height returns 268
Actual Client area width is 229 : Actual Client area height is 266

So this is 11 pixels narrower and 2 pixel higher than nominal and the form properties reflect neither the nominal nor the actual sizes.

Under XP

Form1.Width reports 238 : Form1.Height returns 268
Actual Client area width is 237 : Actual Client area height is 275

So this is 1 pixels narrower and 7 pixels higher than nominal and the form properties also reflect neither the nominal nor the actual sizes.

XP & Vista

The actual Form Designer boundaries are 237 x 267 (excluding the red border) or 239 x 269 (including the red border)
Reply With Quote
  #5 (permalink)  
Old 10-20-2007, 07:33 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

I've measured 237 * 267 under XP.

I will further check it.
Reply With Quote
  #6 (permalink)  
Old 10-20-2007, 07:53 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Screen captures included showing the client area sizes as quoted above.
Attached Images
File Type: jpg XPform.jpg (5.1 KB, 25 views)
File Type: jpg VistaForm.jpg (5.6 KB, 21 views)
Reply With Quote
  #7 (permalink)  
Old 10-20-2007, 08:17 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I maybe a bit off in this, but the topic's name refer an emulator...
The sicussion is, as I understand it, about the fact that the designer screen is diferent in the device as in the desktop (correct me if I'm wrong)...

Yes, as im most cases the desktop behaves diferently than the device....

I've never had problems regarding placing the controls visualy in either platforms, but I came to realize that it is more secure to place them in code...

If you set the screen resolution to the same as in the device, you still get some diferences in the sizes in some controls like combobox and srollbars...

The problem is, although Basic4ppc is a "cross platform" ( as I call it ), it was primarely created to work in the device, withe the extra ability to code in the desktop....
Except for some special cases, I start by placing the controls in the device and then, when the coding begins to height on battery time, I turn to the desktop... This for me has been the best practice...

I also always keep in mind that, since the native control in Basic4ppc are double pixeled, they might show differently in diferent screen resolutions in the desktop, but still maintain their ratio....

So for me, yes this is an anoyance, but there are few, not that many, other things that complicate our coding than this litle thing...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #8 (permalink)  
Old 10-21-2007, 10:39 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

A query for Erel.

I uploaded the two screen captures above as PNGs to keep them pixel accurate but they have appeared as JPGs! Does the forum software do an automatic conversion?

I notice that the external dimensions of both captures are the same 245 x 302 but the client areas are different. I suppose that you are taking the nominal size of 240 x 264 and adding some allowance for the frame - although why an odd number for the width I cannot guess - and setting the form height and width. Why not use the ClientSize property of the form to size it correctly?
Attached Files
File Type: zip DesktopForms.zip (8.9 KB, 17 views)
Reply With Quote
  #9 (permalink)  
Old 10-21-2007, 02:34 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

In fact ClientSize is used on the desktop.
The problem is that MinimumSize and MaximumSize are also set to disallow resizing of the form (by the user).
Setting these values causes the frame size to affect the actual size.
Version 5.8 is soon to come and I will further check this issue.

I don't know about the forum JPG conversion but it sounds like a good idea in order to save some space.
Reply With Quote
  #10 (permalink)  
Old 10-21-2007, 05:41 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 101
Smile

I do most of my coding on the device. I do most of the design on the desktop so I can place controls corectly. Which doesn't look right on the desktop but good on the device. I do use the 239x268 size. The desktop is just a minor annoyance. I would rather see top,left,width and height on the device Then I would do it all on device. I am in no hurry to code as all my coding is just a challenge which I seem to be running out of now.
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
Registering the binaries for windows mobile 6 emulator Dinis Questions & Help Needed 2 08-31-2008 12:16 AM
Null modem emulator von WM5 schimanski Questions & Help Needed 5 04-03-2008 01:14 PM
MS Emulator glook Questions & Help Needed 6 12-10-2007 07:56 PM
Device emulator Cableguy Code Samples & Tips 1 06-25-2007 04:36 AM
Emulator leo Code Samples & Tips 4 05-21-2007 07:17 PM


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


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