What theme to use?

I'm almost finished my app, realized in a mixture of mxml and as3 (if this is irrelevant), and I would like to know what theme to use? We choose according to what we want, or need to stick to the default spark theme? According to me, he said somewhere that import qnx will give him a BlackBerry-esque user interface, but so far, it remains looking like the plain old theme spark. I'm doing something wrong?

Hey lexrussian,

Here is an example usage of the LabelButton:

package
{

    import flash.display.Sprite;

    import qnx.ui.buttons.LabelButton;
    import qnx.ui.skins.buttons.RoundedButtonSkinWhite;

    // The following metadata specifies the size and properties of the canvas that
    // this application should occupy on the BlackBerry PlayBook screen.
    [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
    public class LabelButtonTest extends Sprite
    {

        public function LabelButtonTest()
        {

            var newbtn:LabelButton = new LabelButton();

            newbtn.label = "A New Button";
            newbtn.setPosition(0,300);
            newbtn.setSkin(RoundedButtonSkinWhite);

            addChild(newbtn);

        }

    }
}

the default skin for any button is

qnx.ui.skins.buttons.RoundedButtonSkinWhite;

but you can change it to another skin

qnx.ui.skins.buttons.RoundedButtonSkinBlack;

so if you went this route, your code would look like this:

package
{

    import flash.display.Sprite;

    import qnx.ui.buttons.LabelButton;
    import qnx.ui.skins.buttons.RoundedButtonSkinBlack;

    // The following metadata specifies the size and properties of the canvas that
    // this application should occupy on the BlackBerry PlayBook screen.
    [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
    public class LabelButtonTest extends Sprite
    {

        public function LabelButtonTest()
        {

            var newbtn:LabelButton = new LabelButton();

            newbtn.label = "A New Button";
            newbtn.setPosition(0,300);
            newbtn.setSkin(RoundedButtonSkinBlack);

            addChild(newbtn);

        }

    }
}

and the result would be a black gradient button.

You can learn more about the skin here:

http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/UI/skins/package-detail.html

and particularly affects the skin here:

http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/UI/skins/buttons/package-detail.html

Good luck!

@jtegen: he doesn't sweat man. you have been more useful through the forums, and is very much appreciated. everyone makes mistakes!

Tags: BlackBerry Developers

Similar Questions

  • Can take us what theme is used with our identity?

    I think I have the third theme I created associated with my id (shown in the square), and I would really like to change to something more interesting.

    Hello, I guess my answer you lost.
    Currently, the avatar is your first theme RGB - no particular reason, it's just what we did for 1.0. We understand that people want to choose their own, and it's on the wish list.
    Saami

  • Don't know what complete theme to use

    I have upgraded to windows 8 and now the 23 FF. What is a beta? I can't find any complete theme to use. Noia 4 always comes in red. The theme don't blush my toolbar? one that works will not work for 23 FF.

    So, is the new theme of work or is it still a problem?

  • What can I use on a dating site photo galleries and if yes can I use photos with people in them.

    What can I use on a dating site photo galleries and if yes can I use photos with people in them.

    It would be contrary to terms of use photos with people in them on a dating site.

  • What is the use of the keyboard of phone numbering alphabet

    What is the use of the keyboard of phone numbering alphabet

    I could be misunderstanding your question, but if you mean the letters below the numbers on the keyboard of the phone (for example the ' ABC' below the 2), use only one of them is for companies of advertising with easier to remember numbers. For example, Apple Announces the number (800) MY-APPLE which is composed as (800) 692-7753 words are easier to remember and the numbers on the keyboard allow to translate the letters to numbers that you dial.

  • I need to access sites that require adobe flash player on the iPad.  What can I use to allow me to access?

    I need to access sites that require adobe flash player on the iPad.  I can access these sites on my imac with adobe flash player then why not on my ipad.

    What can I use to allow me access to these sites, which are for educational purposes for my grandson to allow him to do his homework?

    While you can get Adobe Flash on the iMac, you can't be on the iPad. There are some browsers in the App Store that will emulate flash, I think that one of them is atomic, or something like that. Do a search on the App Store and you should find something.

  • What should I use for a replacement of WinMail in Windows.

    What should I use for a replacement from WinMail in Windows 7 when requires it a number of sites to meet an address or a link that the site offers an answer or a question.  I have msn, yahoo & gmail but lost WinMail when I've upgraded from Vista to Windows7.
    I lost WinMail thur a mistake some time & it was a nighmare tring to meet links on sites that requires to open a format Outlook, Outlook Express or WinMail.

    I have msn (hotmail), yaho & gmail, but none of them will come when I'm trying to respond to the link sites for a response. If one of those that should be used, how it equal in Windows7?

    Windows Update has nothing to do with the upgrade of Windows.

    Unlike Windows XP & Vista, Win7 does not have a default email Client. [What were thinking?]

    You will need to install a (e.g. MS Outlook;) Windows Live Mail; Oiseau-tonnerre) , and then set it as a default for mail in CUSTOM (<>) Set Program Access and defaults of the computer before any function article send to or MailTo will become available.

    You will find support for Win7 e-mail Clients in this forum: http://social.answers.microsoft.com/Forums/en-US/w7network/threads

    Support for Windows Live Mail (which will be able to import your data from Windows Mail Backup), you will find in this public newsgroup:
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Windows.live.mail.desktop

    Through your News Reader:
    News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Can what program I use to open the files PLX?

    Original title: PLX files

    Can what program I use to open the file in a readable format PLX?

    Hi Truman,

    I understand that you want to open the PLX files.

    Executable program written in Perl programming language; often used for Web applications that are running on a Web server. You can open them using the following application.

    Microsoft IIS with PerlIS.

    I hope this helps.

  • I can't move the icons on my desktop by dragging them (I use to be able to) how correct them where I can move them again (I can't delete is)?

    I can't move the icons on my desktop by dragging them (I use to be able to) how correct them where I can move them again (I can't delete them either?)

    Hello

    Thanks for posting this question in the Microsoft Community.

    If I understand correctly, you are not able to drag icons on the desktop. I'll certainly try and help you in the matter of fixing.

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:

    1. Since when are you facing the issue?

    2. you have any security program installed on the computer?

    3. what happens when you try to remove the icons?

    4. do you get an error message?

    5. are you aware of any changes made to the computer before the show?

    Run a full scan using the Microsoft Safety Scanner and check for infections.

    Note: there is a risk of data loss if all the files are infected and which can be removed in the cleaning process.

    If the problem persists, start the computer in safe mode and perform a clean boot. Clean boot helps eliminate software conflicts.

    Note: when you are finished troubleshooting, follow step 3, mentioned in the article to start the computer to a normal startup.

    Hope this helps and let us know if you need more assistance. We will be happy to help.

  • I have the home Prenium and can't access the themes or use photos etc on desktop.

    I have Home Premium and can't access the themes or use photos etc on the desktop. All I have is a black screen. Also, I can't save screensavers, including by default. What is going on?

    Lisa

    Black screen after that Cruiser connection still works
    http://social.technet.Microsoft.com/forums/en-us/w7itproperf/thread/d47aece7-5e12-46EC-8d3e-e8671730a7ce

    If still no joy try this thread.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/Desktop-stuck-on-solid-colours-win-7-Pro/8e034d73-fbaf-45CD-a8eb-d8329e7f47e4

    If you have AVG see this.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/no-longer-see-thumbnails-for-applications-on-the/2b0a71ac-E75A-44a2-9198-2ac803644540

  • What is the use of the codec pack?

    What is the use of the codec pack? What happens if I install a codec pack xp my operating system to windows 7

    Codec packs allow a player to media/OS read audio/video files in the case, he could not play.

    I'm not using this as a recommendation, but take a look at https://en.wikipedia.org/wiki/K-Lite_Codec_Pack for the info and https://en.wikipedia.org/wiki/Codec

    Rather than installing a codec pack, if WMP will not play a file, try a different media player (free) like VLC or GOM.

    If you download and install one of these players, don't let them take over your files that don't let them become the media player by default, until you are happy that they do what you want.

    Some more info here - http://windows.microsoft.com/en-US/windows7/Codecs-frequently-asked-questions

  • which means F - 1 to F - 12 what each are used for?

    What you use the F-1 to F - 12 on a computer

    Many of them are useful as shortcuts to Windows functions - see keyboard shortcuts

    Box to the PC also defined the use of several of these key - see your manual or PC support site.

    Individual applications can also be used and should have explanations in their support systems.

  • What do you use to track the specific type of mobile devices open your emails?

    Mobile email is on the rise. What do you use to track the specific type of mobile devices open your emails?

    We started to use the Sunflower (Email Analytics - sunflower) this month and have been very happy with it. They not only do report on e-mail clients, you will tell people how committed are with your email address (for example did they spend time reading it or just delete it right now?). They also allow you to track individually, which means you can identify iPhone or Android users and send them a targeted campaign.

  • What metrics to use for memory capacity planning? Active or consumed (in request or use vROPS)

    Hey all,.

    I was wondering once more what metrics to use for memory capacity planning. Since the information from different sources (for example your ESXi host needs more RAM to Iwan Rahabok or VMworld 2012: Session VSP1729 - virtualized memory understanding performance management - Eric Sloof - NTPRO.NL Kit Colbert) pointing all assets (vROPS request), I expect that when we have high memory consumption / use in vCenter there will be no balloon / compression / permutation.

    Also the metric active / request should not be used for all workloads (e.g. Java / DB), why is - this? I have not found the reason of this anywhere, only the fact.

    Other sources such as Mark Achtemichuk suggests using consumed/use, which is the opposite (Understanding Active Memory - VMware vSphere Blog - Articles VMware vSphere).

    So I thought I'll with active / demand as metric and ignoring the warnings inside of vCenter.

    But the last time we have fixed half of our group, we had consumed/high memory usage and the vCenter began to inflate, compress, and finally to Exchange. Not a lot but I had not expected that, because memory active was only a small percentage of consumed.

    Can someone explain to me why this happened and who is right on this issue.

    Kind regards

    jengl

    jengl I don't know if you asked the wrong question, or I give the wrong answer :-)

    It is always good to attach screenshots, background to the issues, and what exactly you are trying to solve.

    You wrote:

    So to summarize:

    -ESXi uses consume to decide when to start the recovery techniques of memory RAM

    -To rightsize VMs for RAM, you must use the counter inside the BONE, not active

    -If you do not want to commit too much RAM and have a lot of the balloon you should right-size your virtual machines or extend the RAM / buy additional servers

    Please correct me if I'm wrong.

    My answer: you are right. If you do not have access to the guest operating system, then Active VM and VM consumed are better guess. Better than nothing :-)

    Sizing sizing of VM and ESXi are 2 different things (2 use cases) different. Please don't mix up the as soon as they are confusing. Do not try to resize the virtual machine when you are sizing the ESXi, unless you have a control total on them.

    You wrote:

    The question for me is: how many cache (standby under Windows) inside the VM is really necessary for the virtual machine to get the best performance without wasting resources. Perhaps this issue can be resolved only by tests or do you know another option?

    My answer: it's a different topic brother :-) It is different, because it is within a guest operating system (Windows in this case) and is no longer at the level of the ESXi. Suggest that post you another, possibly under Windows or vSphere too :-)

  • What format to use when you try to download videos on instagram or even try to send an e-mail

    What format to use when you try to download videos on instagram or even try to email them

    Hi Rashad,

    What format to use when you try to download videos on instagram or even try to email them

    This info is not easy to find on the site Instagram. Seems like Instagram want video to be uploaded from your phone. I guess that means he expects H.264 video. Please try it first and see if it works.

    Thank you

    Kevin

Maybe you are looking for

  • Why pictures start automatically on reboot? I never use it and it does not appear in the startup folder.

    Why photos starts automatically when you restart. It is NOT in the folder.so of starting, why what is happening? I never use photos, so it's a loss of memory perfectly!

  • Office Pavilion 500-281: upgrade of processor and graphics HP Pavilion 500-281

    I just bought this HP Pavilion 500-282 3/15/15.  I would like to upgrade from the intel hd graphics card 4400.  Also, I would say to install the I3 I5 4130.   How hard would that be? I upgrade the BIOS?  The power supply is 300 Watts. Thanks for any

  • Docking station Office attached screen HDMI "disappears".

    I have a coming Pro (7130) that I use as a desktop computer. I have a Samsung P2770 HDMI attached bottle and rather than display running in monitor mode system "extend" with the Samsung as a primary monitor. My power settings are as follows: Plugged

  • ACL for the nwebies.

    I, unfortunately, don't have the luxury train in Cisco, or read whatever it is thorough. While the IOS manual makes it clear how to create and apply ACLs, I need help about where to apply and how not to cut my all off building when I apply to the bor

  • Purchase a map from adobe

    HelloI need assistance with my purchase of the plan. I tried to purchase a plan, but he goes on to say that it is not available in my country (Faroe Islands). The thing is, my ID, laptop user and adobe is in the United Kingdom. So, it makes no sense,