button

Flex 3: How can I change a PopupButton into a regular Button when there's only one menu item available?

Hi there. I have a PopUpButton that only contains 2 actions. Both actions are complete opposites of each other and switches a boolean property on an object from true to false or false to true. To avoid redundancy, I've only displaying one action at a time. So, if the property is true, the action to change it to true is not shown. ...

UINavigationController Right button

I am unable to set any property of parentController (which is always a UINavigationController in my case) from child views. e.g. I want to add a button on the navigation bar using following code: UINavigationController* parentController = (UINavigationController)self.parentViewController; UIBarButtonItem *addButton = [[[UIBarButtonItem...

To build a `Delete` -button efficiently with JavaScript / PHP

Which of the following code is better in building a delete -action for removing a question? 1 My code <a href='index.php?delete_post=777>delete</a> 2 Stack Overflow's code <a id="delete_post_777>">delete</a> I do not understand completely how Stack Overflow's delete -button works, since it points to no URL. The id apparently can ...

To understand a line of jQuery

What does the following line mean? jQuery.post('/codes/handlers/delete_a_question.php', { question_id: jQuery(this).attr('question_id') } Context in HEAD jQuery('a.delete_question').live('click', function(){ jQuery.post('/codes/handlers/delete_a_question.php', { question_id: jQuery(this).attr('question_id') }, ...

supressing RealPlayer download video button

If RealPlayer is isntalled on the user machine, every time the video is played, the button will show up sugegsting the user to download video to a local drive. How can we supress this button so that when the video is played on our web page, the user won't see it? ...

working with buttons in a grid - GWT

hi all, i am using GWT 1.6 and i am pretty new to it. my question is about the use of a button as part of a grid row. how can the onClick method that the button has refer to the data in the grid? how i can make the button be aware to its raw and the other data that exists on the same row ?? thanks Me ...

flex3 button state

Hi there, I would like to change the state of a flex button component with actionscript (on the fly) to present it as mouse-down/mouse-over/mouse-up, in order to use the css skining with out the existence of the mouse cursor. I tried to do this with button.currentState but this doesn't work. thanks in advance ...

grids and buttons in gwt

hi all, i have a grid of data and buttons, how can i refer to the data in grid or the row that was click in the context of the button? meaning: the button clickHandler receive a clickEvent object and nothing else. so how can i get to the table data from it? thanks me ...

How do I reference the Toggle Button Circle and override vertical alignment of the Aero theme Expander?

Currently, I am referencing the Aero theme in my App.xml file. In the main.xml file, I am using expanders to display the content in a resizable width app. (For this example, I limited the width to 500) The expander header content generally will be short, but it allows for up to 500 chars. Depending on the window size (600 pixels by defa...

UITabBarController/UINavigationController missing title

I have a UINavigationController and UITabBarController visible at the same time. Both the tab bar buttons and the navigation bar take their text from the title of the currently active view. - (void)viewDidLoad { [super viewDidLoad]; self.title = @"View Title"; However I want the different. In fact I'd like the navigation con...

Vista style window Close button in XP

How can I create a a custom button that looks and feels like Vista close button? Can any one have a template? ...

asp: LoginStatus control as a button, not text

Hi, I'm pretty new to this, infact this is my first post. I'm using Visual Studio 2005. On my .aspx page, I have a 'loginStatus' control so the user can logout of a page which works well. However the 'loginStatus' control is not a button, it's text ("logout"). Is it possible to make this into a button? Here is the line of code: <asp:L...

To disable a send button if fields empty by jQuery

How can you disable the send -button if there is one or more input -fields empty? My attempt in pseudo-code if ( $("input:empty") ) { $("input:disabled") } else // enable the ask_question -button I have been reading these articles without finding a right solution Official docs about empty: this is like not relevant because ...

How do you recognize drag gestures

Hi, I have several buttons in my view built using IB. Each button triggers a short audio sound. I want to be able to drag my finger over them to trigger them... just like you are dragging your finger over piano keys (don't worry I am not making a piano app) I cant figure out how to recognize a touch outside the button and then inside ...

Glossy buttons in wxPython?

This is how they look in vista. They are glossier than the normal buttons and when the mouse is not over them they are flat. They have a correspondent version on Windows XP. Is there a way to get them using wxPython? ...

How to make custom buttons in wx?

I'd like to make a custom button in wxPython. Where should I start, how should I do it? ...

how to create a Non-rectangular button with delphi?

hello all Friend... How to create a transparent Non-rectangular button with delphi? I Need Urgent Help......... ...

Override java.awt.Button

Hi, I am trying to override default java Button behavior and trying to add additional label to a button. I am new to java GUI and thought that overriding paint method will solve my problem, but when I do that and draw additional label in Button paint method it looks fine, but my label disappears if I click on that button in my applicati...

How to incorporate a g:link into an ordinary button?

I'm working on a grails application and I've kept looking for some solution to my problem for the past 15minutes - I guess, there's an pretty simple solution to this... The point is, I have a view where I have a g:link tag - it works fine, but the visuals are kind of ugly. Therefore I want to disguise that g:link thingy with a normal bu...

Disable/Enable buttons. Flash AS2

Flash CS4, AS2 I am making a Flash tour. I have 3 sections: About, Rentals, Neighborhood. All the sections are within MCs on the same Frame. I am using conditonal statements on the Nav buttons to turn the visibility on/off in order to navigate the tour. However, now when the same button is pressed, the MC toggles on/off. I want to dis...