Button un-highlight on disable?

In my code, when a user clicks on a button, I set the alpha of the button to 50 and set enabled=0. This works to essentially disable and grey out the button. The problem is that even though the button has been disabled, it still sits in the over state until the user moves the cursor off the hit area... Funny, no?
Since you can't tell a button what frame to go to, how do I get it to go back to its up state (without recreating all my buttons as movieclips and doing the whole thing manually)?
I'm sure there's a simple solution I'm missing here...
Thanks,
Caleb

That's a shame... just kidding, but AS3 supports giving some control of the button states where AS1/2 do not.  I'll think on it a bit, but for the moment, a movieclip is the only solution that comes to mind.

Similar Messages

  • I have 2 ipod touch 4th generation and i tried to sync these i had to download a new itunes but no sync button is highlighted i am unable to download anything or sync either of these ipods . It says click summary i do nothing happens

    I am unable to sync my ipod touch 4 th generation. Itunes advised me to download updated version of itunes. I did. But nothing works no syn button is highlighted and summary button does not bring anything up. can someone help.

    I disabled all my computer's firewalls and sure enough, IT WORKED!! My iPod is updated and just now finishing restoring! Thank you SOOOO SOOO much. : D

  • How can I tell if a button is enabled or disabled?

    Is there any way of tell if a button is enabled or disabled? For example if I use setEnabled is one part of a program, how can I find out if the button is enabled or disabled in another part of the program?
    Thanks
    Peter

    Is there any way of tell if a button is enabled or
    disabled? For example if I use setEnabled is one part
    of a program, how can I find out if the button is
    enabled or disabled in another part of the program?
    Thanks
    Peter
    btn.isEnabled()That wasn't so hard to guess now, was it? Even better, use the API, then you don't have to guess:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.html

  • I am not resetting firefox just to fix orange button. Menu bar disabled still no orange button. Have had this problem since upgrading to 20.0

    Firefox orange button has been missing I upgraded to 20.0. I have since installed the next update as well, still no fix on orange button. Research suggested disabling menu toolbar (which is not a solution for me) I tried this, still no orange button. Another recent development is with the all in one sidebar... The only icons showing are "Display you bookmarks," and Google Lite. The buttons are still there, just no identifying information; no icon, no text.
    I will not reset firefox, to do this would require more time than I can give. I would switch back to Google Chrome if that is truly my only option. I have been using Firefox for 2 years, switching back would be most undesirable.
    Thank you for any and all feedback.
    Windows 7 Home Premium
    64 bit
    Firefox

    Are you using the default theme?
    *Firefox/Tools > Add-ons > Appearance
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Disabled button does not look disabled

    In a simple FX app I created a button and set the disable property to true, for exampledeleteButton.disable = true The problem is that when I run the app the button does not look disabled. The only way I can tell if the button is enabled or disabled is by mousing over it: if I mouse over a disabled button nothing happens, if I mouse over an enabled button it flashes blue.
    Is this a bug either FX or Nimbus, or am I doing something wrong?
    Cheers, Eric

    I've found the same problem and a "bugy way"
    if in a Custom node:
    var bts: Button[];
    function setControl(b: Boolean) {
            for (bt in bts) {
                bt.disable = not b;
    postinit {
            Timeline {
                keyFrames: KeyFrame {
                    time: .2s
                    action: function(): Void {setControl(false)}
            }.playFromStart();
    public override function create(): Node {
            insert Button {
                //disable: bind not control
                text: "View"
                action: function(): Void {
                    onView(boxNumber);
            } into bts;
            insert Button {
                //disable: bind not control
                text: "Print"
                action: function(): Void {
                    onPrint(boxNumber);
            } into bts;
                            VBox {
                                layoutInfo: LayoutInfo {
                                    width: 80
                                spacing: 5
                                content: [
                                    bts
    ...Afterall it put an shinny effect on your screen, thank's javafx.control API ;-)

  • Hidding Button Text & Highlight Thumbnail

    I'm fairly new to DVDSP. I would like to create buttons that do not show the text and have the border highlighted when you mouse over (or use a DVD remote arrow buttons).
    I would like to create a chapter index template that I can use build a chapter index. The problem is my chapter names are really long and there is no reasonable way to show them. Thus, I want to eliminate the chapter name text from the buttons.
    The only way I have found to "get it done" seems to create the chapter index, then manually remove the button text for each button. To get the remaining button to highlight, I seem to have to choose a shape like "Picture Frame Rectangle White".
    I could deal with deleting the text, but I don't like any of the border highlight shapes that I have found as the ones that seem to both highlight AND show the still or motion are not what I'm looking for. Something like "L Shape Highlight" could work, if only it was programed to show still/motion.
    Any suggestions would be appreciated.

    When you create a chapter index by dragging a track with markers onto a button on a template, hold it and select "Create Chapter Index" from the pop-menu then select a index template. If you use any of the Apple supplied templates, such as "Brush Index", it creates the appropriate index pages. Each index page has buttons to access the specific chapters. All the buttons on these index pages seem to include the chapter name (as set in the chapter marker) and most include a preview of the video starting at that chapter index.
    The chapter names I assigned are the names of the people in the video clip. When there are 2 or more names, it is too long to fit in the space allotted for the chapter title in the chapter index. It does not make sense in this context to name the chapters something short that could be displayed on the chapter index. Instead, I would like to tell DVD studio NOT to display the chapter names on the chapter index, thus only displaying the button with the video preview.
    The only way I found to prevent the text from showing is create the chapter index, then, delete all the text in each button, leaving only the preview.
    The problem with this approach is most of the button styles change the TEXT highlighting when the button is selected. When there is no text, you can not tell which button is selected.
    As a result not only do I want to turn off the text for the buttons, I also want to be able to have the a highlight show on the non-text portion of the button.
    Let me try to provide a visual for this: you look at the Apple Template "Brush Index". Remove the text from each button. Next, instead of having the text change color in the "Selected" and "Activated" show a colored border around the video preview when Selected or Activated. That's what I'm trying to do.
    I have not found a good way to accomplish this seemingly simple task in DVDSP using the Apple provided buttons and templates. Hopefully I'm missing something and there is an easy way to do this.
    NOTE - this is a trivial task in other programs (i.e. Nero Vision for Windows). The reason need to use DVDSP is this is the only application I have that supports multiple video angles.

  • Noob buttons issues-how to disable

    On the Dark Side, from whence I learned my basic GUI programming, you assign each and every control a name by which you can access that specific control programmatically. This is so not the same in Cocoa. I'm shocked, and certain I am missing some very obvious way to do this.
    I'm doing pretty well with my first Cocoa app overall, but I desperately need to access individually my 6 checkboxes. I need to disable some of them and check others based on files found on the user's computer. I am working on the disabling first. I have found the right method, I believe, -setEnabled: NO. I have created a button class and instantiated it (6 times) in the Interface Builder and I hope made the proper connections for my class and the action (performClick). I don't get any connection errors on compile anymore, anyway. I either have not yet actually got the program knowing which button is which, or not made the connections properly.
    My entire project is in my Public folder on my iDisk, rhiamom is the user name. Could somebody tell me if my issue is improper instantiation of the buttons in my app or improper connections in the Interface Builder? I get a segfault 11 when I try to compile and run with the line :
    [chooseOFB setEnabled: NO];

    Hi--
    You're making it too difficult on yourself. You don't have to instantiate all those checkbox buttons in your nib file in Interface Builder. Basically, Cocoa uses the concept of actions and outlets. I've uploaded an example project for you to look at to my web site.
    To create it, I made a new application in Xcode, then switched immediately to Interface Builder. Here are the steps to build the interface:
    1. Drag out the various interface items from the Cocoa-Controls palette. I selected each checkbox and changed it so that it would allow mixed mode (not just on/off, more about this later). I also change the key equivalent of the "Clear All" button to "Return" so it would be the default button on the window.
    2. Click on the "Classes" tab of the MainMenu.nib window. Scroll all the way to the left until you see an NSObject item in the leftmost column. Select it, then go to the "Classes" menu on the menubar and choose "Subclass NSObject" (or use the "command"-"option"-"s" key combination. You should now have a new class in the second column called "MyObject." Rename it to "MyController". While it's still selected, choose "Instantiate MyController" ("command"-"option"-"i") from the "Classes" menu.
    3. Now, while it's still selected, you want to add three actions and six outlets. "command"-"1" brings up the "Inspector" window with "Attributes" highlighted. Intially, there will be two tabs with "0 Outlets" and "0 Actions" visible. With the "Actions" pane visible, click the "Add" button and add three actions. Rename them to "set1:", "set2:", and "clearAll:." Interface builder will automatically add the ":" at the end, so don't worry if you forget.
    4. Now switch to the Outlets pane and add six outlets. Rename them to "box1", "box2", etc. You can leave the type as "id" for now.
    5. Now, you've created your interface, but you need to connect up the actions and outlets. In your MainMenu.nib window, switch from the "Classes" pane to the "Instances" pane. You should see a blue box called "MyController." Outlet connections go from your controller class to the interface items. Action connections are from the interface item to the controller class.
    So, to connect your controller class to the outlets, hold down the "control" key and click your mouse on the blue "MyController" box and drag to the first checkbox. You should see a blue-gray line with a square at the end on your controller and when you're over the checkbox, it'll say "NSButton" in a grey text box. In your inspector window, highlight the appropriate outlet and click "Connect" in the inspector window.
    If you look at my project, you can click once on the MyController box, do the key combo "command"-"2" to see your connections in the Inspector. Selecting one of the outlets in the Inspector will show the outlet's connection.
    6. Once you've connected your outlets, you do the opposite for the Actions, "control"-dragging from the buttons to the controller icon, then clicking "Connect" in the Inspector window. You might have to choose "Target/Action" from the two tabs there to see your choices of actions.
    7. Once the actions are connected, save your Interface Builder file, select the blue controller icon in the MainMenu.nib window, and then switch to the "Classes" tab. You should see "MyController" selected in the list there. Choose "Create Files For MyController" from the "Classes" menu. If you choose the defaults, it should add two files to your Xcode project. They get stuck in the other "Other Sources" folder. I always move them to the "Classes" folder in Xcode. Note that this is only the tan folders in Xcode. Don't move around in the Finder, or Xcode will probably lose track of them. Again, you can look at my example to see how I moved them around.
    8. Add your code to the pre-made templates in MyController.m for your three actions. Build and try it out. It should work. If not, or I've totally confused you, post back with questions, etc.
    I added code to set the button states (on, off, mixed), as well as the enabling code, to give you an idea of how that might work. Because I wanted to use "NSMixedState," I had to enable that in Interface Builder. Otherwise, the boxes will only show on or off. That's up all the way in step 1.
    I'd suggest you take a look at Aaron Hillegass' Cocoa Programming for Mac OS X. I use it all the time as a reference to the way Cocoa works. I find it invaluable.
    charlie

  • Integration Repository: Dependency Button for Mappings is disabled

    Hi experts,
    we are using SAP PI 7.0. When I open a mapping in Integration Repository and want to display the dependencies, the button (and some others) are greyed out.
    Do you have any idea why this happens ?
    Thanks in advance and kind regards,
    Jürgen

    Hi Surya,
    thank you very much for your reply. A very good idea and I've checked it, but unfortunately it didn't help. The buttons are still disabled.
    Kind Regards,
    Jürgen

  • Movie buttons not highlighted

    I have created and burned an iDVD project comprising several movies, each of which is made up of several movie clips. The title menu has movie names, each of which leads to a submenu containing the clips. When I play the finished DVD on my iMac, I put the cursor over a movie name but there is no highlight. If I click, I go to the first movie. The only way I can select other movies is with menu item Go>Title. When I play it in my DVD player, a small, barely visible arrow appears next to the selected movie name. I want all buttons to be well highlighted when I choose them – is this possible?

    OK, by pointing to themes, you have inadvertently solved my problem! It seems that the crux of the problem lies not in modifying themes but in saving a modified theme as a favourite - at least that's my current theory. I have now saved a couple of standard themes as favourites (to avoid searching for them) and I use only those. Any changes to appearance are done only by importing image, changing font sizes, etc. Everything now works perfectly - thanks.

  • When "Enter" is pressed, all buttons loose highlight

    I have a simple menu with two buttons. Each button is set for the Shape of "SimpleButton". There is a normal, select, and press color state for each button. Each button has it's own asset. When a button is "pressed", ie Enter is hit on the remote, the button goes into press state for a moment, but then both buttons revert to normal state before my track starts. This does not show up when I preview the menu on my computer, only on a set top DVD player (I've tried 3 different ones). I cannot find any info related to this, help would be much appreciated.

    Thanks for the reply. I believe that a yes in correct for your question. The button goes from selected to active, and then for a split second before the track plays, ALL of the buttons go from normal to selected, basically flashing on the screen. Is this normal behavior, it looks very odd?
    Also, this may play a role in this problem, all of the buttons react to the same normal state color setting, whether I've chosen highlight set 1, 2, or 3.
    Is there a problem with me relying on the "SimpleButton" state for all of my buttons?
    The final DVD plays just fine on my computer, just like the preview looks just fine within DVDSP. Put it on a set top and the highlights are bad. Thanks again for any input.

  • Radio Button Widget Highlight Options

    In Captivate 5.5, is it possible for the standard radio button widget (RadioButtons.swf) to not have a highlight color behind the text? I just want a transparent background with text so the master slide background shows. Adjusting the Alpha Channel only effects the radio buttons themselves, not the highlight color.

    Hello and welcome to the forum,
    But I have bad news, having explored this widget a lot, and struggled with that 'highlight color' a lot. I try to put it on a uniform colored background and apply the background color as a Highlight. Didn't find another way.
    Perhaps a tip: do download the enhanced version of this widget, that allows you to control it more (variable can be changed by advanced actions and displayed). It was created by Jim Leichliter (CaptivatePro) and it is FREE:
    Radiobuttons Enhanced
    Lilybiri

  • ADF Button components: How to disable drag and drop [SOLVED]

    Hi everyone
    I need to develop an application which allows not the user to drag and drop button components. I've converted every single af:commandbutton to h:commandbutton, to prevent this behaviour, but a huge lot of other problems arose from this "solution". I'm using JDeveloper 10.1.3.3.0.4157, and I'm a beginner, so please be patient with me.
    Thanks in advance.

    Maybe I've drifted off-topic with this, but I found the way to achieve this. The only limitation is that the change must be done on the client's computer. The drag and drop feature can be disabled by going to the about:config page in Firefox, and setting nglayout.enable_drag_images to false. It can also be done in a more "portable" way by creating a user.js script in the profile folder and setting it from there. Thank you all for stopping by and reading.

  • Download Button in OVI is disable in my N96 mini

    HI,
    From last few weeks when i am trying to downlaod and app from OVi,  its showing download button as disable.
    I search n this forum, but this issue is which is discussed here was related to re-downloading the apps.
    FOr me when even i am trying to install a new app also, download button is disable.
    What can be the issue..?
    how to resolve this.?
    Thanks..

    You can try these steps: 
    To uninstall: 
    Menu> Settings> Application manager> Installed apps> uninstall Nokia Store Client, Nokia Store, and Nokia Store Launcher.
    To install the latest version of Nokia Store, just open Nokia Store from the menu list and choose update. Install the application when prompted. The latest version should be 1.30.(8).
    Check also with Nokia Suite if you are using the latest software on your phone.
    If you think this post is helpful, please click the white star below.

  • Message Maaping Editor - Buttons in Object Toolbar disabled

    In Message Mapping Editor, Object Tool bar buttons are always disabled. I can not use functions like "Data Flow Editor", "Clear Mapping", "Text Preview" etc. The only functions enabled in Object Toolbar are "Select Message" and "Edit Java Sections". All the other functions are disabled. We are working in PI 7.0 SP12 environment. Please let me know if you know how to make these enabled. Thanks in Advance.
    Srihari

    Aamir,
         Thanks for the reply. The Java Version that we are using is 1.6.0_03. Do you think that we need to change it back to 1.4.2?
    Thanks,
    Srihari

  • Buttons 'LIST' AND 'DETAILS' disabled in WEBUTIL_FILE.FILE_OPEN_DIALOG

    When I do 'WEBUTIL_FILE.FILE_OPEN_DIALOG' the explorer is opened and it shows some bittons ('List','Details',etc).
    My problem is that the buttons 'List' and 'Details' are disabled and I need to use them.
    And a question ¿could I hide any of the icons in the explorer?
    Sorry for my English
    Thank you

    Did you find out how to fix it? I need it, too, but looks like no one have answer. Please let me know if you know.
    Thanks,
    Jess

Maybe you are looking for

  • How do I use one audio jack as input and one as output?

    On my MacBook Pro, if I get a USB-headphone connector (to add another audio port), will I be able to set one audio port as input and the other as output? To use the port coming out of the USB jack as a headphone jack, and plug a mic/output device int

  • Copy/paste does not work on my DROID ULTRA

    It is so aggravating when I copy text and go to the message center or text someone and what I copied does paste. What pastes is what I had in the memory before I copied what I want to paste. It is so frustrating

  • How to fetch Billing Document Number

    Hi All, i have Sold to party (kunnr), from this i need to find Billing document number and the corresponding Ship to party. i have used       SELECT vbeln FROM vbpa INTO TABLE gt_vbeln                               WHERE PARVW = 'WE' AND             

  • How to Import entire structure located on a system to a new system.

    Hi Experts, I have been working on this project from one week.Now i need to get that entire project located on that system to another system where in the project can be worked on both the systems simultaneously. I would like to know the procedure for

  • Javascript error "'_jspDir' is undefined" when clicking af:selectInputDate

    I have a af:selectInputDate component inside a af:showDetailItem (af:showDetailItem is inside a af:showOneTab). When the attribute Disclose of the af:showDetailItem set to true. There are no probelms to pop up date picker. But if the Disclose set to