Dabs of paint wrong with HorizontalButtonFieldSet

I'm having some strange problems with HorizontalButtonFieldSet (from the examples of progress UI).

It works very well. I put in page not correct my buttons in the constructor of the screen, but on the display initial is the text of the labels. They have developed as «...» "even if I gave them a label.

Once I put the label back on one of the buttons they all page layout and display correctly.

For a hack to fix, I just put the tag in the OnVisibilityChange of the screen.

for example btReset.setLabel (btReset.getLabel ());

But this isn't the real solution. I know this has something to do with when the Manager was created by report to display. But other that the hack above, I was not able to understand.

I do not use hacks like this in apps. To do the right way.

Any ideas?

Thank you

Oh man, it was painful...

The final solution was to add a NullField() to the screen after the HorizontalButtonFieldSet.

Like how we are suppose to know that?

I also gave up trying to solve the problem of the buttons that explodes in 4.6 and 4.7 when the text too big (I mean not really too big but just bigger than what he loved. Other operating systems have been fine with it). I coded around it by detecting OS 4.6 and 4.7 only versions and by setting the police more small and condensed.

public static String osVersion = DeviceInfo.getSoftwareVersion ();

I guess it's just a phone.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for