0
голосов
1ответов
377 просмотров

AS3 Button that doesn't exist yet

When we work with buttons we set up our listener and the function it uses, but if we have the button animate in or show up elsewhere in a later frame, we will get an error saying the object doesn't exist. What would be the more common or correct approach, set up our functions on frame 1 then att...

0
голосов
2ответов
5346 просмотров

WPF Putting a Button on a Label

I've got a listbox of Labels, each bound to a LabelName and LabelColor. I want to add a small button that resembles an "X" and attach it on the right side of the Label. I want it to look seamless, like the X is very non-intrusive. Any ideas how to do this? The stuff between the <Label.ContentT...

0
голосов
2ответов
9830 просмотров

call another applet in an applet

I want to call (just display another applet)one applet from another applet . I just placed a button on my first applet and on its actionperformed method used the getcontextapplet() method. But second applet was not displayed. How can I display a second applet on any reaction of first... The cod...

1
голосов
2ответов
2238 просмотров

Change button text without changing button size

I'm using a borderLayout to arrange my components in a JFrame and a Box(BoxLayout.X_AXIS) to put buttons next to each other. But it creates two problems: I want the buttons to have the same size, but it automatically resizes them to fit the text within them (especially annoying when I change th...

1
голосов
1ответов
1123 просмотров

Jquery Overlay with Button (ImageButton/AspButton)

I wanna use a button in asp.net. When I ckick on it, an overlay shall occur and the overlay shall filled with data. How Can I do this with Jquery? My Problem is that, when I click on the button, the whole page is send back to server. Thanks for your help!

1
голосов
4ответов
467 просмотров

Why does <button> make "GET" in Firefox/Chrome, but "POST" in Opera?</button>

I'm developing a website (ASP.NET Webform with C#) where I have a &lt;button&gt; element. Here's the code snippet: &lt;a href="ThisPage.aspx" ID="myButtonID" runat="server"&gt; &lt;button&gt;Configure new trip&lt;/button&gt; &lt;/a&gt; When I use Firefox or Chrome, this code does a "GET" ...

0
голосов
3ответов
3214 просмотров

Select dropdownlist item after button click

I have an asp drowndownlist and I'd like to change its selection after a button click. I can't seem to find a way to do this, is there a way? (Its a reset button of sorts, and I would like the dropdownlist to return to the "default" value.)

1
голосов
3ответов
2504 просмотров

Reusable Custom Content for Buttons

My user interface makes use of customized Buttons: They contain both an Image and a Label. I customized a single Button manually, by setting its content to a grid holding an Image and a Label. However, since I need to have several such Buttons, with different images and labels, I'd like to "ext...

0
голосов
1ответов
952 просмотров

Button turns invisible on Windows 7 machines without Visual Studio installed

We have a window that displays fine on all of our Windows 7 development machines with Visual Studio but not on the ones without Visual Studio installed. We have a simple OK/Cancel button pair and on the affected machines the OK button is invisible but if you click in the place where it should be ...

0
голосов
2ответов
1650 просмотров

Menu Button in web Page

I am looking for a solution to display to a menu button in a Web page, preferably using client side code (example a jQuery plugin etc). The only requirement is that it should blend well with the default buttons look and feel. An Example of a menu button i can give is that of the Labels or Actions...

1
голосов
4ответов
2404 просмотров

asp.net - Button event does not fire up

I have a search button on my page that runs a query on a DB, pulls out and displays some entries in a table, and for each entry I create a button. It looks something like this: List&lt;Friend&gt; friends = SearchFriend(searchStr); foreach (Friend f in friends) { TableCell addCell = new Table...

0
голосов
3ответов
5801 просмотров

wpf button location

I am building an application. I have a Button on a Window. When I click the Button, I want a new Window to pop up. But, the new Window must open under the Button. As another way, when the Window pops up, the Button must been shown on the Window. How can I do that? Is that possible? Thanks ...

5
голосов
6ответов
12136 просмотров

iPhone button with non-rectangle shape?

How can I get a non-rectangular shaped button? For example I do have a PNG image with alpha transparency. How can I set the shape of a button to this image without the transparent color.

0
голосов
1ответов
959 просмотров

mvc and the back button

I'm new to mvc so I don't know if there is a trick to this or not. When a user runs a search on a site I'm building and I take them to the results page, if I click the back button the search form is empty. Is there some way to keep the form fields populated as they were when going back (without r...

0
голосов
3ответов
404 просмотров

button question

I have recently started on android. i have written this piece of code import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class ArrangeMe extends Activity { private Button button1; ...

0
голосов
3ответов
2504 просмотров

How to wrap sibling elements?

The following markup will have some extra elements injected into it (i.e.: a div containing some flash for example). How can I dynamically wrap all of the p tags in one div and add a button above it to toggle that newly made div? &lt;div class="post"&gt; &lt;p&gt;blquehrgéoqihrteoijth&lt...

15
голосов
8ответов
45311 просмотров

how to show contextmenustrip when a button is clicked in the right position

I want to click on a button and have it show a ContextMenuStrip right below the button. It keeps showing up in the left hand side of the screen when i try PointToScreen and top and left coordinates. Any suggestions?

0
голосов
1ответов
1971 просмотров

Download file when user clicks dialog button

I have a dialog box open when a user clicks on a url. In that dialog box, I have two buttons, "OK" (which closes the dialog box) and "download file" (which, I would like to have the file I just created via PHP be downloaded when clicked). How can I achieve that functionality with the "download fi...

0
голосов
3ответов
1009 просмотров

JQuery scrolling issue when submiting a form

I'm building an ASP.NET website and I'm puzzled with the behavior of one page, I've got a long form and a submit button, I've got the piece of javascript below in the page to handle scrolling the page back up upon submiting the form, the first time I click the submit button it works all the seque...

0
голосов
3ответов
7799 просмотров

Turn Image into a Button Image: Remove borders

I have this link with the following css. &lt;a href="step1.php"&gt;Buy Now&lt;/a&gt; //css #buy a { background:transparent url(signup_bt.gif) repeat scroll 0 0; color:#FFFFFF; display:block; font-size:14px; font-weight:bold; height:37px; line-height:38px...

9
голосов
2ответов
11872 просмотров

Determine which Button was pressed in Tkinter?

I'm making a simple little utility while learning Python. It dynamically generates a list of buttons: for method in methods: button = Button(self.methodFrame, text=method, command=self.populateMethod) button.pack({'fill': 'x', 'expand': 1, 'padx': 5, 'pady': 3}) That part works fine. ...

3
голосов
2ответов
4244 просмотров

WPF navigation via buttons

Question: Is there a way to make a button behave like a hyperlink inside of a user control? I've been searching around for a few days now and haven't found anyone who has addressed this. How do you use a button to navigate in a WPF application? Specifically how do you make a button inside of a...

0
голосов
1ответов
2401 просмотров

asp.net Gridview: buttons accessing data for each row

I'm trying to code a Gridview that has a button on each row that when clicked will expose that particular rows data for use, but I'm not sure how the data would be passed. The Gridview: &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID...

1
голосов
4ответов
3176 просмотров

How to add a new button to PrintPreviewDialog in C#?

I have a program where I can switch between different layouts in my print doument (a4, a5 or a6 sized graphics drawings and whatnot. Print document is always a4 sized). I can show this document in a PrintPreviewDialog but I have to manually specify in the code before hand which layout I want to s...

2
голосов
2ответов
4900 просмотров

How can i know which button is clicked? Objective C

I am doing Presence1 in Assignment which require me builds a multiple screens application. I have two ViewController, vc1 and vc2. In vc1, i have two buttons. I use a same method for them and the title of them are same. My question is How can i know which button is clicked in vc1 when i change t...

3
голосов
4ответов
4213 просмотров

Inline stretchy button with CSS background image

Anyone know if there's a bullet-proof (standards-compliant to XHTML1.1 strict, cross-browser, non-javascript) way to use CSS and background images to turn an inline link into a visual button that will stretch to accommodate different amounts of text (or text resizing)? I'm thinking I need to us...

544
голосов
17ответов
556952 просмотров

Android: combining text &amp; image on a Button or ImageButton

I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image. If I use ImageButton I don't even have the possibility to add text. If I use Button I can add text but only define an image with android...

2
голосов
4ответов
5700 просмотров

Button in UpdatePanel requires two clicks to fire

I am using VB.NET and Webforms with MS AJAX. I have a button in an MS AJAX Update Panel. When the page is loaded the button's visibility is set to 'false' declaratively. After the user has checked a check box (also in the UpdatePanel), I set the button's visiblity to true and it becomes visible...

10
голосов
4ответов
11870 просмотров

different images for enable and disable states of a button in WPF

I want to change the image of the button in the code below based on its state i.e. use different image for enable and disable state. &lt;Button CommandParameter="Open" &gt; &lt;StackPanel Orientation="Horizontal" &gt; &lt;Image Source="../icons/big/open.png" Width="20" Height="20"&gt...

0
голосов
1ответов
2234 просмотров

How to add Button to WPF Datagrid column dynamically?

Is there any way to dynamically add a button control(along with column name) to WPFDataGrid column,?? By clicking on header button,pop-up will open . this button generation is dynamic one ,which will be decided from code-behind, for some column headers need to add,for some not needed to add.