button

Dashcode newbie question: Change a button's label programmatically

Hi all! I'm new to Mac OS X Dashboard developement. Now, I have a button with id b_start. When that button is clicked, I want the label of the button to change to "Round". Now I have tried these, but none of them work: document.getElementById("b_start").label = "Round"; document.getElementById("b_start").text = "Round"; document.getEl...

GTK: create a colored regular button

How do I do it? A lot of sites say I can just call .modify_bg() on the button, but that doesn't do anything. I'm able to add an EventBox to the button, and add a label to that, and then change its colors, but it looks horrendous - there is a ton of gray space between the edge of the button that doesn't change. I just want something that ...

How to create a table view cell with buttons inside?

I want to create something like the one on iTunes App, where there is a button inside the table cell and when you press the button it play a sound. I tried searching the web for this tutorial but I can't find one. ...

How do I prevent button surround from displaying in Java?

Hello, Sorry for the odd choice of words for the title, however, "border" seems to be the inappropriate term. While it is true that the visible line surrounding an icon in a JToggleButton can be made invisible by using setBorderPainted(false), the same is not true for JCheckBox and JRadioButton. I can not use the JToggleButton and the...

I put a button on a table view cell that play sound when they are pressed but...

I put a button on a table view cell that play sound when they are pressed, when I press the button it stop the sound. But pressing another button on another cell it doesn't plays another sound while the other still playing. I hope that when another button is pressed in another table cell it will stop the playing sound. Here is my code ...

android onclickuplistener for an imageview button?

Hey all. I'm trying to use an imageview as a button, and I want to be able to change the image whenever the button's pressed. I have an OnClickListener set, but what do I have to do about when the user's finger is no longer down, over the button? How do I revert to the original image? ...

how to Creating buttons in a running application (runtime) plus its onlick event funtion using C#?

I want to create buttons or list of items on the basis of number of items in my database or from list of items in my array and for each item create a onclick function for either buttons or any list of items ...

Graphic Button States in C# Windows Form

I'm building a windows form in C# with VS2008.I have about 32 buttons, I've placed an image over the default buttons, but I want to have a Hover/Up/Down effect for each of these buttons, and I can't seem to find this information anywhere. Perhaps I'm searching for the wrong terms, any direction is appreciated. ...

windows.form c# moving between forms

I am designing an installer interface for a already written program. It is my first windows.form. I see three approaches to solving my "problem" of needing multiple "screens". I can add all the labels/buttons/interface, and then hide/show them at events. Or I can close and open a new windows? Or do I somehow load my next form into the wi...

JavaFX ButtonSkin anomaly

In the following code, why isn't the button text initially displayed when ButtonSkin (from com.sun.javafx.scene.control.caspian) is used? In the following code (running WinXP, NetBeans 6.7.1, JavaFX 1.2 , JDK 1.6), when ButtonSkin is used, the button text starts as blank. After the slider is used, te button text is displayed. to I...

WPF - How to create image button with template

I am trying to create a button which has 3 images: a Normal image, a Pressed image and a Disabled image (I will use these for creating up/down arrow buttons). I believe the correct approach would be to derive from Button and use a Template and set triggers to change the image. I have 3 dependency properties, one for each image. The im...

How to programmatically add image button in Excel 2007?

In a vsto project, how to add an image button to a worksheet with managed code? ...

Setting a WPF ContextMenu's PlacementTarget property in XAML?

<Button Name="btnFoo" Content="Foo" > <Button.ContextMenu Placement="Bottom" PlacementTarget="btnFoo"> <MenuItem Header="Bar" /> </Button.ContextMenu> </Button> gives me a runtime error 'UIElement' type does not have a public TypeConverter class I also tried <Button Name="btnFoo" Content="Foo" > <Button.ContextMen...

Pushing a New View w/o NavigationController

I'm missing something. I'm trying to bring in a new view after pressing a button on the first one. Apparently the following code only works in certain situations: SecondViewController *controller = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil]; [[self navigationController] pushViewController:controlle...

Flash AS3 - Button on stage will not hide if I change the label - bug or missing something??

Hi, OK - weird problem which happens each time - and so I'm thinking I must just be missing something very obvious. If in Flash CS3 I drag a Button component to the stage, and in the Document Class I hide that button with visible = false; - it works fine. However, if I change the label of that Button from it's default 'Label' to anythin...

How to delete buttons from a XML driven flash template from template monster

I am trying to delete some buttons from a XML drive flash template from template monster. After I delete the button from the XML file I can still see the button in flash and it has the title "Undefined". ...

WPF -- override style colors, best practice

Hello, I have a style for a GlassButton. The problem is that the gradients are built in the style and the colors are set in the gradients. Now, I have a framework for a button that I like but I need different buttons to be different colors. Is there any way I can "expose" one or more of the color properties from the Style to override...

Radio Button Error Style

I have implemented an error style for textboxes using the following code. This sets a tool tip and puts a nice error image to the right of the textbox if the element reports an error status via an IDataErrorInfo interface: <!-- Set error style for textboxes --> <Style x:Key="txtBoxErrStyle" TargetType="{x:Type TextBox}"> ...

jQuery: Make a Button Visible When a TextBox Has Contents

Given: I have a textbox and a hidden button. Wanted: When the textbox is neither null nor empty, show the button. When the textbox is null or empty, hide the button. Question: How should I do this? Should I use jQuery and bind to the textbox's keyup event? ...

Back Button of the Firefox Browser working after double click

Hi, My application is in Perl. Here, for some pages the request is getting submitted twice, that is causing browser's back button history. I am able to see two requests for the same page in the back button's history. Hence, not able to go back in a single click. This issue is coming only for FireFox and not consistent. Can you please su...