Help - Search - Members - Calendar
Full Version: Development For Sl-c1000
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > OpenZaurus/Opie/Qtopia
besta
Hallo,

i'm using a toolchain for years for development for the zaurus SL-5500G on Linux. No problems. Now i would like to develop for my new SL_C1000. How can I use the new screen resolution of 480x640 px and the landscape format. Do I need new libs or can I change parameters?

Bernd
Meanie
QUOTE(besta @ Jan 15 2007, 04:04 PM)
Hallo,

i'm using a toolchain for years for development for the zaurus SL-5500G on Linux. No problems. Now i would like to develop for my new SL_C1000. How can I use the new screen resolution of 480x640 px and the landscape format. Do I need new libs or can I change parameters?

Bernd
*


it should be exactly the same. you should not be hardcoding the height and width normally. usually a getWidth() and getHeight() should give you the correct screen size and you write your code in such a way that it doesn't matter what size the screen is and the widgets are rendered dynamically according to the actual size of the screen at run time.

This said, there are exceptions of course. When coding dialogs, the default dialog often is larger than the Z's screen so you will need to resize the dialog box when running on the Z. This usually should be done in such a way that code checks the default width and height and if it is a PDA sized screen, then resize the dialog to make it fit on the screen, otherwise leave it alone. this way, your app can be compiled on any platform with any size screen, or when you export your display to a X server with a higher resolution and bigger monitor, then the same code can handle it without needing a rewrite.
besta
QUOTE(Meanie @ Jan 15 2007, 07:19 AM)
[
it should be exactly the same. you should not be hardcoding the height and width normally. usually a getWidth() and getHeight() should give you the correct screen size and you write your code in such a way that it doesn't matter what size the screen is and the widgets are rendered dynamically according to the actual size of the screen at run time.

*


It seems not to be so easy. I've never hardcoded the screen size in my application, nevertheless the screen is rotated by 90 when I invoke the program on the SL-C1000. It is not adjusted dynamically to the newer screen parameters instead it is shown in landscape mode. I think the new parameters must be explicitly set by hand, is this right? But where? What is the class where to set this values?

Bernd
Meanie
QUOTE(besta @ Jan 15 2007, 09:24 PM)
QUOTE(Meanie @ Jan 15 2007, 07:19 AM)
[
it should be exactly the same. you should not be hardcoding the height and width normally. usually a getWidth() and getHeight() should give you the correct screen size and you write your code in such a way that it doesn't matter what size the screen is and the widgets are rendered dynamically according to the actual size of the screen at run time.

*


It seems not to be so easy. I've never hardcoded the screen size in my application, nevertheless the screen is rotated by 90 when I invoke the program on the SL-C1000. It is not adjusted dynamically to the newer screen parameters instead it is shown in landscape mode. I think the new parameters must be explicitly set by hand, is this right? But where? What is the class where to set this values?

Bernd
*



If you are using OPIE, which I personally think is a waste of time, then all you need to do is in your .desktop file is, add Display = 640x480/144dpi,480x640/144dpi
ofels
QUOTE(Meanie @ Jan 16 2007, 12:34 AM)
If you are using OPIE, which I personally think is a waste of time ...


It would have been sufficient to just answer the question instead of freeing your beast of bashing dry.gif blink.gif

Oliver
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.