![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Beta Versions This forum is the place to discuss issues regarding Basic4ppc beta versions. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I'm a bit confused about the AutoScale compile option. If I compile with AutoScale: If I use form.Line() to draw on a form will the parameters be fixed automatically or must I multiply them with screenX/screenY? 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. 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? I think I have to try the WM Device Emulator to test my program with VGA. :-( Greetings, Markus |
|
||||
|
Quote:
Quote:
Quote:
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:
__________________
Basic4ppc reference list |
|
|||
|
Ok, I tested my program on the VGA Device Emulator and erverything looked as I expected. Everything got scaled correctly except for the Listview control from Filippo which is currently not updated for AutoScale.
I only had to multiply the coordinates for the Listview control with ScreenScaleX and ScreenScaleY and everything looks good on VGA and QVGA. There is only one thing: The graphics I do with Imagelib (mainly rectangles) look blurred in VGA. Is this normal? I will test it on a real VGA device next week to see how it looks there. Greetings, Markus |
|
||||
|
Yes. This is the effect I referred to "graphics quality is somewhat diminished" in my post above. It is because the QVGA sized bitmap you are drawing is being stretched to fit VGA resolution. In the AutoScale aware version of ControlsExDevice there will be a NativeImage control that you can use in an AutoScaled application to get VGA graphics quality if this is important to you, but your code will need to do its' own Bitmap size and drawing parameter corrections to suit the device you are on.
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. |
|
|||
|
It seems that hardware.SIPHeight does not scale correctly in AutoScale applications.
I want to size a panel the same height as the area which is not overlapped by the SIP. I used the folllowing code to calculate the height (fMain is my form, pMain is my panel, hw is a hardware object): Code:
If hw.SIPEnabled Then FormHeight = fMain.Height - hw.SIPHeight Else FormHeight = fMain.Height End If pMain.Height=FormHeight pMain.Width=fMain.Width I have to use Code:
FormHeight = fMain.Height - (hw.SIPHeight / screenScaleY) Greetings, Markus @agraham: Is the AutoScale aware library of ControlsExDevice available somewhere? |
|
||||
|
Hardware.SIPHeight will be fixed. Thanks.
__________________
Basic4ppc reference list |
|
||||
|
I have some trouble with AutoScale with the RectangleEx objects from the ImageLibEx library with the Width and Height parameters, their values become smaller than expected.
I think this will be fixed in the final version. But nevertheless I submit the problem. Attached 2 programs, one showing the problem one without but with in code scaling. Best regards.
__________________
Klaus Switzerland |
|
||||
|
It's nothing to do with RectangleEx, it's a Form refresh problem. If in GraphicsAS you remove any references to ScreenScaleX/Y from lines 29 and 30 and change line 57 to "Form1.Refresh" then it will behave as you expect and the code will look identical to an unchanged QVGA app. That's the whole idea of autoScale.
If you were using ImageLib then ImageLib.Refresh would work because ImageLib.Refresh is Autoscale aware and so knows to refresh a larger area of a Form when AutoScaled on a VGA device. The downside to AutoScale is in displaying graphics as they are zoomed from QVGA to VGA size and lose crispness as a result. I aim to get the best of both worlds with two new graphics controls in the next version of ControslExDevice. Attached is a help file extracted from that for the next version of ControlsExDevice describing how AutoScale works, its' limitations and the two new graphics controls. I don't at the moment intend to make ImageLibEx AutoScale aware intending it to be used with the two new controls in full VGA applications or semi-AutoScale aware applications that take advantage of AutoScale for control layout but are resolution aware to obtain the highest graphics quality. Such applications will need to work in native graphics resolution so will be capable of using VGA co-ordinates when necessary rather than having some of the co-ordinates altered automatically so possibly causing confusion.
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. Last edited by agraham : 05-22-2009 at 04:58 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AutoScale compilation mode and external libraries | Erel | Beta Versions | 22 | 05-25-2009 11:13 AM |
| Agrahams Chart Librarie Autoscale | Paulsche | Beta Versions | 3 | 05-06-2009 07:10 PM |
| Two Questions | ceaser | Questions & Help Needed | 2 | 12-21-2008 01:58 PM |
| Some questions | newbie | Questions & Help Needed | 9 | 12-18-2008 07:41 PM |
| More SQL questions | HARRY | Questions & Help Needed | 2 | 01-04-2008 11:15 AM |