ActionItem activated

Hello

I use an increase and decrease font size function in my application - which works perfectly - but I was wondering how to set it up as being not activated when the police were in decline so many times.

ActionItem {
            title: qsTr("Decrease Font Size")
            imageSource: "asset:///IMG/ic_decrease.png"
            ActionBar.placement: ActionBarPlacement.OnBar

            onTriggered: {
                if (textSize > 7) {
                    textSize = textSize - 1
                }
            }
        },
ActionItem {
            title: qsTr("Increase Font Size")
            imageSource: "asset:///IMG/ic_increase.png"
            ActionBar.placement: ActionBarPlacement.OnBar
            onTriggered: {
                if (textSize < 16) {
                    textSize = textSize + 1
                }
            }
        },

Sorting, change the font size to 8 fact that market - thanks for your help

ActionItem {
            title: qsTr("Decrease Font Size")
            imageSource: "asset:///IMG/ic_decrease.png"
            ActionBar.placement: ActionBarPlacement.OnBar

            onTriggered: {
                if (textSize > 7) {
                    textSize = textSize - 1
                }
            }
            enabled: textSize >= 8
        },

Tags: BlackBerry Developers

Similar Questions

  • Click disabled ActionItem

    Hey developers

    The UI guidelines say

    Disable a "Submit" action until users enter all of the required data. If users try to select a disabled "Submit" action, display an inline message or a toast to identify what's missing.
    

    So far about disabling the Submit action. But, as indicated in the guidelines, we show a message when a user tries to tap the button disabled/actionitem. How can I catch an event on a disabled button or ActionItem? I went down on the API but did not find anything.

    Does anyone has an idea in the accomplishment of this?

    Thanks in advance

    I don't think they mean actually disable the button/action (ie active: false) rather keep it enabled (IE enabled: true) but 'disable' by not allowing the user to continue displaying the dialog box. Pseudo code:

    If all the fields filled)

    {/ / run}

    else {error message / / show}

    Because I don't think its possible to retrieve an instance of a user pressing a disabled button / action.

  • webView: load a URL from an ActionItem

    Hello.

    trying to do a simple display web app for a forum site and I want to put a "View Active Topics" button in the action menu and on triggered it must load the active topics page.

    im a beginner...

    has got everything in place, but when to trigger the button in the action menu of racing it does nothing with the following code.

    {ActionItem}
    Title: "View Active Topics".

    onTriggered: "'http://www.site.com/forum/search.php?search_id=active_topics ' "

    ActionBar.placement: ActionBarPlacement.InOverflow
    }

    You just need to assign the URL property of webview within the onTriggered function.

        actions: [
            ActionItem {
                ActionBar.placement: ActionBarPlacement.InOverflow
                title: "Active Topics"
                onTriggered: {                  //Using WebView ID
                      webView.url = "http://www.site.com/forum/search.php?search_id=active_topics"
                }
            }
        ]
    
    WebView {
                id: webView
                url: "www.google.com"
    }
    

    Thank you

    Kareem.

  • Apple Watch activity is not in the cloud?

    So, I've been using a Apple Watch for a while and my number one problem is that 'Activity', I put together for the last year is not sync with the iCloud, so when I upgraded my iPhone 6 to iOS10 all my activity watch is gone. I tested this point last week and it seems that "Activity" app does not synchronize your data in the cloud, so if you lose your phone or your watch you will have to start all over again and latest data are lost. This seems to be a huge concern when I spend all this time my overall follow-up and progress. Everyone see what happens if you put to level or restart/reset your watch or your phone?

    Hello

    Health and historical activity data is stored on your iPhone. It is not recorded separately in iCloud.

    To guard against data loss, be sure to make regular backups of your iPhone.

    If the backup via iTunes, make sure to select the option to encrypt iPhone backup (unencrypted backup excludes the sensitive data, including health and activity). iCloud backups are encrypted as standard.

    More information:

    The backup of your iPhone, iPad and iPod touch - Apple Support

  • The AppleScript get cell numbers active

    I want to create a script that checks the active cell or column better / assets to the keyboard layout for the automatic switch from English to Korea and visa versa...

    I can't find it anywhere... where to get the active column? Help, please!

    AppleScript to affect the current selection (if the selection is a single cell, an entire column or some other range) is as follows:

    say application "Numbers".

    say front worksheet active document

    say ( class is worn) fromfirst table whose selection range

    say a selection range

    -do things here, for example:

    -the value of background color "red".

    -value of the first cell value v

    end say

    end say

    end say

    end say

    However, from keyboard, I don't know why you should check the specific range in number.  You may want to watch v (value in, say, the first cell) to check if it is in Korean or in another language?

    SG

  • Problem activation ISO 10 September 2016

    After my Ipad iOS 10.0.2 update I could not activate because it says I am not access with the original Apple journal. Makes no sense. I bought the new Ipad in seven of 2013 Dabs.com. She has been linked to my Apple account 10 days ago (I deleted my profile by own Apple support Web site suggestion as a way to fix my problem, the other restoration/upgrade to the Ipad with ITunes update). I contacted the support of Apple (I have two numbers in case Apple). Asked Apple support to provide a proof of purchase I made. Told me now the reception that I provided does not correspond to my Ipad, but Apple isn't going to help with all the details to help to regularize the situation. The Ipad is mine and well was linked to my account from the date of purchase in September of 2013 until I removed it at the suggestion of site specific help from Apple. I now do not have access to my ipad £460 for more than 10 days and have lost money and time talking to 4 different cooperatives of Apple, after 6 calls and none seem able to deal with a ridiculous situation. Alexandre Vitorino (Apple) seems to have the best handle on weird how this situation is. Please can someone fix this? A software update on an Ipad that I own shouldn't stop me using it and then force me to prove that I admit actually before I use it again! I'm a professional businessman who uses it for meetings of the Council. I have a receipt for my camera and get treated like a kind of criminal.

    My sincere sympathy for those who can't find their original receipt or forget their original log-in Ipad because Apple does not help, you and your Ipad will be also useless mine is currently!

    If you are in the same situation please confirm to this post. I can't be alone, if she feels like it!

    Post edited by: cibble10

    Lock activation occurs when the ID of original Apple blocking it does not match with your current Apple ID.

    Until you can bring a receipt valid from an Apple reseller or authorized, it's nothing you can do.

    BTW, the polling stations in this Apple-owned forums is prohibited. You can review the terms of use.

  • icloud in the iPhone activation problem 6 more

    IM someone buy iphone 6plus they don't sign Apple ID and icloud, I reset my phone and now I'm still icloud activation problem.how can I do?

    You can not. The only way is if the previous owner release form their iCloud account. If they will not do for you, it means nothing to you.

  • I can't do Activation, my real account and stop true bassword

    I can't do Activation, my real account and stop true bassword

    Someone was owner this iPhone before you bought it?  Lock activation request most likely their information.

    The former owner must unlock the iPhone, or it will be useless to you.

    Find my iPhone Activation Lock - Apple Support

  • Since activation apple CarPlay, my iPhone does not connect to my Bluetooth infotainment system

    I have recently taken delivery of a VW Tiguan MkII 2016 and could easily match my 6 s iPhone with it. Now, however, I created CarPlay Apple and VW car-net connect my iPhone via USB. Now my iPhone is no longer connect via bluetooth when not plugged into the USB port. It seems that I can now use only my phone by CarPlay which I do not plan to use whenever I drive the car. Is there a solution to this?

    Hi biker.

    I understand that as you have activated the Carplay, your iPhone will not connect to your car stereo via bluetooth. You can try to disable the Carplay on the device, and then test the bluetooth connection. Because you are trying to connect via clips and wireless at the same time, this can cause some problems. Using one or the other should solve this problem.

    Please use the Apple Support communities to post your question. Good day.

  • You can create a goal of step in the application of the activity?

    p

    Hello

    No - the features of the activity every day app go, Stand and exercise goals. It is not possible to also add a step goal.

    If you want to suggest that Apple consider adding this option, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

    More information:

    Use the activity on your Apple Watch - Apple Support

  • Activity App is no longer work accurately

    I have a first gen watch the latest operating system running. Since the last update, the part "Permanent" on the application of the activity does not fit properly. I'm all the time during the day, but he has recorded now only orders within hours early in the morning. I took two long walks apart yesterday and she recorded nothing?

    Any ideas what could happen and how to fix it? Is this a fault with this latest OS?

    Thank you!

    Hello

    The following steps may help:

  • activation lock (iphone 6s) told my MAID ID Apple"cannot be used to unlock the iphone. »

    I reset my phone to delete all data and settings. Don't want to sell I just did this because I wanted to clear space and I have always done this way without any problems. Once I reset it asked me to choose my language and country, then WiFi. After I walked in that I see the lock of the Activation screen. I get my Apple ID, I used with this phone and password and he told me '[email protected]' cannot be used to unlock the iPhone. "After you enter my apple ID and password several times, I tried using past apple ID and they no longer work. I don't know what to do, I tried to remove my camera of find my iPhone after I saw that as an option in the face of this problem, and that didn't work either because my phone showed "offline". Help, please.

    When you went to iCloud.com since a desktop browser and saw the device as long as it is in offline mode, do you have it removed from your account? You should be able to do after you have selected the delete option (even if it is in offline mode) or in the drop devices, there should be an 'X' next to your device. After that, reboot your device and start implementing screens.

    Do your you're on Wi-Fi good during the editing process. Bottom line, a manager of the Apple Store may remove the lock, but you'll need a receipt.

  • activation iPad 9.3.5 blocking bug

    Sorry if this thread in the wrong section, I can't find the section support or tag you,

    Ive updated my ipad 9.3.5 once ive power used for one day in empty battery.

    then it restarts and now im on this activation of the lock screen but my apple ID does not.

    screenshots:

    1. no language > This means I already configure it.

    2 NOTE: after 9.3.5 strings I could change the apple for a * s, even managed to download apps on it, then ipad ID drain its battery and restarted, it went to the lock of activation screen and does not my i.d.

    Ive tried to log a * s , but does not, so I thought he came back to the previous owners i.d.

    I heard that there is a bug like that when it updated to 9.x or older.

    a * 6 is my aunt apple id and the previous owner, we have already made contact with apple on the recovery of this apple ID (case ID: *), and we managed to get password reset e-mail. but still do not accept.

    I hope someone can help me with this, waiting for response from the apple support.

    < personal information under the direction of the host >

    MARK AS RESOLVED.

    another successful apple ID to unlocked it.

  • My ipad locking for some time now and don't can't unlock it, how do I unlock the lock of the activation?

    How can I unlock my ipad for the actviation lock?

    Bettylouisetrapp wrote:

    How can I unlock my ipad for the actviation lock?

    Enter the correct credentials that was used the first time, that the ipad has been implemented.

    If you bought it second hand contact the original owner.

    There is no way to bypass the blocking of activation.

  • lock activation appeared on my iPad now, it will not unlock

    Suddenly my iPad is to ask for my id and code is locking activation, but my password do not work I understand that it is bound to find my i phone but I was not seeking this help iPad unlock it please

    Hello. This upgrade my iPad to 9.3 air activate iPad display does not not my account information, but the Mac computer accepts my Apple ID and password help me?

Maybe you are looking for

  • I did a new address book list and added 12 emails. How can I view the separately?

    Each of the new contacts and emails that I added to my "new list" in my address book appears in my "personal address book".I want to check this list is complete, but I can't find a way to display it.The personal address book icon shows a subdirectory

  • Windows 7 and extended warranty

    I still have an old computer of 19 months with 17 months to go on my extended warranty.  I think to move to Windows 7 Home Premium to my current Windows Vista Home Premium.  Questions about my warranty, if any, will arise if I upgrade?

  • Tecra S1 - HW Setup

    Hi all I have Win xp - sp2 in my Tecra S1. Recently the system has slowed down a lot. The Fn + F5 to switch the display does not work. In Toshiba Console when I try to open "Hardware settings", I get an error message "ended common Module.What could b

  • Drivers & USB ports not working not not on Satellite C660D-10f

    Hi recently put windows 7 on my laptop & have no ethernet controller drivers network controllers orallso none of my usb ports workI have access to another pc, but cannot transfer any drivers I need because of the usb ports? first of all can someone p

  • MBPr 2013 - is this visual glitch a hardware problem?

    Is attached a screenshot of my App Store as it is currently. This kind of effect 'glitch' also sometimes appears on my desktop. Add to that, twice in the last two days, my computer crashed randomly when using Chrome. The only known issue with my lapt