button

track tab history plus links on tabs for back button functionality?

Hi all, I've got a page with fg.menu and jquery UI tabs that works fairly well. I've got custom handlers to load menu links into the selected tab. The tabs are all ajax-loaded and the contents also have their own links, which I've handled as such in my tab options: var tabOpts = { select:handleSelect, event: 'change', load: func...

why does my android spinner display the radio button in the textview?

i have a spinner with an arrayadapter that is dynamically managed. when it gets displayed, the spinner text also displays the radio button. how do i get rid of this radio button? NOTE: i'm not talking about the radio buttons that appear in the list that is displayed when i select the drop down on the spinner. here is a pic of what it ...

Black WinForms button.

What is the most straightforward way to add a black button with white text in a WinForms Application? Simply setting the BackColor to black and the ForeColor to white the button border remains as before. Do I need to subclass the System.Windows.Forms.Button class and take control of the OnPaint() drawing? Thanks. ...

Disable Home Button (HTC HD2 - WM 6.5)

Hi, Currently I'm developing a software for HTC HD2 (WM 6.5). I don't want to allow user exit from my app unless they have authorization key to do that. my approach is disable all hardware button which may close my foreground application. There are some solutions to disable hardware button, but none of them can disable home button. I'v...

get previous selected dropdown item

i have the following code where i have a dropdown list (with class="addToList" and followed by a button (Class="addtoButton"): When i click on the button, i want to grab the current selected value and text from the previous dropdown list. $(".addToPortalButton").live('click', function (e) { // grab the previous dropdown list value and...

Java Focus Traversal to newly disabled button

Hi, I have a problem with the focus traversal system in Java. When I tab between components in a pane in my application everything works fine Tab moves the focus to the next component. Some of my components perform validation on loss of focus, if the validation returns errors then the screens save button is disabled. My problem occurs...

How to add a button to a window that I haven't created in windows using JNA (user32 or whatever dll)

Hi, I have been trying to do the following thing in windows, using JNA: add a button to a window that I haven't created. First, however, I would like to create a WNDPROC listener so I know what messages are being sent. The problem is that messages are not being sent/received in the message pump, while they should be (because windows co...

How to Enable/Disable asp.net button when a dropdown list selected value changes?

Hi All, I have a couple of dropdownlists and a button.when a user selects an item in the 1st dropdownlist,the 2nd dropdown is programmatically bound to a set of items(using an ajax request) depending on the value selected in the 1st dropdown.Then the user will have the ability to choose an item from the 2nd dropdown and click on the but...

show dialog yes/No before leaving the app via Back button

If user repeatedly presses back button, I need a way to detect when they are on the very last activity of my task/app and show "Do you want to exit?" dialog befor they return to Home Screen or whatever previous app they had running. Its easy enough to hook onkeypressed(), but how do I figure out that this is a "last" activity in the tas...

Capture two physical button clicks

Hey guys, How would I capture two clicks of any of the physical buttons (including the optical button)? Something like what QuickDesk does with the two clicks of the Home button. Thanks ...

CSS: I'd like my links to look like buttons, but they overlap

In order to make all my links looks like buttons, I've done that in my CSS: a { color: #06A; text-decoration: underline; margin: 10px 20px; padding: 10px 20px; /*background-color: #EEE;*/ border: #BBB solid 1px; } They look fine, however, they seem to mix-up, that is they are being positioned as if they had no padding or m...

AS3 Button stops working after random amount of click

I have a movieclip being used as a button. After a random amount of clicks the button stops working. In other words, the mouse will become a hand when hovering over the button but no clicks are registering to fire the function. I've even clicked it 40 times and it will work but then suddenly, bang!, it stops working. Heres the function t...

System.Windows.Forms.Form Opened As Modal Dialog Closes When Button Is Pressed, Even Though Close() not called./

I'm writing a Windows application that basically runs in the background with a notification icon to interact with it. The notification icon can do basic things like exit the application or show information about it. It can also launch a modal configuration dialog. The code that creates the dialog is pretty straightforward: using(var fr...

Using MPMoviePlayerController - Can we Add Custom Buttons?

Hi Guys, I am creating an app that plays a video. This video is promotional material for a company. It details some of their products. What I want to do is create a button that can "jump" to a specific product. If you click the Product A button, you can jump to the section of the video about Product A. I've got a basic (and I mean basic...

How to make :active state work in IE?

I have a button in my html form and need to change it's background image when it is clicked using css. it works perfect in FF but it seems that IE doesnt support :active state. Here is my code: HTML: <button class='button'>Click Me</button> CSS: .button { width: 118px; height: 33px; background: url(/images/admin/btn...

How to add parameter in the addTarget's selector?

Say I have a function like this: -(void)activateDict:(NSNumber*)dictID{ } Then I add a action for my button: [aBtn addTarget:self action:@selector(activateDict) forControlEvents:UIControlEventTouchUpInside]; There is a parameter in the activateDict function, which is (NSNumber*)dictID, so when I add the action to button, how can ...