button

Java: Problem using setText() method with Button

Hello all, I'm new to java and I'm trying to swap out the text on a Button I've created. The code for my main class is as follows: import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.*; public class TeamProject extends Applet implements ActionListener, MouseListener { char[][] charVa...

How to make own file upload using HTML and javascript

Hi friend, I need to make new own file upload field using HTML and Javascript since Built-In file upload not showing full path of the file I need to make it similar to file upload by using button and textbox please help to solve this problem ...

Webforms buttons disabling randomly and intermittantly

All over my application, buttons, link buttons and image buttons seem to become disabled. A few refreshes of the page, or a reload, or sometimes it requires a restart of my browser (This occurs in all browser) will re-enable the button. I haven't got a clue how this is happening and it is driving me, and my clients nuts. I am assuming...

Why does returning false in they keydown callback does not stop the button click event?

I have a button and the following javascript routine. $("button").keydown( function(key) { switch(key.keyCode) { case 32: //space return false; } } ); as I understood it, the return false; would stop the keypress from being processed. So $("button").click(); would not be called. For other keyCodes this works as expected. For...

Graphic added over button is my blocking MouseEvent why?

Hi everyone my problem today is I have a couple of buttons that slide up and down, when in the up state I add an X graphic to symbolize a a close button. However the X graphic seems to be blocking my button action. I have an example in the movie I've been working on >> here <<. There are 2 movies here, the big one if you click either ...

Disappearing submit button in IE7

Greetings. I'm having troubles with the following legacy code. It's fine in everything except IE7, where the submit button disappears. Space is still left for it on the page, but it doesn't show. I've tried various ways of forcing hasLayout, but without success. Any suggestions? XHTML (XHTML 1.0 Strict DOCTYPE): <div id="headerFunction...

Items without regions in Oracle APEX?

Hey all, I'm currently building a web form using APEX that is losely modelled after a "wizard" style. That is, I have forward and back buttons for most pages, etc, etc. The problem I have is that it seems all my buttons need to be part of a region and that region needs to located in a pre-determined section of the page. I would prefe...

winapi CreateWindowEx -> create button with user system styles?

I want to make a button that looks just like the OK button when you go My Computer -> Help -> About Windows. I am creating a button like this: hButton = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("BUTTON"), TEXT("Text"), WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 10, 10, 30, 30, hwnd, (HMENU)IDC_MAIN_BUTTON, GetModuleHandle(NULL), NULL); ...

C# Combobox Selection.

I am populating a combobox dropdown with node fields from an Xml document. I have that working. Now I have the text in the dropdown menu of the combobox. I want to be able to press a 'Go' button and use the selected text. What are the commands please? ...

Android Dynamically Created Button: setOnClickListener doesn't work!

onClick never fires! Why not? Please help. for(int i = 0; i < 12; i++) { String title = "Button" + i; Button sliderButton = new Button(this); sliderButton.setText(title); glideMenuTray.addView(sliderButton,100,40); sliderButton.setOnClickListener(new View.OnClickListener() { ...

Adobe Flex: Word Wrap in Button Label

The standard Flex button does not allow the Label Text to word wrap. I read in the internet that there are some undocumented ways to handle this but I did not get them to work. If somebody could post me a small example would be great! ...

PHP multiple radio buttons

how can i process all radio buttons from the page? <input type="radio" name="radio_1" value="some" /> <input type="radio" name="radio_1" value="some other" /> <input type="radio" name="radio_2" value="some" /> <input type="radio" name="radio_2" value="some other" /> this buttons will be added dynamically so i will not know the radio ...

gridview commandargument on buttonfield pagination used

Hello all, I am using c#.net I have a gridview which needs to contain a 'Use' button (appointmentId set as the commandargument). Source Code <asp:GridView ID="resultsReturned" runat="server" AllowPaging="True" AutoGenerateColumns="False" EnableSortingAndPagingCallbacks="True" OnPageIndexChanged="resultsReturned_PageInd...

VB.NET Using Wizard, Changing selected Side Bar (Button) color

I have a web application where I built a wizard, going from panel to panel. Besides using the Next, Previous buttons, one can use the Side Bar to select what panel to go to. The problem is that while the selected Panel's side bar button is Highlighted / Bolded, it is barely discernable to my client. Not only do they want the button ...

C# DateTimePicker Custom Format

How do I set a DateTimePicker to out put dd/mm/yyyy. At the moment it is giving me the day, date, month then year. Thanks. ...

Flex: changing Flex component styles in AS3

Hi, in MXML, there is a Button class which you can instantiate like so: <mx:Button id="something /> but what if you wanted to dynamically build this in AS3 and add it to the Flex app dynamically, without the use of components (just AS3) and then modify Flex's styles, for example, here you access the Button's properties and set them: ...

C# Array of Buttons.

How do I build an array of buttons in a Winforms application? What I am trying to do is this: I have a lot of buttons in a sort of calendar arrangement, that are indicating time slots. IE: Monday0700Button, Monday0730Button, Monday0800Button, and so on in 30min intervals. I have a xml database, where one of the fields for appointments ...

[jQuery] Next and Previous Slide Button Functionality i++, i--

Hi Ya'll, I had a great experience asking a question last time and thought I'd come back for more help. You guys are wonderful. Thank you in advance. I am working with a featured post slider that advances through 4 posts automatically. I would like to add next and previous buttons. I know that I need to attach some kind of .click()...

How to add a click handler to a WPF Button in C++/CLR?

Hi ! In C#, I can do (*): Button b = new Button(); b.Click += ButtonOnClick; : void ButtonOnClick(object sender, RoutedEventArgs e) { // do something } But in C++/CLI I can't do: Button ^ b = gcnew Button(); b->Click += ButtonOnClick; : void ButtonOnClick(Object ^ sender, RoutedEventAr...

animated swap position of two buttons

I am trying to swap the position of two buttons. my swapping code looks as below. private void exchangeButtons(Button btn1, Button btn2) { // Create the animation set AnimationSet exchangeAnimation = new AnimationSet(true); TranslateAnimation translate = new TranslateAnimation( Animation.RELATIVE_TO_SELF, btn2.getLeft()...