button

Making EditText and Button same height in Android

Hi, i have an EditText and a Button in my LinearLayout and i want to align them closely together so they see seem to belong together (edittext + micButton for speech input). Now they don't have the same height and they aren't really aligned well (button seems to be a little lower than the EditText). I know I can apply a negative margin...

How to call a method when user keep pressing a button?

Hi All, I know how to call a method when a button pressed. but, My problem is when a user keep pressing a button it has to call one method -(void)keeppressed { } where as it has to call another method called -(void)justpressed { } when user just taps the button is there any solution? ...

Are the 4 Android buttons standard? Ex. back button, menu button...

Are the physical buttons that Android phones come with standard? Specifically the back, menu, home, and search button? In my applications I assume everyone has a back button so I don't bother putting in a "soft" button to go back to a previous screen. For some reason I can't find any official documentation on this. Looking at http://ww...

Radgrid: If click on edit or cancel => redirect Radsplitter(radpane) to external

ello to everybody, I have a radgrid page in edit modus inside a radpane. When you click on the edit or cancel buton of the radgrid then it gets only reloaded inside the radpane. As the radpane is quite long, you don't see the buttons opn the top. Does somebody how I might catch the edit/cancel click inside the radpane in order to get th...

Flex Spark: How to add a Cancel button on the TabBar Button?

Hi All, I'm trying to add a cancel icon to my TabBarButtons in Flex 4.0 (Spark), and I've gotten close, but now I'm stuck on getting the icon to be "clickable" I have seen other approaches, like FlexWiz Blog (http://flexwiz.amosl.com/flex/spark-tabs-with-close-button/), but was hoping to figure out something cleaner. Using the similar...

ASP.NET Custom Button Control - How to Override OnClientClick But Preserve Existing Behaviour?

Hi Guys, So i have a ASP.NET 4 Custom Control called "SafeClickButton" which is designed to override the default behaviour of the client-side click (OnClientClick). Essentially i'm trying to disable the button on click, then do any existing functionality (validation, postback, etc). It looks to be correctly rendering the HTML (onclick...

How can I make a second button in my form not run the submit code after it's pressed?

I have a form, with a submit button: <% form_for(@personalentry) do |f| %> <%= f.submit 'Create' %> <% end %> HTML Output <form action="/personalentries" class="new_personalentry" id="new_personalentry" method="post"> <input id="personalentry_submit" name="commit" type="submit" value="Create" /> </form> I want to add a seco...

How to set custom buttons (text) in jQuery UI Dialog?

I do get that we easily can set the Close button text to a variable, using closeText option $("#dialog").dialog({ autoOpen: false, modal: true, closeText: btnCancel, // <----- overlay: { backgroundColor: '#000', opacity: 0.5 }, buttons: { Close: function() { $(this).dialog('clo...

Django Forms and Buttons

I have been working on forms only recently and I am still puzzeld by them. What I want are standard Forms: Next Button Submit Data to Db Timestamp Clickable Images with Regions defined where when I click I get to the next page And I would like to combine these. E.g. have a next button + Record the Timestamp. or E.g. Click into an...

Android - Image button (XML) isn't working?

I have three images in my drawable folder, and an XML Image Button code: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;\ <item android:state_pressed="true" android:drawable="@drawable/happycarrot" /> <!-- pressed --> <item android:state_focused="true" android:drawable="@d...

Not able to call touch event in iphone when clicking on a button.

Hi all i need to call touch event in iphone when i clicked on a button. i have the following code which is not calling touch event Please any one let me know how to resolve this. The button code is as follows. -(void)method { BottomView = [[UIView alloc] init]; btnRefresh =[UIButton buttonWithType:UIButtonTypeCustom]; [btnRef...

Android - Image button size help?

My imagebutton code wont respond to "fill_parent" and "wrap_content". Instead, it just shows the middle of the image (because it is a pretty big image). I tried setting specific values for the image but it still didn't work! Can somebody help me? My button.xml in the res/drawable folder: <?xml version="1.0" encoding="utf-8"?> <selector...

How to prevent a key from being held down on a button? C#

I am writing a game where you need to click a button as many times as you can in 10 seconds. The problem is that it is possible to hold the Enter key down to superspeed the counter. How can I prevent this? I tried KeyDown Events but it doesn't seem to fire when the key is held down. Thanks. ...

Android - Another button question

Its a dumb question. Prepare yourself. My main.xml is this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/white"> <ImageButton android:src="@drawable/button"...

Difference between <input type=submit /> and <button type=submit>

There are many legends about them. I want to know the truth. What is the difference between <input type='button' value='text' /> and <button type='submit'>text</button>? ...

Button Layout with Drawable and Text

I want to layout a button with Drawable image on the top of it and text below the image. I am very new to this so please use detailed instructions. I have not experimented with drawable images yet so I want to clarify before I continue. If I want to above the text (ie the text is not on the image) how do I go about doing this? I also w...

Problem with Android button setonclicklistener

I am having a problem right now with setOnClickListener. When i put this following line: button.setOnClickListener(this); And run the application then it does not run and show a message that "Application closed forcefully". Could you please help me how I can set button onclick event in Android 2.2 Thanks Chandu ...

CSS: Button Visibility Problem

Hello all; I am working on a project with a video player. I want to add play/pause and skip buttons together but one of the buttons is always invisible, however working. The codes I am using: in .css file: .buttons { position:absolute; top: 326px; left:150px; } .buttons DIV { width: 26px; height: 20px; cursor: pointer; } .buttons .pa...

Django Buttons Timestamp

So if I would have to create a Next Button (that links to the next url) AND saves a Timestamp in the database. How would I create that html code for that? and how the db? What would I have to put into the button html code? e.g. <form id="form1" name="form1" method="post" action=""> <label>Next <input type="submit" name="butt...

textArea and CodeMirror: How to fill text area and highlight?

Hello, I have a folloowing: textarea and button, I would like to fill it by predefined text and in meantime make a syntax highlighting with CodeMirror: $('#query1').button() .click(function() { $('#queryText').val(<?php echo $queryArray[0];?>); } Then: <form id="queryFrom" name="que...