button

iPhone - Buttons background image

Hello, I've added some buttons to my app with a background image (RESET button below), but the corners are quite as expected. See below: The bottom left and right corners of the RESET button seem to be squared. My original image has rounded corners. Anyone come across this problem before ? ...

How to center icon and text in a android button with width set to "fill parent"

I want to have an Android Button with icon+text centered inside it. I'm using the drawableLeft attribute to set the img, this work well if the button has a width of "wrap_content" but I need to stretch to max width so I use width "fill_parent". This moves my icon straight to the left of the button and I want both icon and text centered i...

Setting background color of Win32 dialog button (not owner-drawn)

Is it possible to set the background color of a dialog button in Win32 without using an owner-drawn button? The following paints the background of every dialog item except the buttons (not owner-drawn): case WM_CTLCOLOREDIT: case WM_CTLCOLORSTATIC: case WM_CTLCOLORBTN: HDC hdcStatic = (HDC)wParam; SetBkColor(hdcStatic, bgEditC...

use jquery to ad ids to dialog buttons?

i can't seem to add ids to the buttons in a jquery created dialog. i can select the buttons after the dialog is declared via selectors as follows: var buttons = $("#dialog").siblings(".ui-dialog-buttonpane").find("button"); but when i try to do: buttons[0].attr('id', 'someId'); i get: TypeError: Object #<an HTMLButtonElement> h...

loading a JqGrid on selecting date..

I have a datepicker and on selecting the date and clicking button it should display the grid beneath it ... my approach: <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("#datepicker").datepicker({ showOn:'button', buttonImage: '../../image/icon_cal.png', button...

WPF/C#: Creating a button style: Text + Image

I just want to ask how should I put my image (dynamically) in this following code: <Style x:Key="ButtonStyler" TargetType="{x:Type Button}"> <Setter Property="Background"> <Setter.Value> <RadialGradientBrush> <RadialGradientBrush.GradientStops> <GradientStopCollection> ...

Different outcome between a user clicking a jQuery UI button and using jQuery click() on it?

I have a form to create a Ruby on Rails object. A part of the form uses radio buttons to choose an attribute. I then use jQuery UI to display the buttons, like so. <head> <script type="text/javascript"> $(document).ready(function() { $("#typeRadios").buttonset(); }); </script> </head> <body> <div id="typeRadios"> <i...

c# how to deal with events for multi dynamic created buttons

Hello, I have created a WinForm and I added to it dynamic Buttons, how I can deal with it's events public static void Notify() { var line = 3; Form fm = new Form(); fm.Text = "Hello!"; fm.ShowInTaskbar = false; fm.ShowIcon = false; fm.MinimizeBox = false; fm.MaximizeBox = false; fm.FormBorderStyle = Fo...

Glossy Button in VB.Net?

How to make glossy button in Vb.Net? or how change button background on mouseover? ...

How do I handle multiple buttons in a jQuery ajaxform?

I'm using the ajaxform plugin for jQuery. I have a form with Save and Cancel buttons. How do I handle multiple buttons so that the Save button posts to a URL and the Cancel button reloads the form container with a read only view from a different URL? ...

When click on tools div button (:active) works fine in Firefox but not in IE!

This code works fine in Firefox but not in IE, please give a solution only using CSS (No jquery or javascript), the problem begins when you click on the span inside the DIV! <style type="text/css"> .tools { cursor:pointer; } .tools { background-color:#aaa; padding:5px; } .tools span { background-color:green; color...

Keep Buttons at bottom of layout visible when list is long

I have a layout that is three linear layouts. The top has some icons and the middle has a tabhost. Each tabhost has a list inside it. The bottom linearlayout has two buttons that should stay at the bottom on the screen at all times. The problem is when a list in the tabhost gets too long, it displays over the buttons. I tried to fin...

code for back button

hi i have a php code here and i would like to create a "back" href to get me back where I was before. <input type="submit" <a href="#" onclick="history.back();">"Back"</a> <html> <head></head> <body> <?php // get form selection $day = $_GET['day']; // check value and select appropriate item i...

jquery - change the title of a button

i have button set up like: <button id="invOn2" style="float: left;">Item 2</button> the button is inside a dialog, and i am trying to change the title of the button as the dialog is being opened: $('#invOn2').button( "option", "label", "shwaf"); this isnt working, what is wrong? the suggestions havent worked as of yet, im going ...

display error when loading many components to Jframe

I have a JFrame with about 10 components (JLabel, Combobox, Buttons, TextFields). When I start the program, sometimes it doesn't display all of them. I tried repaint in different place and problem still there Any one help me ...

vb forms button control

very basic question. I have 3 forms. one main form with two buttons, that need to open one of the other two forms on clicking the button. Now when say button 2 is clicked then form 2 should open and also form form 2 person should be able to click back and come to main form. how can i do this? ...

Selecting PHP Combo Box and Button

Hi There! I am currently using PHP 5 with a MysSQL database with 2 tables. So far my PHP Combo Box is working however I need to access the values selected from the combo box. it goes like this: 1) I select a value from the Combo Box. 2) I click on the Submit button 3) The Submit button brings me to another webpage. The problem that my ...

Windows API: Hide a button which is not a child window

I have a program, where I need to disable a specific button on toolbar. "Save" on the Adobe Reader control. I know it's possible to hide a control by locating its window handle. Using Spy++, I found the required toolbar. It has buttons and text fields. Although text fields are child windows of the toolbar, buttons aren't windows at all...

Android: Refresh view problem

I am having a problem trying to refresh a View in an Android application. I have a button that have a image and what I need to do is to change the image when someone clicked the button. Where is the problem? The image don't refresh until the activity finished proccessing the code. Any idea how I can refresh the image as soon as It execu...

Android: Canvas.drawText when button click

How to drawText when button click? How can i setContentView(R.layout.main) to see the button and draw the text when button click? I cannot make it, and below is my code for drawing text.public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); drawView = new DrawView(this); setContentView(drawView); } ...