Skip to main content

2 Small UI Lwuit on blackberry problems.. please help!

3 replies [Last post]
rapiz
Offline
Joined: 2009-03-16

Hello,

I'm almost done with my Blackberry project built using LWUIT 1.4.

I have 2 small issues:

1. The command menu has cyclic focus. and it's very sesitive for up/down scrolling, it's pretty hard to choose the last
command without jumping to the first one. how can i disable cyclic focus on command menu?

2. On all forms i've an about 2 px of white line at bottom screen. is this a feature? a bug? can i fix this somehow?

Thanks in adavance
Or

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

I don't really recall the exact methods in 1.4 by now.

1. You need to override showMenuDialog and there you can just set the list selection so it won't be cyclic.

2. I think this was resolved in 1.5. What you see is the softbutton area which is still there despite having no softbuttons. I think setting the SoftButton style to 0 padding/margin should resolve this issue.

rapiz
Offline
Joined: 2009-03-16

Thank you... the first problem now is solved..

The second problem... i override the "getSoftButtonStyle()" and changed the magin/padding to 0,
but only when i press the menu button (to pop up command menu) this margin/padding setting is refreshed and white line disappers.

I tried to apply the style before the paint in diffrent ways without luck. how can i do this?

vprise
Offline
Joined: 2003-11-07

You don't need to override getSoftbuttonStyle. Just after application initialization just call it and set the padding/margin to 0.