Skip to main content

horizontal scroll bar in LCDUI..?

2 replies [Last post]
cutenik73
Offline
Joined: 2008-12-18
Points: 0

is it possible to have horizontal scroll bar in LCDUI...how can we do that if possible...

Regards

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sfitzjava
Offline
Joined: 2003-06-15
Points: 0

Yes, just look at LWUIT look and feel there is API call for this. There is more information on how to implement in the Developers guide for Lwuit, as well as in the tutorials and examples.

However if you don't want use LWUIT, or have special components that might not work in LWUIT, you can always roll your own. While in theory it's simple to do but you can bet there will be some type of porting issue to support a wide range of devices.

The basic design is that you paint your components to a buffer, and then paint the buffer to the actual screen based on x/y and the width/height of the device screen using the translate(x,y) method on graphics.

There are examples of this on the web, and how to do it for your specific needs is something you will have to research and determine. If you are not a hardcore JavaME developer and do a lot of your own components and effects writing the LWUIT is most likely your best bet.

-Shawn

cutenik73
Offline
Joined: 2008-12-18
Points: 0

but i want it in [b]LCDUI[/b] not in LWUIT..?

Regards