Skip to main content

Form Menu Dialog in LWUIT BB 1.5

1 reply [Last post]
gmx
Offline
Joined: 2010-05-01
Points: 0

the menu dialog in BB will appear to large in previous version we edit theprotected Command showMenuDialog(Dialog arg0) but in 1.5 this function will affect nothing

how to minimize the width and height in the menu dialog of a form in Lwuit 1.5

Thank you

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
Points: 0

LWUIT 1.5 completely chanaged the behavior of dialogs to make their styling allot more powerful. This means that previous dialog hacks to calculate preferred size need to be modified slightly e.g. instead of using the content pane for the size you need to use getDialogComponent().

We have a temporary hack that will be removed for 1.6 called dialogTitleCompatibilityMode which will allow you to use something that resembles the old dialog behavior. However, this will break styling in the new themes which rely on 1.5 style dialogs.

http://lwuit.blogspot.com/2010/10/tips-about-compatibility-issues-with-m...