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.


Change Control positions and sizes after compile.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2007, 09:44 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default Change Control positions and sizes after compile.

Hi all,

I am writing a program that contains a lot of text boxes, combo boxes, etc. on the display. When compiled on the old v5.80 all was fine, but now when I compile it using v6.01 (Optimized), the compile process says that it is all okay, BUT, when I run it on my device (Dell Axim X51v) some of the text box sizes have changed and the entire screen contents is all over the top of each other in the top left hand corner of the screen.

If I compile in Standard mode, all is okay (apart from loosing the advantages of v6.01 / .Net 2.0). I suspect that it may have something to do with the Axim X51v having a VGA screen that .Net 2.0 doesn't handle or that requires an extra file.

I'm on a steep learning curve at the moment, so any help would be much appreciated.

Thanks,
Burd
Reply With Quote
  #2 (permalink)  
Old 12-31-2007, 08:06 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

Burd, I've sent you a private message a couple of days ago.
Please read it.

About this problem.
.Net 2.0 applications don't treat VGA screens like .Net 1.0 applications.
You should change the screen to 640 * 320 in the Visual Designer to emulate a VGA screen in .Net 2.0.
Reply With Quote
  #3 (permalink)  
Old 12-31-2007, 09:09 AM
Filippo's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 262
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello,
I have the same problem.

Setting the screen at 640x320 is no problem, but I have 17 forms in my application and all I need now controls change in the size of a position.

Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #4 (permalink)  
Old 01-01-2008, 06:37 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default Tried resizing screen but that revealled more problems

Erel,
I tried resizing the screen to accommodate the VGA fo .Net2. In some respects that helped (once I resized the controls and moved them, etc.), but I am unable to make it work as there seems to be a lack of correlation between the control sizes and the font size that is set for that control.

A good example is a Calendar box. Setting the font size to eg. 8, make the calendar date show okay, but when you drop down to reveal the month, etc., all the days are mingled in with each other as it appears to be a much larger font size. I am having similar problems with text boxes, buttons, etc.

In addition to this, the screen layout on the desktop appears very differently on the device. Therefore the only way that I could position a control correctly (both size and position) is to compile, load to device and check. This process I have done over and over and over, until I gave up.

Any suggestions?

Thanks,
Burd27
Reply With Quote
  #5 (permalink)  
Old 01-01-2008, 07:13 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

I suggest you to use the regular compiler instead of the optimized compiler to create the VGA application (use a regular 240 * 320 screen in the designer).
Reply With Quote
  #6 (permalink)  
Old 01-01-2008, 06:54 PM
Knows the basics
 
Join Date: May 2007
Posts: 87
Default

Hi,

same resolution problem, I posted it already, so I have to stay in NET1, also for the serial troubles I have to stay in NET1... ;-)

Put Claude Belgium

Last edited by Put Claude : 01-01-2008 at 06:57 PM. Reason: faulty writing
Reply With Quote
  #7 (permalink)  
Old 01-02-2008, 10:51 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default Further observations

Thanks Erel for your reply.

Yes I have settled that at least for the moment .Net 1 will have to suffice....
Although I was looking forward to making full use of the VGA display.

Further to my previous post, what I have noticed (using the Calendar example again) is that when setting the font size of the Calendar Control, it would automatically set the Height of the control (width is user variable) - all this as per normal. However, on the device, when you select the Calendar so that it drops down the box showing a month at a time, the font size for the box appears too big so all the day numbers are over the top of each other, etc. This I also mentioned in my previous post, but what I have realised since then is that it is NOT that the numbers (font) are too big, but rather that the drop down box is too small to fit the numbers.

Erel, whatever parameters you have set for the controls when automatically sizing the controls, it appears that when you make the change to the VGA screen size, only the font actually increases, but not the Control Size.

Is this a modifiable parameter of B4P or is it tied up in .Net2?

Cheers,

Burd27
Reply With Quote
  #8 (permalink)  
Old 01-03-2008, 06:11 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

Except of the Calendar control which is a custom control everything is done by the OS.
The Calendar is currently not applicable to VGA screens in optimized compilation.

As I wrote in another thread, you could use .Net 2.0 but not the optimized compilation.
You could see the Tetris example for a simple way of handling most controls with a VGA screen: Tetris-2008
Reply With Quote
  #9 (permalink)  
Old 03-03-2008, 08:44 AM
Standa's Avatar
Junior Member
 
Join Date: May 2007
Location: Czech Republic
Posts: 26
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I have the same problem with calendar right now. Is planned fixed calendar for VGA devices in future versions of B4PPC?
__________________
XDA Flame
Reply With Quote
  #10 (permalink)  
Old 03-03-2008, 03:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

The calendar control will support VGA devices in the next release.
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
can i change font ? gjoisa Questions & Help Needed 1 03-29-2008 10:58 AM
Font Change Stanl3yCZ Questions & Help Needed 2 01-27-2008 07:22 PM
Different screen sizes Gex Questions & Help Needed 4 01-23-2008 11:46 AM
Control.Visible problem in optimise compile agraham Bug Reports 1 01-14-2008 07:54 PM
Desktop: Forms with differnet sizes sloopa Questions & Help Needed 2 05-06-2007 05:41 PM


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