02-02-2011 03:59 PM
you are awesome. thanks.
02-02-2011 04:05 PM - last edited on 02-02-2011 04:10 PM
I'd go about this a different way and add the labels to the selectionSkin instead of as children of the picker itself. Then, you could set the selectionSkin's mouseChildren property to false, if it isn't already (I'd imagine it is though), so that the skin parts themselves don't catch mouse events.
With the way you're doing it now, you could also try setting the labels' mouseEnabled property to false and any mouse events that would normally be caught by the labels would just pass through to the next object below that is mouseEnabled.
02-02-2011 04:10 PM
can you give an example of the code? i'm not sure how to go about that. thank you.
02-02-2011 04:33 PM - last edited on 02-02-2011 04:35 PM
label.mouseEnabled = false;
For the skinning method, there are many examples of skinning the components on the forum at this point, including this very thread that describes changing the button skin of the Picker class. The selection skin would be exactly the same, except you'd be changing selectionSkin instead of buttonSkin.
If necessary, the mouseChildren property works just like mouseEnabled.
someItem.mouseChildren = false;
04-26-2011 02:02 PM
hi. the solution provided in page 1 of this thread (the customPicker) was working for me for until SDK 1.0.1.
now i get an error message:
package
{
import qnx.ui.picker.Picker;
public class CustomPicker extends Picker
{
public function CustomPicker()
{
super();
}
override public function setButtonSkin(skin:Object):void
{
this.__backgroundButton.setSkin(skin);
}
}
}
05-09-2011 07:00 PM
this.setButtonSkin(skin);
to match the real API.
05-09-2011 07:31 PM
that was it! thanks very much.
05-09-2011 07:36 PM
i guess i spoke too soon. i'm building from flash pro and now it outputs without an error. but just tried it in the simulator. the custom font is no longer being used by the picker!
09-26-2011 04:47 PM
Add this to your custom cell renderer to get a custom font to embed properly in the picker:
this.label.embedFonts=true;
i've been trying to figure this out for months! it seems so easy now
...
02-21-2012 06:40 PM
it did seem easy. now I find that using:
this.label.embedFonts=true;
actually causes the picker text to turn to gibberish in many cases. only the numbers come through unscathed. so after a year of trying, my picker is still using a default font. this sucks! (i need programmer skills obviously)