button

C#: Getting a button to display a preset form

I am quite new to C#, so forgive my ignorance... I have (currently) 2 forms, one that needs to call the other. In other words, by clicking a certain button in Form1, Form2 needs to "pop up", like a dialog box. I know I have to get a reference in both forms, but I'm not entirely sure how to do this. What is a decent tutorial/beginner site...

Taking use of laptop custom buttons

I have a Lenovo Y550 laptop which has a nice looking touch sensitive strip with led lights on top of keyboard. The usage for this is however quite useless (it can be used to start 4 different Lenovo programs) so I started to think if I could program something of my own for it. However I don't have any experience with this kind of thing....

Add an SWT widget to a swing JPanel

I understand that this may be impossible, but I would sure like to know if somebody has accomplished this, or have a work-around. I have an SWT Button and am wanting to overwrite an existing JPanel's contents with just the Button being present. My current strategy is to have the SWT Button as an initial null field and then set it throug...

How to create button without icon in CKEditor

When I create toolbar button in CKEditor 3.0 with following code I need to uncomment icon property to get button visible. Otherwise space is occupied but no label is shown. When I hover over it I get caption popping up. editor.ui.addButton('customButton', { label: 'Custom Action', //icon: this.path + 'ima...

Call Row_command event from javascript

Hi I am adding some rows to the gridview using javascript Now I have a image as 1 of the columns and I can succefully place the image thorugh javascript I have written a row_command event on the server side for image click This does and fetch something from database My question is how do add click event to image when I add rows...

Cocoa Button that will light up with mouse over

Is there a flag that can be set that will cause a Cocoa button to be highlighted when it is moused over. I need to this programatically with objective C on OSX. ...

Android: ListView elements with multiple clickable buttons

I've a ListView where every element in the list contains a TextView and two different Buttons. Something like this: ListView -------------------- [Text] [Button 1][Button 2] -------------------- [Text] [Button 1][Button 2] -------------------- ... (and so on) ... With this code I can create an OnItemClickListener for the whole item: ...

PyQt: translating standard buttons

How can I easily translate standard buttons (Yes, No) from QMessageBox? I can't use self.tr on those arguments, so I would like to achieve it in some other simple way. Do I have to use whole translation system? ...

IF Statement Seems To Work Fine On Simulator, But Not On Device!

Hi Guys, Ok, the problem is that when my app runs on the simulator it seems to work fine. On the device, however it does not update all the labels. I think the error is somewhere here: - (IBAction)buttonclick1 { self.startDate = [NSDate date]; double value = [self Level]; double value2 = [self Level2]; if ((va...

Styling QPushButton with CSS?

I'm trying to create a QPushButton that's just got an icon and a constant background color. So that I can swap out the icon when the user clicks it, without any other apparent effects (this is for a roll-up/roll-down feature). I've added an entry like this to my stylesheet: QPushButton.ToggleButton { background-color: #8af; } and...

In emacs how does the "hyperlink" in the *Help* buffer work?

I'm trying to figure out how the "hyperlink" works in the *Help* buffer (so that I can implement something similar in the output of M-x compile). Here is a more detailed description of the behaviour I want to imitate: M-x describe-function find-file opens up a *Help* buffer. The first line of this buffer (for me) shows: find-file is an i...

ruby on rails on click events

I am so sorry if this question seems too easy but I can't seem to find it anywhere. I am creating a ruby in steel project. I have created a html.erb and rb file in a vs project (ruby on rails). My problem is the following: In my html1.erb file I have created a text box and button: <p> <input erb:blockvar="erb:f" erb:method="erb::myName...

Back button loop with IFRAMES

In my (school) website we use Iframes to display class blogs (on blogger). This works well EXCEPT if the user then clicks on (say) a photo inside the iframe. Blogger (in this case) then displays the photo in the whole browser window and the back button loops; that is if the back button is hit, the browser (IE, FF, Chrome) stays on the ...

C# - Populate Data Structure At Runtime With References To Buttons Added To TableLayoutPanel At Design Time

Hello folks, I am using Visual C# 2008 Express edition. If at design time I have a form [myMainForm], to which I have added a TabControl [myTabControl], and myTabControl has a single tabPage [myTabPage], and to this tabPage I have added a tableLayoutPanel [myTableLayoutPanel], and to myTablelayoutPanel I have added ten buttons (button1...

Add UIActivityIndicatorView into UIBarButton

How do I add a UIActivityIndicatorView spinner circle into a UIBarButton? So that when a user taps on one of those buttons on the navigation bar, they see a spinner while the loading takes place? Thanks. ...

Removing text from HTML buttons on all browsers?

We have buttons of many sizes and colors that use background images. There is a label on the background image itself, but we need to keep the button's text in the HTML for usability/accessibility. How do I make the text disappear in all browsers? Modern browsers are easy, I just used - color: transparent; It's Internet Explorer 7 tha...

KmlScreenOverlay Buttons

KmlScreenOverlay Buttons!!? real? how? Any other way to put anything flash or html over GEPlugin? ...

How to create a submit button template in Oracle APEX?

Hey all, I'm trying to create a template for a button in Oracle APEX but I don't seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a handler for the onclick event that calls doSubmit('buttonName') Unfortunately, when I go to create a template the only substituti...

Selecting a random button and modifying its text (VB.NET)

I am making a game of tic tac toe, and I have 9 buttons lined up in a grid pattern. I want to select a random button for the computer to start the game from. I have an array set up with all the names of my buttons, and I was thinking of picking a random entry from that array to start working from. This I have done fine, but I cannot cha...

Using the BACK button to revert to the previous state of the page

Hello I am trying a new functionality for my web site. I want to do simple navigation by hiding/showing elements. For example, when a user clicks a "details" button on some product, I want to hide the main div and show the div containing the details for the product. The problem is that to go back to the previous "page", I have to und...