Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: "Shadowing" qnx.* packages

You could always use the client QNX dialog library that has the same look and API as the native QNX dialog package.

 

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Community-Library-Released-for-cl...

 

 

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: "Shadowing" qnx.* packages

Renaun, thanks for digging into this!  I was able to duplicate it, sort of, on Windows and using the command line tools.

 

Basically including one extra option on my command line works:

 

amxmlc -external-library-path= -output MyTest.swf MyTest.as

With nothing immediately after the equals sign that overrides the air-config.xml entries for "external-library-path", resulting in both libs/air/airglobal.swc and libs/air/qnx-air.swc being statically linked (and thus, I infer from your blog post, able to be shadowed by local code in qnx/pps/PPSChannel.as).

 

The difference in our results is that with my setup, the font appears to be Times Roman instead of whatever you have.  I suppose your previous experiments with getting the BBAlpha Sans font on your host machine make the difference.

 

mockpps.png


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Regular Contributor
renaun
Posts: 86
Registered: ‎10-25-2010
My Device: Not Specified

Re: "Shadowing" qnx.* packages

Yeah I do have the BBAlpha Sans font installed on my machine so that would be the font difference. Kudos for figuring out the command line equalivent of the solution.

blog: http://renaun.com
twitter: @renaun
Please use plain text.
Developer
shawnblais
Posts: 439
Registered: ‎10-25-2010
My Device: Not Specified

Re: "Shadowing" qnx.* packages

Nice stuff! Thanks man,

 

Disagree though. The default components are pretty ugly, and QNX actively promotes skinning every other component, so why shouldn't we also skin dialogs?

 

 

Please use plain text.
New Contributor
kcolgan
Posts: 4
Registered: ‎02-09-2011
My Device: Playbook

Re: "Shadowing" qnx.* packages

Hi Renaun,

 

How do I also install BBAlpha Sans on my computer? I wasn't able to find it through Googling and the only other possibility seemed to be installing a different Blackberry SDK at something like 500Mb! Would there be any chance you could post it on here?

 

Cheers,

Kevin

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: "Shadowing" qnx.* packages

In this thread, you will see that I attached the font in one of my responses.

 

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/CheckBox-label-is-white-when-sele...

 

Unzip it and add the font to your system like any other font.

Good luck.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: "Shadowing" qnx.* packages

I wish I'd seen/remembered that before I downloaded the Plazmic CDK (which is 203MB) where I found it.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.