How to replace you the skins in bb10?
I'm not able to replace the skins in BB10 Air 2.0 Beta
I'm following this example from the documentation that does not work! https://developer.BlackBerry.com/Air/beta/APIs/QNX/fuse/UI/skins/package-detail.html
I used to be able to override the initializeStates method, however, with qnx.fuse.ui.skins.UISkin there is no such method as 'initializeStates '.
It is a small piece of code that allows to work with the SDK of Air Playbook
override protected function initializeStates():void { upSkin = new Sprite(); upSkin.graphics.beginFill(0xFF6600); upSkin.graphics.drawRect(0,0,200,200); upSkin.graphics.endFill();
Can someone give me an example for BB10 Air 2.0 Beta SDK?
Thank you!
The documentation has been updated! I guess someone saw my post
Well now how you do it:
override protected function getSkinForState(state : String) : DisplayObject { var asset : DisplayObject; switch (state) { case SkinStates.UP: if( upSkin == null ) { upSkin = new Sprite(); upSkin.graphics.beginFill(0xFF6600); upSkin.graphics.drawRect(0,0,200,200); upSkin.graphics.endFill(); } asset = upSkin; break; case SkinStates.DOWN: case SkinStates.DOWN_SELECTED: case SkinStates.SELECTED: if( downSkin == null ) { downSkin = new Sprite(); downSkin.graphics.beginFill(0x333333); downSkin.graphics.drawRect(0,0,200,200); downSkin.graphics.endFill(); } asset = downSkin; break; case SkinStates.DISABLED: case SkinStates.DISABLED_SELECTED: if( disabledSkin == null ) { disabledSkin = new Sprite(); disabledSkin.graphics.beginFill(0xCC0000); disabledSkin.graphics.drawRect(0,0,200,200); disabledSkin.graphics.endFill(); } asset = disabledSkin; break; } return asset; }
Tags: BlackBerry Developers
Similar Questions
-
How do activate you the built-in in Windows Vista administrator account?
How do activate you the built-in in Windows Vista administrator account?
1. http://technet.microsoft.com/en-us/library/cc766343 (WS.10) .aspx
2. http://support.microsoft.com/kb/555910
To activate the built-in Administrator account, follow these steps:
1. click Startand type cmd in the Search boxof start.
2. in the list of search results, right-click Guest, and then click run as administrator.
3. When you are prompted by user account control, click continue.
4. at the command prompt, type net user administrator / Active: Yesand then press ENTER.
5. type net user administrator, , and then press ENTER.
Note: Please replace the tagwith passwords which you want to set for the administrator account.
6. type exitand press ENTER.
7 log off the current user account. -
How do recalibrate you the battery?
Hi people, I'm stuck with a which I think is a dud battery, how to recalibrate you the basic dough on an Easynote Hera GL, running 32-bit Vista Edition family?
See you soon
Bob
Hello:
Please read the info on the link below on how to recalibrate the battery for laptop.
http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?lang=en&cc=us&ObjectID=c00817650
Paul
-
How do develop you the whole structure in windows eaployer
How do develop you the whole structure in windows eaployer
Hello
See the following articles:
-
How do reinstall you the calculator in the start menu?
original title: HOW to REINSTALL THE CALCULATOR ON YOUR COMPUTER at STARTUP PROGRAMSHOW youHOW DO REINSTALL YOU THE WINDOWS CALCULATOR IN THE MENU START IN ACCESSORIES?
Go to: Add or remove programs, click Add/Remove Windows components, accessories and tools, click details, accessories, click details, and then put a checkmark in the calculator click OK, OK, then click.
If there is already a check calculator uncheck, click OK, OK, then. Then go back and check, click OK, OK, then.
-
How do follow you the site have copied/saved a picture of this exact site?
How do follow you the site have copied/saved a picture of this exact site?
* original title - help! *
Hello
It is not possible.
No details regarding where the photo was stored is recorded within an image.Kind regards
Joel
-
HOW DO REINSTALL YOU THE FAX PROGRAM IN WINDOWS 7.
HOW DO REINSTALL YOU THE FAX PROGRAM IN WINDOWS 7.
Windows Fax and Scan is added or deleted in "Control Panel |" Programs and features. Turn on or off Windows features. Printing and Document'; Uncheck the box to remove the feature, add a checkmakr to add it.
HAL
--
HAL Hostetler, TCE
Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
www.kvoa.com - KVOA television, Tucson, AZ.
Live Hot Licks - www.badnewsbluesband.com -
How do access you the list of programs that start when you start your computer?
How do access you the list of programs that start when you start your computer?
Saturday, January 19, 2013 19:48:16 + 0000, Psylly wrote:
How do access you the list of programs that start when you start your computer?
First of all, note that you should be concerned all the programs
starts automatically, not only those who enter in the system tray.
Not all the programs auto-start manifesting by an icon in the
Status bar.On each program, you don't want to automatically start, check its
Options to see if he has the choice of not start (make sure you)
Indeed choose not to run, not just a "don't show icon.
Optional). Many can easily and better be arrested like that. If that is not
work, run MSCONFIG from the start. Run the line, and then click the Startup tab.
Uncheck the programs that you do not want to automatically start.However, if I were you, I wouldn't do it just for the application of
the minimum number of running programs. Despite what many people say
You should be concerned, not with the way that a lot of these programs
you run, but who. Some of them can degrade performance severely, but
others have no effect on performance.Don't stop all programs to run willy-nilly. What you need to do
is to determine what each program is, what its value is up to you which
the performance cost is its running all the time. You can try
Internet search and ask questions about the details here.Once you have this information, you can make a smart informed
decision on what you want to keep and what you want to get rid of.
Ken Blake, Microsoft MVP -
How do reset you the statistics for a game in Windows 8?
Game original title statistics
How do reset you the statistics for Windows8 game?
I finally found the answer on how to reset game statistics
Use the menu button
then click on options
then click Reset statistics
then answer Yes
It works every time, well, at least on apple computer and its operating system
-
Slideshow: How to replace on the arrows 'Next' and 'Previous' with custom arrows?
On the homepage of my site, I put in a changing picture with Widgets Library > slideshows > Basic, then added in the images. the only thing I don't like is the appearance of the standard ' Next' and 'Previous' buttons. In want to replace their previous custom and buttons that I created in Photoshop. I tried to do by double-clicking on the icon 'Next' and then hit the blue circle/arrow, then press "Add picture" and select the file with the arrow custom, but instead to replace the icon/button 'Next', she just added the arrow custom slide show. I looked in the tutorials and help online but can't find an answer. Anyone know how to replace the arrows "Next and previous" with custom arrows?
Hello
To place your own images for the button previous and next, you use the fill feature. Please check the following steps:
1. go slideshow options and uncheck the Edit set.
2. Select the next button and click complete to open filler panel.
3. click Add picture and select the image you want to use. Also select the type of connection as "Scale to fill" or "scale to fit"and make the 'Center'. "
4 do the same for the previous button.
Concerning
Vivek
-
How can I dsiable the skin for a button?
I want to make a button without the skins. I know how to specify skins for a button, but I do not see how to configure them to null.
You can get rid of all the style by setting:
skin: ClassReference(null);
-
If you open/view display the colors that you see a color-block how to change you the choice
You want to bring a region a color for you the view menu and choose Show colors. You see the color of each box. How to change the color of which is in color? If you want a piano black how can I change one of the other colors to black?
You can not. This color scheme is wired...
There are customizations that you can get to change the themes of color and according to me, there is a way to change some of the resource files in the application to change the colors... but in general, if you are looking for a way to change the colors of the palette (color wheel, color pencils, etc)-this option does not exist.
-
my toolbar somehow got moved vertically on the right side of my screen and I would like to know how to move to the horizontal position at the bottom of the screen?
I assume you mean vertical to horizontal! You can reverse the transaction slip if you really want to say horizontal to vertical.
- Right-click on an empty part and make sure it is not locked (uncheck lock the tasbar if it is checked)
- Place the mouse pointer in an empty part and drag all the way to the Middle at the bottom of the screen
- Right click and lock again if you want to
Tricky
-
How do reset you the program back to Windows 7 compatibility mode?
I tried to get a program runs on Windows 7, but it would freeze upwards. Then I changed a setting in the program compatibility, try a Windows XP mode and a mode of Windows Vista (without success). How to get out the compatibility settings and just go back to Windows 7? Thank you.
Hi dartglass01
To change the settings for compatibility manually for a program, right-click the program icon, click Properties, and then click the compatibility tab. You can uncheck the option to run this program in compatibility mode dedicated
You can also check out the link to below to get help-http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows
I hope this helps.
-
How can I change the skin existing module (RH9)?
I have RH9. I have inherited a project. The skin for a module (Radiant) does not match the skin to the other modules in the project (for example hospital help).
I tried to change the skin, but it made no difference. I then copied the! SkinSubFolder! Hospital to Radiant. It made no difference.
I don't know what to do to make them match.
Any help is greatly appreciated.
Vicki
Take a look at the video below the link for an example of what I expect to see.
See you soon... Rick
Maybe you are looking for
-
Bluetooth Setup Assistant does not appear in El captain
I have hearing aids, associated with a device, Bluetooth, Smart Connect. My Macbook Pro does not see the intelligent connect. I want to be able to listen to my sound through the internal speakers hearing aids. I see Assistant Bluetooth in library set
-
Remember - this is a public forum so never post private information such as numbers of mail or telephone
-
How can I put a block of some of them by e-mail or to prevent them to write to me
Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem
-
Windows Vista Mail Attachment View
I use windows vista mail. 1 month before I install Kespersky antivirus license yesterday I scan my pc with a full sweep. After that, I had problem in windows mail. When I get e-mail with an attachment so I don't see the button of an email attachment
-
Keyboard problems - Windows 7 RTM on Thinkpad x 301
Greetings, The fighting had thereby a few days and haven't seen all the other notes on this subject. I installed Win 7 (business) RTM about 3 times - both 32 - and 64-bit and is the version gives me a problem with keyboarding. Basically, if I type RE