Can I change the status of the component?

Hi all

First of all, I'm sorry for my English. But I'll do my best to explain my question.

Can I change the status of the component?

For example, when I click on the button, I want to change the State of the label.

< s: states >

< name s: State = 'A' / >

< name s: State = 'B' / >

< / s: states >

< fx:Script >

<! [CDATA]

private function changelblState (): void {}

/ / lbl.includeIn = 'B'-> impossible

or

LBL. State = 'B'-> impossible

}

[]] >

< / fx:Script >

< mx: label id = "lbl" includeIn = "A" / >

< mx: button click = "changelblState ()" / >

How can I change the status of the component?

Thanks in advance.

Kevin.

Use the CurrentState property on the parent.

s: label id = "lbl" includeIn = "A" / >

" s: button =" currentState = 'B' "/ >"

Piece of unsolicited advice:

Stop using components unless necessary.  Use the spark labels and buttons (e.g. , ), especially if you want to use the architecture of great State spark.

Tags: Flex

Similar Questions

  • How can I change a status of the case?

    When I look at my case in CRM, all have a status of "new". How can I change the status to "closed" or something equivalent?

    Hello

    In the details of individual cases, you will need to select the Edit option and select update status.  CRM-> case-> select the box and click 'change '.

    However, there is no feature status in bulk.

    Kind regards

    -Sidney

  • Can we change the budgetary situation in the project framework &gt; Configuration &gt; system status window?

    Hi Experts,
    Can we change the budgetary situation through project status window?

    Thank you

    Hello

    Project status window will process only the progress of the project, not the status of the budget.

    Dina

  • How can I change the status of my account?

    Hello

    I would like to buy a creative cloud for student account, but I can't find my school (only proposals in the United States and I'm in Switzerland). How can I change the country on my Adobe account?

    Thank you in advance for your help!

    Hello

    For tax reasons, it is not possible to change the country associated with an existing Adobe ID.

    See help here - https://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id .html

    ^ Ani

  • My computer says "windows defender is not found", and I can't change the startup of programs in the Control Panel, it says cannot find 'C:\program '.

    Original title: can you help me?

    My computer says "windows defender is not found", and I can't change the startup of programs in the Control Panel, it says cannot find 'C:\program '. I'm vwindows vista

    My computer says "windows defender is not found", and I can't change the startup of programs in the Control Panel, it says cannot find 'C:\program '. I'm vwindows vista

    You in fact 2 questions.
    I will answer the one who is the most important, for you it is.

    RE: Change startup programs

    You can access this way startup programs...

    Start button > in the search box, type msconfig > Enter > click on Startup tab. Here's your startup programs.
    To disable, uncheck the box in front

    To activate... check the box opposite.

    RE: Windows Defender cannot be found.

    If you have the following AV, antivirus, programs installed, close your Windows Defender. Purpose of these AVs have their own advocates. 2 defenders on the same machine will create conflicts.
    Bottom line: it's ok. It's normal.
    List of AVs which will stop Windows Defender:
    Norton
    McAfee
    AVG
    Microsoft Security Essentials

    If you don't have AV programs above, here's how to restart Windows Defender:

    Start button > in the search box, typeServices > press the Enter key > scroll to find Windows Defender, click on it >...
    topic status , it must be said... Has begun
    under Startup Type, it must be said... Automatic
    If it does not say that, right click on Windows Defender > click Properties >
    in Startup Type, click on the pointer to the right and select automatic
    to the service status, click Start
    Click OK when finished.
  • How can we change the visibility of the drop-down list after its creation?

    I create a QML document with three drop-down lists.  Depending on how "trans_type" is selected, only to drop Extra should be displayed.  If the option "account" is selected, the drop-down list is visible and the DD category is hidden.  The reverse is true if the 'category' option is selected.

    Here's how I build my QML document:

    void Testing::updateFields()
    {
        if (m_form.isNull())
            return;
    
        // Clear all fields from the form
        m_form->removeAll();
    
        // Clear the internal mapping
        m_fields.clear();
    
        //get the transaction page ready
        QmlDocument *qml = QmlDocument::create("asset:///transaction.qml").parent(this);
    
        DropDown* trans_type = qml->createRootObject();
        trans_type = DropDown::create().title("Transaction Type");
        trans_type->add(Option::create().text("Accounts").value("0"));
        trans_type->add(Option::create().text("Categories").value("1"));
        trans_type->setSelectedIndex(0);
        connect(trans_type, SIGNAL(selectedIndexChanged (int)), this, SLOT(onDDChange(int)));
        m_form->add(trans_type);
    
        DropDown* account_dd = qml->createRootObject();
        account_dd = DropDown::create().title("Account");
        account_dd->add(Option::create().text("No Account").value("0"));
        //... code to populate account drop down here...
        account_dd->setSelectedIndex(0);
        m_form->add(account_dd);
    
        DropDown* category_dd = qml->createRootObject();
        category_dd = DropDown::create().title("Category").visible(false);
        category_dd->add(Option::create().text("No Category").value("0"));
        //... code to populate category drop down here...
        category_dd->setSelectedIndex(0);
        m_form->add(category_dd);
    
    }
    

    Everything is displayed properly on the page.  onDDChange is called and it shows a Toast that the option has been selected.  Here is what I currently have in onDDChange:

    void Testing::onDDChange(const int &info)
    {
        QString msg = "Switched To: ";
        if(info == 0) {
            msg = msg + "Account";
        } else if(info==1) {
            msg = msg + "Category";
        } else {
            msg = msg + "Unrecognized";
        }
        showToast(msg);
    }
    

    I can't figure out how to get the drop down lists to be visible/hidden depending on the needs.  There is a function "setVisible()" for the drop, but I can not understand how to operate without the app crashing.  http://developer.BlackBerry.com/Cascades/reference/bb__cascades__dropdown.html#function-setVisible-v...

    My questions are:

    1. How can I change the visibility of the appropriate dropdown lists in a different function when the status of the main drop-down list is changed?

    2. is there a way to define an id for drop-down lists?  If not, how am I supposed to go into the drop-down lists in a variable later so I can receive their value or change the visibility?

    Any help would be great.  I've been struggling with this for a while.

    There are a number of methods you could use signals and slots between your code and the QML or something simple is assign "objectName" as a property, then this search in C++.

    http://developer.BlackBerry.com/Cascades/documentation/dev/integrating_cpp_qml/

    Something like

    DropBox db = mRootContainer->findChild("dropboxname");
    db->setVisible(true);
    
  • I can not change the type of standard user to the admin account.

    I had a very difficult time, adding new accounts to the system.  Now that I have, I can not change the type of standard user to the admin account.

    As you don't declare that you tried, I am unable to say where you went wrong. Here is a method to promote the accounts without going through the various GUI screens:
    1 restart in SafeMode with network.
    2. log on as an administrator.
    3. click on start.
    4. type the three letters cmd in the search box.
    5. press on Ctrl + Shift + Enter
    6. click on "run as Administrator".
    7. type the following commands and press ENTER after each:
    NET user
    (This will show you all existing accounts)
    net localgroup administrators 'xxxx '.
    (This will encourage user xxxx to Administrator status. Replace xxxx with the correct name account).

  • How can I change the text in the Messages to the vertical?

    How can I change the text in the Messages to the vertical?

    If you mean change the orientation, simply turn the phone. If this does not work, close Messages and then run again.

    To close the Messages, press the Home button twice quickly. You will see small glimpses of your applications recently used. Drag to the left to find the application you want to close. Swipe up on the preview of the application to close.

    If it does not, the strength to restart the phone. No data is affected by this. To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

  • How can I change the title of the folder?

    Im trying to organize my notes and consolidate a bit, but I need different titles. I can't change the title even with edit. Also, is it possible to pass information from one folder to another?

    To change the title of the file, switch to the folder view (who has the list of places, your notes are kept: all iCloud, Notes, file, folder, deleted recently) and press the button change. While in editing, tap the folder you want to change the name to once and it will display a window where you can change it.

    You can move the notes of any place anywhere. Switch to the folder view and click the folder you want to move the notes of. Click on edit, select the notes that you want to move, click on move and then select the folder you want to move.

    See you soon,.

    GB

  • Can I change the band on the watch for the ceramic version?

    Can I change the band on the watch for the ceramic version?

    Hello

    Yes - all Apple Watch bands will be adapted to any Apple Watch of the same size of the case (42mm or 38 mm).

  • I changed my email address of my ID Apple online, but my iphone still ask again me for my old email password, which no longer exists, how can I change the email to my new on my iPhone

    I changed my email address of my ID Apple online, but my iphone still ask again me for my old email password, which no longer exists, how can I change the email to my new on my iPhone

    Go to settings | Mail, Contacts, calendars and change e-mail account information.

    T.

  • How can I change the black background of iTunes 12.4.1.1

    I am running iTunes 12.4.1.1 on OS 10.8.5 on a Macbook Pro. How can I change the black background on iTunes to simple white.

    Thanks for any help

    Savewolves

    Where do you see a "black background" in iTunes?  You can include a screenshot?

    Command-shift-4 to take a screenshot of the portion of the screen showing the problem.  Then drag the files to screenshot (which appears on the desktop of your Mac) in your reply in the Safari window message.

  • How can I change the ORDER of my 5 email accounts to my default at the top

    How can I change the order of my 5 email accounts to my default at the top? Currently using any option to e-mail browser (Chrome Firfox IE) sends using one upstairs that is one that I never use. I specifically put by default in the settings option and figure that he took over the top NOT the default. This question never used to cultures upward, but since a recent update for Thunderbird, he chooses the top of the list only Preferred not on the list.
    Thank you I could delete the account then add it to the bottom (tedious), but there must be a way for a) restore order and b) to stop the email add on picking at the top

    Two things.

    You have defined the default value in the menu (alt + T) tools > account settings > outgoing (SMTP) Server?

    Second, try this add-on https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/?src=ss

  • TB 31.7 W7, how can I change the police in the "all folders" list on the left?

    TB 31.7 on W7
    How can I change the police in the "all folders" list on the left?

    I was also unable to change the position of the icons on the e-mail toolbar in a message window. When I try to drag a box icon from the tool bar customize I get a symbol of the circle with a line through it, rather than the vertical bar I expect.

    Something like that?

    http://forums.mozillazine.org/viewtopic.php?f=30 & t = 2834207

    Note that the name of the folder and the name are case-sensitive. It must be userChrome.css and it must be placed in a folder named chrome.

    Finittary poster regularly wrote something about this recently. It may be possible to find this thread on this forum.

    The inability to drag or move a button usually means that you have opened the pane customization evil.

  • How can I change the sequence of displayed in Thunderbird mail accounts?

    I need to set up a laptop computer to take on the go. How can I change the sequence (list) of e-mail accounts in the vertical pane to match my office?

    Install this add-on.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/manually-sort-folders/

Maybe you are looking for