Change the color of a label that is already made

Is this possible? The TextStyle of AbstractTextControl definition is read-only. The label does not seem to have any method to repaint.

At the moment I'm to create two identical labels and hiding one at first, then when I "change the color of the label" I hide my visible label and put my only invisible in the visible. I think that making two labels is probably unnecessarily expensive (even if it does not solve the problem). Can anyone think of a better way to do it?

You can inherit from Label. Then, you can call Label. textStyle () which returns a pointer to the bb::cascades:TextStyleDefinition. Then, you can call setColor() to set the color. It should work. I have never done this, but the UI components auto update even if changed in C++.

Tags: BlackBerry Developers

Similar Questions

  • How can I change the name of a bookmark that's already in my menu other than to delete it and start again.

    I have a number of bookmarks that are long and have misleading titles because I forgot to enter a shorter more concise name when I first set bookmark them. However, I can't find a way to rename the other bookmarks that deleting the current and bookmarking this time change the title to something I recognize.
    For example I have bookmarked Ebuyer and in my bookmarks list it says, "laptops cheap, etc, etc." all I want is 'Ebuyer. I realize that I can delete this bookmark and save it again and this time change the name at the beginning.

    Right-click on the bookmark, click on 'Properties' new 'name' type click Save.

  • Change the size of a window that is already open

    Hi all

    Is anyway to change the size (800 x 480), a window that is already open? The following code opens the window:

    HAPwindow2 = window () .new ("Haptek_player")
    tRect = HAPwindow2.sourceRect
    HAPwindow2.rect = HAPwindow2.sourceRect.offset (190,0) - d.left, d.top
    HAPwindow2.open)
    end

    I know how to change the size of the video in the window (window("Haptek_player").movie.sprite (1) .rect = rect (0, 0, 800, 480)) but I don't know how to change the size of the window itself. Any ideas?

    Here's the answer:

    on haplayer2

    tRect = window("Haptek_player").sourceRect.offset (190,0)

    If _player.windowPresent ("Haptek_player") then

    Window ("Haptek_player"). Rect = tRect + rect (0,0,624,280) - left, top, right and bottom 400 165 - tRect.offset (190,0)
    Window ("Haptek_player"). Movie.Sprite (1) .rect = rect (0, 0, 1024, 600)

    end if
    end

    624 280 values come if you subtract the resolution you want to perform from the original window dimensions (in my case 400 x 320).

  • How can I change the colors of fonts that I add to my movies?

    Hi all

    I have a simple question. I have a loot of VHS tapes I've had since Adam was a boy. I've been working my way through them and their conversion into DVD. This is probably very different from what most people use the software for. I've been using iMovie HD until it was more compatible, then Final Cut Express.

    Did not go for a while and decided that I should start using Final Cut Pro. After a few days of fiddling, I'm at the stage where I'm ready to try to make a film I did before (do not take risk). The only thing I can't work on is to know how to change the color of all fonts that I use. So far, all I can use is the color that comes with the model. I want to change because I use my own back grounds. A white font on a light background is a bit difficult to read.

    It was not hard to get that I did. One of the most polite things said about it was when Apple released it it should have been called iMovie HD Pro. I do not disagree with that.

    That's people, thanks for any help you can give. If there are textbooks that would be useful any suggestion would be appreciated.

    See you soon,.

    ugly_dog

    What I forgot last time. Do I have reason to assume that chapter markers are deferred to iDVD when the project is completed.

    THNX,

    ugly_dog

  • Is there a way to change the color of my text & fonts?

    I would like to change the color of my text that I added my thoughts in a response message, how can I do this?

    Thank you!!

    Eric

    You must compose messages in HTML format in order to apply the colors, styles, and other formatting. The default format is defined under the tools/account settings /accountname/Composition & address.

  • Change the color of a single moving object in video

    Hello, I am using first Pro CC and I would like to know how to change the color of a hat, that a person is wearing in the video from red to blue.while that him away one end of one room to another.  What would be the most effective way to proceed first?  Thank you.

    Hi Techman,

    You need to perform the secondary color correction. See if this video helps you.

    Thank you
    Kevin

  • How can I change the color of the mixture without polydioxanone it?

    If I have a simple mixture of two lines, and to change the color, I'm going to > objectives > mix > release of mixture and then change the color by selecting and changing the shade of the race.  So, I have to redo the mix and eventually reapply the mixture settings.  I'm generally uncertain of color combinations and working things by trial and error so sometimes, it's a lot of clicking. I know there is a keyboard shortcut for the release of mixture, but it's always a chore if you use a stylus or a mouse.

    It's what lies beneath my question - is there a quick way to change the color of a vector that is part of a mixture?

    Thank you

    Martin

    You need not leave the mix to change the color. Use of the

    tool Direct Selection to select only one race at the beginning or at the end

    the mixture, which will allow you to change the color and the mixture

    updates automacly. You can also select the entire mixture and use

    -LiveColor to change the color of each object that make the mixture in

    only once.

  • Change the printer to an email you have already created on connected HP?

    Whenever I re - install the drivers / software for my 7510 Photosmart all-in-one, as the time where to find a new PC or reinstall Windows, I have to go into HP connected on the web and 'add a device '. After that, it makes you choose an email address to assign to your printer. From what I see, you cannot use a printer e-mail address that you already created.  And you cannot go back connected HP and change the email of your printer that you already created - it gives you a "taking" error (Well, of course it is taken - by me!)

    See picture attached for clarification.

    Of course, I tried to submit a request for assistance and sent an e-mail after that my product is out of warranty, I knew, but connected HP is relatively new and this seems to be a bug, unless I'm missing something.

    Thanks for any info, someone has.

    Sorry, found my response on another thread - except connected HP is referred to as ePrint...

    Could not find a way to remove this post.

  • Change the color labels

    Hello!


    It is possible to add color labels that there by default or change the colors?


    Thank you

    Hi Curioso,

    I do not want. Here is the link to put in a feature request. I tend to use labels very, very vaguely like reminders temporary for a project, because there are simply not enough colors to make it a really useful feature.

    Community customer Photoshop family

  • Change the color of the point to a point on the page label

    I have several page elements that have labels. My customer wants to change the default color of some of the labels of page elements be of different colours on the page so that they stand out. Can I do this? I can change the color of the data in the actual cell, but I can't change the color of the label.

    Example:

    ARTICLES: < given here >

    I fill the < data here > with a column in a table. I can change that, but what they want to change me is the color of the type in the label ELEMENTS:

    Could someone tell me please the process for this if possible.

    Thank you
    Patti

    Patti,

    You can do this by adding some CSS where you have the point label.

    Change the desired page element, goto label box, add the CSS label. For example,.

    Item:
    

    I hope this helps.

    -Chris

  • Address field is red - a color that is difficult for me to see. Is it possible to use the configuration editor to change the color.

    Apparently a bug in Thunderbird is changing the "To" address to the Red even if the recipient is in my address book. The address is displayed when I start typing the first few letters of the recipient, but the text turns red which is difficult for me to see. I want to continue to enter addresses that I always (first letter type or two) would be the simplest solution to change the color from red to something easier for me to read. I looked in the configuration editor but can't seem to find a key that is appropriate for the address field. Can anyone provide assistance?

    Update to Thunderbird 38.0.1.

  • I find the black on the labels of the grey on tabs difficuly to see what I can change the colors of the tabs?

    I just upgraded to Firefox 29, however I find that the black font on grey background color of tabs is difficult to read.

    Can I change the color of the tab to something more light in the shade?

    Hello, you can take a look at some light themes - maybe one of them is your goal: https://addons.mozilla.org/firefox/themes/

  • In artificial intelligence, after that I did a text in an envelope mesh, how can I change the color of the text?

    I edited the text in a "mesh envelope" - so I could manipulate the shape.  After doing that I want to change the color - but changed the bar at the top - I don't have the ability to change the color? The bar on the side doesn't let me change it either? I'm new to HAVE - thanks!

    To have access to your original for the Assembly object, go to object > envelope distort > content change

  • Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem

    Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem is it gets rid of color and shows that the peak through the text.  I wanted a draft of the text with the picture.  Is this possible?

    Thank you

    Peter

    You're welcome, Peter.

  • I'm trying to follow the video to "Change color" and I don't have a lot of options that uses the presenter.  I'm on a PC.  Can someone walk me by changing the color of an object step by step?

    I'm trying to follow the video to "Change color" and I don't have a lot of options that uses the presenter.  I'm on a PC.  Can someone walk me by changing the color of an object step by step?

    Sorry for the delay. Here is the video

Maybe you are looking for

  • How many years of guarantee?

    Toshiba Qosmio G30-211 SN 37801820GHow all the same guarantee? When you buy a laptop on this site is written in 3 years in service center say 2 years. More please answer the important question for me! (1) with what the serial number of the motherboar

  • The spooler error?

    The problem is I have a HP Color LaserJet 3800n and I can print both documents and after that, the system prints never third or once the work stops.  The printer indicates received data but do not print on what he receives.  I can remove the printer

  • XPS 8900 - you do not use a screen connected to a Nvidia GPU

    Just got my 8900 XPSA. If I try to access the Nvidia Control Panel, I get a message that I do not use a screen connected to a Nvidia GPU. I have a Nvidia GTX 745, which was last updated 25/08/16 pilots. It shows that it works in the Device Manager.

  • How can I activate when the activation wizard does not start?

    When replacing my motherboard dead, my copy of Windows XP 64 bit would not start, then ran a repair installation. After the repair was finished, Windows prompt that there is significant variation in my system (correctly, as I was unable to get the sa

  • How to search for all files created today in windows 7?

    I would like to see a list of all the files that are created today.  How did this search performed in windows 7?