button

radio button request syntax in view

Hello, I'm trying to write an html form, that includes a radio button and keyword search. The code is here: http://dpaste.com/115844/ The django view is not recognizing this syntax: pubtypeid = request.GET['pubtypeid'] Can someone please help me write this correctly? Thanks, Ana ...

Button image too far from top of button; too close to bottom of button

I'm working on a Windows Form in VB.NET 2005 and I would like to have some buttons with images (I'm talking about the plain, vanilla System.Windows.Forms.Button). I have everything set up the way I want it but the images are displaying too low on the button, such that the bottom of the icon is almost right on the bottom of the button an...

How to disable a Perl/Tk window close ('X') button on Windows

Hi, Is there a way to make a Perl/Tk window's close ('X') button disabled? I know how to ignore clicking it using the technique described here, but I would much rather have it disabled. I'm using Perl/Tk on Windows. Thanks, splintor ...

WPF PresentationSource.FromVisual Element within Style

I have custom Bitmap object that is within a styled button. I am trying to call PresentationSource.FromVisual within the Bitmap object however it is returning null. How would I get the Parent element (in this case a Button) from within the child Bitmap object. Is there standard code to get the styled parent? For example the WPF style...

How do I pass a specific viewmodel object in a button's CommandParam?

I have a simple WPF program using the Master-Detail UI pattern, where the Detail shows the currently selected item of a collection in the Master pane. I'm using MVVM, and each XAML page is backed by a ViewModel object which is set as it's DataContext. Now, I want to add a DELETE button in the Master pane to delete from the master list ...

Developing a custom on-screen display application for a laptop.

I would love to create a custom on-screen display app for my laptop, seeing as the manufacturer-supplied one is utter garbage. I'm out to write an app that will show things such as volume control, screen brightness, wireless antenna status and so forth. I'm not sure what info I'd need to know to begin creating something like this (inte...

Google translate breaks button that makes javascript function call

Hello all, I have site that works fine but when i put it through Google translate my button that initiates a javascript function doesn't work. However, some other Javascript calls via links work. Whats wrong? Example translation Thank you for any help. Update The sister site is even worse, the whole left side goes white?? Wait for ...

Weird trouble - cannot assign javascript to linkbutton

I seem to manage the same task many times beforehand; but currently I got thoroughly stuck at the simplest thing and it have made mequite irritated I need to assign javascript to ASP.Net linkbutton (or hyperlink, does not matter) What seems to be easier? Billion times I did it with code like like that //lbHeader.Attributes.A...

Flash toggle button

I need a button in Flash/AS3 that toggles between on and off. So I was glad to see that the Button class has the toggle property that lets me have that behavior. I was less happy to see that what I get when I make something a "button" in the Flash file is an instance of SimpleButton class, which does not have that option. Is there a way...

Can you tweak the left and right padding on an HTML input button?

The longer an input button's text (value) is, the wider the left and right padding seems to get (IE). Explicit CSS padding seems to have no effect. Does anyone have a hack for this? ...

Extending WPF Button to store data in a new property

I want to extend a WPF button to store some extra data, in a similar way to the current "Tag" property. Are attached properties the way forward? The data I want to store will be a URL Link string, for example I would like to be able to do something like: <Button Tag="BBC World News" URLLink="http://www.bbc.co.uk"/&gt; Can anyone hel...

Flex 3 togglebuttonbar word wrap

How do you word wrap the text in the buttons that are part of a togglebuttonbar? I have the following structure: what i find is that the words on the button text just continue and there seems to be no wordwrap setting on any of the various components. Any thoughts would be very welcome. Thanks, S ...

Android MenuItem Toggle Button

Hello, In my Android application, I want a setting to be toggleable in it's menu like the Dialer app does for speaker and mute. You can see a picture below: You see how the Speaker, Mute and Hold options are toggle buttons - you can tap them again and they will toggle the green color. They may do this in a custom way, but I suspect ...

Styling an input type="file" button

How to style the input type="file" button. ...

java swing close window without exiting app

I have a little frame where I ask user & password. This frame will be opened clicking over a button in a main window. Then I have two buttons: ok and cancel. When I click on "cancel" button, I need to close this frame without exiting the app. How can I do that? ...

Assign Mouse Buttons in Visual Studio 2008

Does anyone know how to bind extra mouse buttons to commands in visual studio 2008? There used to be a "powertoy" that let you do it for visual studio 2003, but I can't find an equivalent for 2008. ...

Is it ok not to have a button for a search box?

I was wondering if it was ever ok not to have a submit button (Ok, Go or Search for example) near a search box in Web pages. I know that hitting enter is much faster and that it will perform the search. However, is it an accepted convention for the average non tech savvy user or only for the tech community? For example, the search box...

ASP.NET: Button Outside UpdatePanel Fails to PostBack

I have a donation form that contains an update panel that contains a dropdown for predetermined amounts plus the "Other" option". When "Other" is selected the dropdown has triggered the partial postback and renders the update panel with the additional "Other" textbox for the amount. Outside this update panel I have a additional server ...

WinForms Accept Button Annoyance

I have a base panel class that has (among other things) three buttons. I use subclasses of this base class in two different config dialogues. Both dialogues have an OK button set as the accept button. In one of the dialogues, if I click one of the buttons in the base class, focus immediately returns to the OK button, so pressing the ent...

How to programmatically add a toolbar button (and OnClick handler) to Excel

How do I programmatically add a toolbar (with buttons on it) to Excel (2002 or later)? When the button is clicked I want a handler to create my COM object and call a method on it? ...