View Single Post
  #3 (permalink)  
Old 05-08-2009, 04:05 PM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 13,119
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
If I use form.Line() to draw on a form will the parameters be fixed automatically or must I multiply them with screenX/screenY?
The parameters will be fixed automatically.
Quote:
I have a program that uses the ImageLib.Drawer and the Rectangle object to draw a few graphics. For this I calculate all coordinates relative to form.width and form.height. Are the coordinates for the rectangle object automatically fixed or not? I think they should not get fixed automatically for my program to work correctly.
The new ImageLib library will handle correctly the scaling and look the same on VGA and QVGA devices.
Quote:
What is with old libraries with custom controls. I think they won't fix anything automatically. Will they work with AutoScale if I just call them with all position and size parameters multiplied by scaleX and scaleY?
All official libraries except of Sprite properly support AutoScale mode.
In most cases it is not complicate to update existing libraries to support this mode. Agraham has already updated several of his libraries. I hope that eventually most of the libraries will support it properly.
Quote:
I think I have to try the WM Device Emulator to test my program with VGA.
This is not something that can be avoided. Luckily such emulators are available for free: Download details: Microsoft Device Emulator 3.0 you will also need to download the VGA device image.
__________________
Basic4android documentation
Reply With Quote