button

How to Determine pixels available for Text in System.Windows.Forms.Button

I have a series of buttons that display filenames. If I set the Text property when the filename is wider than the number of pixels available the text "wraps" and instead if the text being displayed LeftMiddle it is displayed LeftTop. Therefore I only display as many characters as can be shown (using the PathCompactPathEx() method). Howe...

Put a button on top of a google map

Hi, I would like to put a button on top of a Google Map next to the Map, Satelite and Hybrid buttons. I was wondering if its possible and how would be the best way to do it? So ideas I have are overlaying a image on top of the google map that is clickable but not sure if that will take all the events away from the google map. Do you ...

WPF - Why is my buttons content moving separately from the button itself?

I have created a TabControl in a WPF application I'm writing. I re-templated TabItem so that I could have a button on each tab header to close it. So far, all is well and good. I decided that I now wanted shiny round buttons instead of the default square ugly things. Also, I wanted to use an image as my buttons content instead of simply...

how to click on a button in the iphone application and link to a second page within the app

i am building up a view-based project with out a navigation bar. I have 2 pages. Simply need a button to link from page one to page two. Then a button to link from page two to page one. Seems it should be very simple but i am having a heck of a time trying to get it. ...

Buttons Enabled Property not Working Properly

Hi all, I am creating an Windows Application. I have two buttons. I have written the following code snippet. frmRb obj = new frmrb(); private void btnPd_Click(object sender, EventArgs e) { btnCancel.Enabled = true; obj.btnRtn.Enabled = true; } private void btnCancel_Click(object sender, Ev...

Receive input from mute/play/stop/etc. on front of Dell Inspiron laptop

I have a Dell Inspiron E1505 and as you can see in this image it has some buttons on the front for mute, play/pause, stop, volume control, etc. The mute and volume buttons actually affect the volume settings for the computer itself, but the others can also be used to control some other applications, such as Windows Media Player and even ...

When using onclick-event and document.write in javascript, does it always have to open in new window.

Does it have to open in the sam Eg: function write(){ document.write("write") } input type="button" onclick="write()" value="Click" ...

How can I place a cross-browser button within (on top) of an text input?

I'd like to create a text input with a clear button in a confined space. Like the iPhone, I want to place the button (a small x image) 'inside' the input at the far right so that a user can just click that to clear the value, instead of having to waste space beside the input. Right now I'm using a background image on the input and an in...

Invoking the click method of a button programmatically

Simple problem (I think): I want to be able to invoke a click method on a predefined object, specifically, the bindingNavigatorDeleteItem button on the standard c# BindingNavigator. I need to intercept the delete so that I can verify that the record is allowed to be deleted. If it is, I want to invoke the aforementioned click event which...

Drawing a transparent button in C# Winforms

I'm trying to create a transparent button in C# (.NET 3.5 SP1) to use in my WinForms application. I've tried everything to get the button to be transparent (it should show the gradient background underneath the button) but it's just not working. Here is the code I'm using: public class ImageButton : ButtonBase, IButtonControl { pub...

Styles of adding / registering button listeners in OOP (Java, Actionscript, etc)

I've come across 2 different styles when adding button listeners in UI. I use SWT as example. But nonetheless I saw the similar code in J2ME, Flash Actionscript as well. style 1: b1.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { System.out.println("b1: "); } public void widge...

Access SimpleButton children

I have a Flash .fla file that has SimpleButton. That SimpleButton is basically a button-like shape, with an icon on it (say it's a "pause" sybol). I want to change the color of that icon programmatically, but I can't seem to access it from AS. I've selected the icon, and did "convert to symbol", and gave it an instance name. This has w...

if else statement not working!

This code has no errors in it, but when i click the button nothing in the "if" statement works! it doesn't crash or show errors... Btw im working in Xcode on an iphone app. #import "MainView.h" @implementation MainView @synthesize MyButton2, MyMainTextLabel; @synthesize MyButton3, MyMainTextLabel; @synthesize MyButton2, Button2Lab...

Buttons in wordpress

Hi, currently I am trying to make the following a button on my wordpress blog its a automatic link that gets that class whenever its posted but I just can't seem to make it work. <div class="kpg-title"> <a href="/recentphotos/?album=Photosagain">photosagain</a> </div> This is the link to the CSS Any help would be greatly appreaci...

[IB] How to connect "File's Owner" with a button in a Toolbar?

Good morning, I just got creazy with connecting the "File' Owner" to a Button in my Toolbar. How do I do that? I only can grab the Toolbar but not the buttons inside. Anyone knows how to solve that :)? Thanks in advance! ...

How can I know when a Button in a Flex DataGrid itemRenderer is clicked?

I have a DataGrid component that displays a few columns of data. It has one additional column that displays a Button that allows the user to take an action with regard to the record. <mx:DataGrid dataProvider="{myData}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name" width="75" />...

Vista Shellview Help button

Hi I have created a namespace extension with VC 2005... I was wondering how to utilize the Help button located on the vista toolbar to display the help document for my product. Currently the help button is available but clicking it does not do anything. I was wondering how to handle the help button in Vista and 7 as this is a new feat...

How to close/hide the Android Soft Keyboard?

I'm having an EditText and a Button in my layout. After writing inside the edit field and clicking on the Button, I want to hide the virtual keyboard. I guess there should be a simple, one- or two-liner to make this happen. Where can I find an example of it? ...

How can I create a new STATE in a button in Flash CS3?

Hello! I'm trying to create a new state for a button, like when I take the mouse pointer out of the Hit Area and, doing this, it fires a small movieclip. How can I do it? I probably need some especific name for this state, like Hit or Over, right? ...

Word vba - Determine which button was pressed?

Hi, I'm wondering if there's a simple way for a Word macro to determine which button was just pressed? I have a document template with several button which should all fire a macro. The thing is, I want to create ONE macro which is called in each button. I don't want tons of macros for each button. Now, this macro, when the button is p...