button

Swing toolbar buttons

I'm adding a toolbar to my application and currently I'm adding some toggle buttons to the toolbar. I don't like using the default JButton because it is big and clunky (even if I remove the margins). Are there any libraries for easy creation of toolbars and toolbar buttons that look more native? Particularly, I'd like the buttons to look...

PerformClick() Event Of The Button.

I have a button on the window form and and one method I am calling button's PerformClick() event. Now if I make this button visible false.Then that PerformClick() event is not performed. Is it ok? And if yes then I want to make the button invisible on the form what should I do ? I already make the background color of the button same as...

How to retrieve a localized text/caption for standard push button?

I want to add "Yes" and "No" buttons to my window. It's a bit similar to standard MessageBox, so I would like to use localized strings in these buttons. I.e. "Yes" and "No" should be written in OS's current language. How can I do this? ...

What mouse event?

Ive noticed that if i mouse-down on a button, move my pointer from the button area, then return to it without releasing the button it still remembers that i have 'mouse-downed' on the button. Im trying to set button styles appropriatly, could anyone enlighten me as the correct javascript/jquery event to use for this? I would really hat...

Dynamic buttons in GridView - Button.Click event not fireing

I have a GridView control bound to an AccessDataSource. After selecting a row I'm creating a table inside the selected row. I'm adding Buttons to this table. Their Click event never gets fired. I read about recreating the buttons and stuff, but still no luck solving the issue. Thanks for help! .aspx: <%@ Page Language="C#" AutoEventWir...

How to trigger logon button when user presses enter on classic asp page with two buttons?

Hi, I have a classic asp page with two buttons, one for LOGON and another for REGISTER. I have named both buttons as "bsubmit" so I can query the value to determine which button is pressed. That works fine.. But when the user presses ENTER, I want the LOGON button to trigger instead of the REGISTER button. This page has a hidden input...

jQuery Scrollable Next/Prev Buttons Can't Be Wrapped In Other Tags

Hey, I have a scrollable going here: http://treethink.treethink.net/portfolio/ I am trying to put a p tag around the 2 a tags that cause the scrollable to move back and forth but no matter what I put around the a tags it breaks the scrolling (span, div, p...They all don't work) How can I solve this? I assume it's something to do with ...

Disposing JFrame by clicking from an inner JPanel.

Hello, I'm trying to dispose my JFrame by clicking a button, located on a JPanel that is placed on the JFrame that I want to close. I tried to make a static method on the JFrame class, but ofcourse my IDE told me that wasn't going to happen. Anyone thinking of a solution? Thanks! ...

How do I not commit a record on MS-Access?

I have a bound form in microsoft access that allows a user to add data to a table. I want to place a "cancel" button on the form, that if clicked, will stop the record commitment. What is the command I need to cancel the record commitment? ...

How to manage Mouse clicks on Irregular Button shapes in Flex

Hi, In Flex, I am trying to design 3 buttons similar to the image uploaded at http://www.freeimagehosting.net/uploads/f14d58b49e.jpg The mouse over/click on image should work only on red colored area of the button. How can I manage the Mouse clicks or Irregular Button shapes in Flex? Thnx ... Atul ...

Adding an icon to form button

I am using the following code to position an icon on top of a button: <a href="/users/hide_profile" class="button"> <span class="hide_profile">hide public profile</span> </a> a.button{ background-image: url('/images/button.gif'); display:inline-block; position: relative; _display: inline; color:#888888; font-w...

How to display a website and a button in one activity?

I'm making an application that contains button's and those buttons control an embedded browser. My problem is that I want to see the button's and the web page in the same layout, but when i click on a button this will open a web page and don't show the button, can anyone help me? ...

[Android] How to make a dynamic layout with clickable text, checkboxes and buttons?

Give me please an advise, I want to make a dynamic layout which contains mixed elements [text] [checkbox] [button] [text] [checkbox] [button] [text] [checkbox] [button] ...... Can you give me some sample code, please ...

Is it possible to create support for tab button in html textarea with JavaScript?

I hate when I try to edit html in textarea, because it doesn't recognize tab button, so I cannot indent my code. So is it possible to generate tab support to textareas with html? And is it possible to create support for tab button with JavaScript? ...

Mail App's emails button iPhone

Hi There. I need a for a project i'm working on a button similar to the one the Mail app use to display the a contacts. If you don't see what i'm talking about, please see this image: http://www.aboutptc.net/theButtonIneed.png Thanks in advance. ...

how to call controller from button click without using ajax mvc

Hi all. I'm new to web programming in general so this is probably a really simple question. I couldn't find anything on the web however. What I want to do is call my controller with the typed search string and return the results from a database and paginate the results. Right now I am using a function that is called when the button is p...

How I can replace the command of the minimize button?

First, sorry for my bad english :) Second, I can know when the form is being moved/resized, using this code: protected override void WndProc(ref Message m) { if (m.Msg == WM_WINDOWPOSCHANGING) { WINDOWPOS winPos = new WINDOWPOS(); winPos = (WINDOWPOS)Marshal.PtrToStructure(m.LParam, typeo...

How to change font size on a button?

I have a button in my Android project that contains two rows with text to the left, and one drawable on the right side. This works perfectly with this code: <Button android:text="Call History" android:id="@+id/accountCallLogButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawableRigh...

How can I display a bitmap/icon on an XP style button

I have a small (6x9) graphic that I want to draw on a CButton. I have managed to get this to work using ::LoadImage and CButton::SetBitmap. The problem is that when I put the bitmap on the button it is no-longer drawn as an 'XP style' button. I.e. it does not have rounded corners. How can I draw a bitmap (or an icon) on a button without...

Foreground of Button not changing in property trigger

Why does this trigger work (Changing the foreground of the button to "Red" when the mouse is over) <Grid> <Grid.Resources> <Style TargetType="{x:Type Button}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Foreground" Value="Red"/> </Trigger> </Style.Triggers> </Style> </Grid.R...