Dynamically change background of richtextfield

Is it possible to dynamically change the background color of a richtextfield type to emulate a listfield?

Thank you!

use:

graphics.setBackgroundColor (myColor); for the background color

And whenever the user wants to change (a menu action or a button or...)

myColor = Color.RED;

textField.invalidate ();

If you set the color and you invalidate the richtextfield.

Rab

Tags: BlackBerry Developers

Similar Questions

  • rate of dynamic changes in the worksheet

    Hello, e n one explain how to add a dynamic change of a currency in a Numbers spreadsheet? I can't find in the formula section.

    Thank you

    Hi Sean,.

    Number can make calculations, once rates are in the table, but cannot, in itself, go out and pick the one (s) from an external source. This will require the talents of an AppleScript script.

    The script, it will take the talents of a scripter to write (there are a few who visit here regularly) and and the writer will need some information:

    What Exchange rate do need it?

    Where are they available?

    Can you describe the structure of the source? (Otherwise, the person who takes on the writing of scenarios may be able to determine the structure once the site is known).

    I'm sure that there will be more specific questions, but answers to those above will do for starters.

    Kind regards

    Barry

  • NB300 - change background on Windows 7 Starter

    Hey,.
    I useless windows 7 edition starter on my nb300 and wan to know if there is a driver toshiba on my hard drive that will allow me to change my background image as the Starter does not. I don't want to buy an upgrade that I just bought pc! Help!

    Hi Jessywolfe,

    Normally it is not possible to change the background on Windows 7 starter then maybe an upgrade to Home Premium would be an option.

    If you're looking for with Google you will find good tutorials how to change the background. There is another program called * Oceanis change background Windows 7 * who can change the background.
    Check this box!

  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • Dynamically change the path of the report

    Is it possible to dynamically change the path where reports are saved. TestStand 4.1.1

    Glennjammin,

    You can set a path to the specific report for any sequence that you run via the entry points of process model using the reminder of your sequence ReportOptions. It will allow you to change the current settings in the Options report (including the path) for the execution of this sequence. This allows each of your sequences have unique report options.

    If I understand your question, you want to do is exactly what is meant recall ReportOptions.

    -Jack

  • Dynamically change a stepname

    How to dynamically change a step name to appear in the report file (not text report)? I am looping through a test of parameter according to the led file and want every test in the report with a specified in the file name. Thanks, rich

    Hello Mack,

    There are serval solutions.

    Just try it

    1.) http://forums.ni.com/ni/board/message?board.id=330&message.id=11881#M11881

    2.) see attachment

    Greetings

    Jürgen

  • dynamically change field names

    Hello

    How to dynamically change the names of the different plots on a single graph.  I would like to do it on the attached VI.

    Thank you

    hiNi

    Hello hiNI,.

    I hope that you understood the excellent explanation of Cory. Otherwise, you can just have a look at the following image.

    I posted the image because I assume that you do not have LV8.6

  • How to dynamically change report style sheets in TestStand.

    How to dynamically change report style sheets in TestStand.


  • Dynamically change the Ni HSDIO channels

    I am currently using a PXI-6552 module to generate and acquire I2C signals simultaneously.  I would like to know if it is possible (and how I would go to this topic) to dynamic change channels.  My goal is just to pass the two references of NOR-HSDIO (purple variables) to a new slot - VI that I create from a different set of 5 channels 5 channels.  For example:

    Pseudocode:

    PXI sessions initialize;

    for (i = 0; i< 10;="">

    {

    Set the channels 0-5;

    Generate and acquire;

    Stop the acquisition;

    Set channels to 6-10;

    Generate and acquire;

    Stop the acquisition;

    Set channels to 11-15;

    Generate and acquire;

    Stop the acquisition;

    }

    close the sessions of PXI;

    Basically, I need the fastest way for acquisition channels without having to initialize and close sessions each time.

    I am currently using the HWC downloaded the example .zip from here: http://www.ni.com/example/31200/en/. (I've also attached the two that are necessary for my problem).

    Init HWC Device.vi: (also attached)

    Performance Device.vi HWC: (also attached)

    I may need on the screws are Assign dynamic channels, Configure Idle State and initial configuration.  However, I don't know if those are the only ones.  If it's possible, can I close the original channels and then assign more?  Or re-call "Dynamic Assign Channels" automatically disables all channels not assigned?  Etc.

    The important things to note: I'll put 5 channels at once - for both acquisition AND generation.   I need to close the channels and proceed with 5 different channels - for both acquisition AND generation.  All channels must be on the State of the 'z' to high impedance permanently.

    If you need further information, please let me know!  Thanks in advance for any suggestions and assistance.

    By trial and error, I was able to find a way to do this:

  • Dynamically change the language in cvi

    Hello

    I would like to know if it is possible to dynamically change the IUR in English language to Russian?

    I have a program written in cvi and I need to be able to scwitch English to Russian UI when the user clicks a button...

    Thanks in advance

    Yes: You must create a resource of language of the dossier and can then use the LoadLocalizedPanel / LocalizePanel and LoadLocalizedMenuBar / LocalizeMenuBar

  • dynamically change the targeted and untargeted application icons

    Hi all

    In JDE 4.7.0, can I dynamically change icon application targeted and untargeted.

    My application connects to a server once a week and draws new content and 2 new icons.

    Can I use the icons drawn recently to replace the existing icons.

    Thank you.

    My glance, you have codes is about right.  Note that you will need to provide the images you downloaded as Bitmaps.  There are a number of discussions on this Forum dealing with requirements to download the files and convert them to Bitmaps, so have a look round for help with that.

  • Dynamically change the animations

    In my application, I set all of my animations in QML.  How now dynamically modify them (either QML or C++)

    Thus, for example:

    Container

    {

    animations: {CustomAnim1}

    }

    }

    }

    How do I dynamically change that to CustomAnim2?

    You lost me now with your example... I assume that you have already read: https://developer.blackberry.com/cascades/documentation/ui/animations/implicit_animations.html right?  Something that may be a little confusing is the documentation explains in QML and C++, you do not have to use both.  Rather, it makes more sense to use only one or the other.  Personally, I like the QML much better for animations so I do not recommend use C++ at all for this.

    And playback on your example, I don't understand what you're trying to have control of the animation.  Eventually, it would be better if you try to have a button combat into a simple "onClicked" signal just to test if you are indeed correct.  Then switch it to another signal event.  If you still don't have it in the next few days I'll have an animation tutorial where I use explicit animations in my blog (link in signature) more later this week/weekend.

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • Using ISE to dynamic change of VLAN

    Hi all

    I need help to dynamically change the VLAN on each port of my Catalyst 3560, to do this, I don't want to use the MAC address filtering, but I want to use conditions already in place in my ISE to port between two VLAN (comments and Corporate) where they give free on the corporate LAN and the other Internet access LAN switch.

    Maybe someone of you had might have some ideas to do this using, or perhaps without VLAN?

    PS: Sorry for my bad English, I'm not native English ;)

    Thank you in advance.

    I don't understand exactly what you are looking for... But still

    The two types of access you plan can be achieved anyway

    Display the VLAN: as explained you... you must create two differnent authorization policies according to the users belonging to the Group of (AD) ...

    dACL: you can push downloadable ACLs to change according to the membership of users in AD.

    Let me know if you need help, design or configuration point of view...

  • Dynamically change the order of the components

    Can I dynamically change the order of the components (input text entry LOV, etc.)  inside the layout of the Panel form?

    Currently in 11.1.1.7 but may be considered if necessary upgrade

    Yes, you can.

    See the example attached to this bug: https://java.net/jira/browse/JAVASERVERFACES-2390

    Dario

Maybe you are looking for