button

How to remove the window border (containing minimize, maximize and close buttons) from a Qt widget ?

I would like to animate a widget (QPushButon) to move across my application screen. For that I create a new button and using the QPropertyAnimation class and the property "geometry" of the button, I move it from top to down. The problem is that the button comes with the close, minimize, maximize buttons, etc. I don't want them to be ther...

Dynamically populate a listbox from a textbox in ASP.NET MVC 2

Here's what i'm trying to do: 1 textbox with an Add button, and a ListBox underneath with a Delete button, along with a bunch of other fields. You can probably guess the functionality: type something in the text box and click Add, it will add that string into the listbox below. Select an item in the listbox and hit Delete, the item is ...

Xcode - Equivalent to Actionscript 3 event listener

Is there a similar method in xcode to the AS3 "AddEventListener" code? I want to be able to watch for a certain thing to happen, but not use up too much memory. Basically I have 8 buttons. Obviously I can't just go through a for loop to see if a touch is on them, I need an event or a trigger or something. (The reason I don't just use ...

WPF Animate Multiple Buttons

I have a control with 5 buttons, and I would like to make all of them shift diagonally when any of them are clicked. What would be the best way to do this? If it were a single button, I could use a Storyboard and DoubleAnimate, but I believe that if I apply this to multiply buttons, they would shift one by one, instead of at the same ti...

Why does System.Windows.Controls.Button always have a padding of 10px?

See screenshot. The bounding cyan-bordered box is the button, while the blue fill is the rectangle. I cannot for the life of me figure out how to get rid of the padding in the button. Is there a way to position the rectangle to the top left so it touches the cyan border? Thanks. ...

Creating dynamic previous next buttons in jquery UI dialog

I have searched high and low for this on this site and the web Is it possible to dynamically create previous and next buttons in a jquery dialog box? I have a list of links, and I would like to click on a link and have a dialog box open. In that dialog box would have a previous and next button that when clicked on would close the curre...

How to resize a button depending on its text

Hey all, In the process of translating an application with C# + Winforms, I need to change a button's text depending on the language. My problem is the following : Let's say I want to translate a button from "Hi all!" to "Bonjour tout le monde" ! As you can guess, the button's size won't be the same if I enter english text or french ...

WPF Clickable button under label

Hello. I have button. I have expander in button and label above expander in the same button. I can click on button with no problem, but there is problem where I click on label (Nothing happens). How can I make this: When user clicks on label in button, button is being clicked. I want to transfer click event from label to button that cont...

Disable clicking through other controls - WPF

Hello. I have Simple application. <Window x:Class="WpfControlReview.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlfo...

HTML (or Rails) button code issue

Hi there, I'm struggling with the following problem: What's the correct HTML (and/or Rails) code for a button that resides within a form, and that should lead to a new page, but should not submit anything (from the form)? Basically, the button should work exactly like a hyperlink. Thanks for your help! Tom ...

How to disable accelerator key for some buttons

I am setting the .Content value of a Button to a string that contains underscores; the first underscore is being interpreted as an accelerator key. Without changing the underlying string (by replacing all _ with __), is there a way to disable the accelerator for non-menu Buttons? ...

GWT Button(Image + Text)

Hi, I need to make a round button with some text on it (Centered). For the round button, I'm using an Image and onClick methods, but my problems come when i'm trying to overlap some text (Centered) over the image. "Like this " The text have to be customizable, so I can't just make the image previously Any hints of how to do that? Th...

submit button cross browser positioning

So i'm trying to make a login box with 2 fields and a submit button. The submit button position itself differently in EVERY browser. In Firefox it works as expected but in IE8 and Safari the vertical alignment gets screwed up. Any ideas to resolve this problem? Here's a screendump of the issue: http://gefuhlkunder.dk/bla.jpg <form ...

Crashes when in simulator when button pressed

I have 3 views and the first view has a motion background (sequence of pictures), music, and two buttons. When I push either button it crashes. I have a feeling its a memory problem but I'm not sure how to fix this. I'm rather new to Xcode. ...

Help Adding onKeyListener to Progress Dialog

Hi All I am trying to fix the problem where my progress dialog box disappears when someone presses the search button. I found this posting http://stackoverflow.com/questions/2502443/prevent-progressdialog-from-being-dismissed-when-i-click-the-search-button-andro/3983628#3983628 Where they say to add an on key listener to the progress d...

How to show a TPopupMenu when you click a TButton?

Hi, i want to show a popupmenu when click a button. but this procedure has error in Delphi XE. procedure ShowPopupMenuEx(var mb1:TMouseButton;var X:integer;var Y:integer;var pPopUP:TPopupMenu); var popupPoint : TPoint; begin if (mb1 = mbLeft) then begin popupPoint.X := x ; popupPoint.Y := y ; p...

How to put < or > in an android button

Eclipse doesn't accept the less than symbol for the button text, is there a way to escape it so it shows on the button? <Button android:id="@+id/button_prev_line" android:text="<line" android:layout_width="wrap_content" android:layout_height="wrap_content" /> ...

Button highlight behavior changed on Froyo?

On Android 2.1, just as on most graphical computer OSes, pressing the mouse while in a button, then dragging away, then dragging back, then releasing (while within the button rectangle) would result in a button press. It would also highlight while the mouse pointer was within (or actually near) the button, going off as the pointer left ...

Android Custom control

Hi I design a custom control that is similar to button control but has text on both left and right plus image on right and some hidden text associated with it. Can some one please give me few pointers on this. -Thank You ...

Changing Image in Image button field(template field) in a datagrid view

Hello, Just wondering if anyone has ever managed to find a way to have a datagridview image button column in a template field which display different images on different rows depending on some data element in the row. Our application needs to display a series of fees charged against an account column which will be either less then 500,...