button

To use layout_marginLeft in a button style applied as a theme?

Hi, I used an attribute layout_marginLeft="30dip" in a style defined for buttons. When I apply this style individually for each button, the left margin is placed as I wanted. But then I defined another style inheritting from theme. In this style, I assigned my button style to the attribute android:buttonStyle and applied this as theme. ...

Invisible / transparent button that works like a regular in android?

How do I get one area in the middle of a image clickable (not the whole image)? Tried with a button set to invisible and clickable but the button does not work. What are the alternatives to an invisible / transparent button that works like a regular? I've also thought of a completely transparent and clickable PNG that should work but ma...

iphone4 camera flip button not working when using overlay

Hi, I'm setting the UIImagePickerController's cameraOverlayView to a view that I created so that it simply overlays an image when someone is using the camera. This works fine. The problem is that on the iPhone 4 there are two buttons: one for flash and the other to flip to the front facing camera. These buttons no longer work. I'm assumi...

drawing shapes & Buttons

The learning curve for iPhone development has been less steep than I expected. After following some tutorials and the excellent book "Beginning iPhone 3 Development" by Apress things have gone quite ok. And of course when I got stuck this forum has been a great help so far. Until now I never did any 'graphical' programming on any platfor...

Is it possible to override the minimum width of a button in Safari on iPad?

I have the following HTML-page: <html> <head><style> * { margin: 0; padding: 0; border: none; } button { width: 14px; background: #F00; } </style></head> <body> <button></button> <button></button> <button></button> </body> </html> When I run this code in any desktop browser, it works perfectly; the buttons are 14 pixels wide...

To increase a button's size when it is pressed in Android

Hi, How can I make my button's size to increase slightly when it is pressed and decrease again when it is released? This is for highlighting the pressed button, by using size in addition to a different color. Regards, Kiki ...

how use button in internet explorer?

on my source i use <a href='pag.php'><input type='button' value='Next'/></a> in firefox and crome when i click on the button i'm redirected to pag.php but in ie it don't work. how can i do? ...

jQuery button display in IE6

We have some HTML buttons which we format using JQuery - $('#button').button(). Works great but.. when the page first loads in IE6 you see the "unformatted" regular HTML button and then you see the JQuery formatting kick in a split second or so afterwards. What can you do do avoid displaying the default HTML button and just display ...

Button does not respond to touches.

In my app there is a background on top of the window: UIImageView *mybg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg_large.png"]]; [window addSubview:mybg]; then a button in top of the background: UIButton *infoButton = [[UIButton buttonWithType:UIButtonTypeInfoLight] retain]; infoButton.frame = ...

How to call a specific function on FocusChange of all buttons in android?

Hi, It's possible to specify a particular function to be called when button is clicked by setting its onClick attribute in xml: android:onClick="function_name" I want to do something similar for FocusChange of buttons, is this possible? Specifically, I wish to increase my button's size when it has focus and make it n...

Capture button release in Android

Is it possible to capture release of a button just as we capture click using onClickListener() and OnClick() ? I want to increase size of a button when it is pressed and move it back to the original size when the click is released...can anyone help me how to do this? ...

exit and back button implementation

Hi All, Either exit button or back button only can be implemented in my application.But i want both the implementations in my application. So,Please propose me a solution. Thanks in Advance..:) ...

Why in the input type button the cursor is an arrow and not a hand?

This question is because normally when you want to click a button or link the user expect a HAND in the cursor but in the case of input type="button" you get a cursor arrow , does any know why is this? is cause is inherit from base class input?? and all inputs have pointer cursor? I Know a simple css lik {cursor:pointer} //make the work...

Show box if radio button checked using jQuery

I have the following code: <fieldset> <legend>Do you currently have SolidWorks</legend> <ul> <li><label for=""><input type="radio" name="solidworks" value="Yes" id="rdYes" /> Yes</label></li> <li><label for=""><input type="radio" name="solidworks" value="No" id="rdNo" /> No</label></li> ...

C# Button Not Firing?

I have an ASP Button that I am creating in the CodeBhind of a Control. Here is the code: Button SubmitButton = new Button(); protected override void CreateChildControls() { SubmitButton.Text = "Submit"; SubmitButton.Click += new EventHandler(SubmitButton_Click); } private void SubmitButton_Click(object sender, EventArgs e) { ...

WebView and buttons layout makes buttons invisible

Hey guys, I've got the following layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <WebView xmlns:android="http://sc...

One OnClickHandler for multiple Buttons

I find myself doing things like this all the time: Button button1 = (Button) findViewById(R.id.button1); Button button2 = (Button) findViewById(R.id.button2); Button button3 = (Button) findViewById(R.id.button3); button1.setOnClickListener(menuButtonListener); button2.setOnClickListener(menuButtonListener); butt...

CKEditor:Custom Tag Wrapper Buttom

Hey, I want to create a custom button in CKEditor. The button should work exactly like "bold" and "italic" buttons. I want to wrap the html with an h2 tag. I know I can use the styles dropdown but I would like to have a special button for it. The button should get a "clicked" icon when the cursor is on a text wrapped in h2 and by clickin...

PHP GTK button click

I'm trying to make this button change background when you click it and this is what I have: <?php if (!class_exists('gtk')) { die("Please load the php-gtk2 module in your php.ini\r\n"); } function loc(){ return dirname(__FILE__); }; $wnd = new GtkWindow(); $wnd->set_title('Picture Viewer'); $wnd->set_resizable(false); $wnd->set_...

Hide (or disable) submit button when user clicks on it

I am working on development of an application using CakePHP framework. We all have clients that click several times on the submit button. How can I hide or (even better) disable the submit button when a user clicks on it? On the internet I found several Javascripts that can do it, but I need help to integrate it into my CakePHP script...