button

How to make slider labels clickable [Flex 3]

I have a simple slider, with only 3 options. It seems strange to force the user to drag the small thumbnail on the slider, when it would be a lot easier to click one of the 3 actual labels by the side of the slider. Does anyone know how to accomplish this? ...

How can I build multiple submit buttons django form?

I have form with one input for email and two submit buttons to subscribe and unsubscribe from newsletter: <form action="" method="post"> {{ form_newsletter }} <input type="submit" name="newsletter_sub" value="Subscribe" /> <input type="submit" name="newsletter_unsub" value="Unsubscribe" /> </form> I have also class form: class Newsle...

Get button focus - MFC

Hi, I have a VC++ MFC dialog application and in my OnTimer function I am just trying to determine which button in my dialog currently has focus. Here is some psuedocode of what I am trying to accomplish.... CDialog::OnTimer() { CButton *btn = GetButtonOnFocus(); int btnID = btn->GetDlgCtrlID(); } Any help would be great...

Microsoft guidelines for creating WPF "gel" buttons

Anyone know where I can find the Microsoft guidelines for creating WPF gel-type buttons? I'm not sure if "gel" is the correct name for this effect but I have heard many people use the term. If MS doesn't have a guideline, do you have some other standards or guidelines for creating these buttons? ...

WPF: Button ControlTemplate + Spacebar = exception?

Hello, I've thrown together a template in Expression Blend for a button, and it works alright - until I tab over to it and press the spacebar. I get the following error: InvalidOperationException '[Unknown]' property does not point to a DependencyObject in path '(0).(1).[0].(2)'. The code is as follows: <ControlTemplate x:Key="E...

Stupid Facebook Connect question about customizing the share-button

I really hate asking about anything retarded as Facebook Connect on SO, but their own development forums are horrendous. We're implementing a Facebook share button using this: <fb:share-button class="url" href="http://oursite.com/"&gt;&lt;/fb:shared-button&gt; This is documented(poorly) here: http://wiki.developers.facebook.com/index...

How do I add code to the exit button in a c# form?

I'm using Microsoft Visual C# 2008 Express. In my main form, there's that X button to close the form at the top right. How do I add code to this button? In my menu, I have an "Exit" item and it has code that cleans up and closes my databases. How do I add the same code to this button if the user chooses that as a way to exit? Thanks...

C#: Get which button was pressed in an array of gtk#-buttons?

I have an array of buttons which shall all call the same method but with the index of the button as an argument. using System; using Gtk; public class Input : Gtk.Window { private Gtk.Button[] plus; public Input() : base(Gtk.WindowType.Toplevel) { plus = new Button[10]; [...] for (uint i = 0; i < 10; i++) ...

Prototype button onClick

How can I have every button on an html page perform the same function using prototype.js? I used the someElement.observe() method and it worked for one button. But how can I do this for every button on the page without coding separately for each button? ...

How to prevent buttons from submitting forms

In the following page, with Firefox the remove button submits the form, but the add button doesn't. How do I prevent the remove button from submitting the form? <html> <head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> function addItem() { var v = $('form :hidden:last').attr('nam...

How to find a particular position of a selected item in Listbox making the Buttons Enabled in C#?

Hi, I have a list box with items like A B C D E. I also have two buttons Move UP and Move Down with it. i have already made their properties false in the property window (F4). Now i want when a user selects B or all the items below then my Move Up button should get enabled. It should be Disabled for A item In the same way my Move D...

WPF ListBox with only Button for ItemTemplate

Hi, I am binding a list of items to a ListBox, I need some help with XAML to be able to display a button for each item. I can display a button fine, however the button takes on the length of the content text. I want my button to consume 100% of the ListBox width. I also need to stop the row highlighting for the ListBox, as the button ...

Images for .NET buttons

I have an application which will support several standard operations play stop pause undo I'd like to have images for those buttons. I've been searching through vs2005 image library but the images there are non consistent. For example the play button (playhs.bmp) is green while stop (stophs.bmp) is blue. Also I haven't found an und...

Is it possible to change the postback value of HTML button element on IE?

Hi, I know there is already another post on StackOverflow (here) but it doesn't exactly address my issue. I would like to use the HTML button element () on ASP.net wherefore I've created a custom server control for rendering such. The reason for using a button is mainly to be able to create an image button. You could now argue to use CS...

Why are my GenBitmapToggleButtons killing my tooltips?

I've encountered some weird behavior I was wondering if anyone has seen/has an answer to. I want to use a wx GenBitmapToggleButton on my application (running on a Linux system with Ubuntu 8.04), but the button seems to be killing my tooltips. When I use the GenBitmapToggleButton the tooltips (all over the GUI, on all buttons and all pan...

iPhone SDK 2: Programmatically adding an Info Button

I am trying to add an info button to my app to provide custom help. Instead of adding the button to the nib and linking the event (touchUpInside) to the controller, I decided to add the button programmatically. The button shows up. When I add the target event handler to be executed when the button is touched, it does not work. That my ...

iPhone location button

Ya know the little location button in the lower-left corner of the Maps application? Does anybody know where I can find that? I looked in UIButtonType and UITabBarSystemItem but came up blank. I'd prefer to use a system image or a system something-or-other, to help ensure consistency with other system functions. ...

How do I bind the enabled binding of a button to whether or not an NSArrayController has a selection?

I want to bind the enabled state of an NSButton to whether or not an NSArrayController has any selected items. How do I do this? ...

A button with BS_ICON style does not have Windows Theme applied to it under WinXP.

When making a button with the BS_ICON (or BS_BITMAP) style under Windows XP, the button does not have the current Windows theme applied to it. It just looks square like with the "Classic" theme. Why is this? I'm using Visual C++ 2008, and the application is not using MFC. ...

Setting Vertical-Align for a button

I have a in a user control. In that, I have added a HTML table in which there is a button. I need to have the buttons aligned to the bottom of the cell. I tried setting the property in the CSS file the style does not gets applied. What is it that I am doing wrong? ASCX file: <link href="CSSFile.css" rel="stylesheet" type="text/css" /> ...