Questions tagged [button]

Buttons are simple elements in graphical user interfaces that take mouse clicks or finger taps (on touch devices) as input.

In computing, a button (sometimes known as a command button or push button) is a user interface element that provides the user a simple way to trigger an event, like executing a query on a search engine or to interact with dialog boxes to confirm an action.

When asking questions specific to a particular framework or language, it's best to use the appropriate tag instead (if it's available). For example, the HTML <button> element should be tagged with , iOS buttons should be tagged with , and Java Swing buttons should be tagged with .

40417 questions
6
votes
3 answers

CSS for border in corners only

I need ideas on how to make a button look like this: I don't know how to make square corners like that and I can't find any solutions online. Also, on hover, the border should be all around the button (just a normal 2px border.)
user3633459
  • 87
  • 1
  • 4
6
votes
2 answers

How to apply a style to a class and its descendants?

I want to apply the following style to all controls that derive from ButtonBase But it only works for a given class, not for its…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
6
votes
5 answers

How to identify which button clicked? (MVVM)

Continuing down the path to MVVM, I have come to button commands. After quite a bit of trial and error I finally have a working example of a Button_Click command using ICommand. My issue is that now I have a generic event made, I can't get which…
KyloRen
  • 2,691
  • 5
  • 29
  • 59
6
votes
6 answers

Center tag in div

Currently having an issue with my button. I want to be able to center my 'a' tag but at the moment it will only stick to the left side. I have tried using "display:block" but this will make my button take up the full width of any div it's been put…
Nazar Abubaker
  • 495
  • 3
  • 7
  • 17
6
votes
3 answers

JAVAFX How to make a button stacked behind a Label clickable

How to make a button stacked behind a Label clickable? Button Button btn = new Button(); //TODO: button's main function, like onPressed, onReleased etc. here... Custom label CustomLabel sp = new CustomLabel("Some texts here")); //TODO: custom…
Ronaldo
  • 263
  • 5
  • 18
6
votes
2 answers

Android glSurfaceView with overlay using XML/Java

I started an Android OpenGL application and I have the following classes: class A extends Activity class B extends GlSurfaceView implements Renderer When class A's onCreate is called, it creates an object of type class B and…
madiyaan damha
  • 2,917
  • 5
  • 21
  • 15
6
votes
1 answer

Android Button Text Color Always Pink

I am trying to change both the button text color and the button background color when the button toggles between selected state and not. The background works perfectly, but the text just shows as pink (the default colorPrimary, which I have…
Cody Harness
  • 1,116
  • 3
  • 18
  • 37
6
votes
1 answer

Can a Tkinter button have children?

I have the following code to create a button in Tkinter: button = Button(self.parent_frame, width=100, height=100) frame = Frame(button) label = Label(frame, text="This is a button") frame.pack(fill=BOTH, expand=1) label.pack(fill=BOTH,…
null
  • 2,060
  • 3
  • 23
  • 42
6
votes
2 answers

get previous selected dropdown item

i have the following code where i have a dropdown list (with class="addToList" and followed by a button (Class="addtoButton"): When i click on the button, i want to grab the current selected value and text from the previous dropdown…
leora
  • 188,729
  • 360
  • 878
  • 1,366
6
votes
7 answers

Javascript - populate a div with content from a hidden div using click buttons

I need some help. As you will see in my fiddle, I am attempting to use buttons to populate a single container div with content from multiple hidden divs, depending on which button is clicked. The problem I am having is, I don't know how to access…
lane
  • 659
  • 8
  • 24
6
votes
4 answers

C# Changing the Size of a button text

I want that the Size of the Button font changes dynamically, when I change the size of the Button. So far I have placed the button on the right Location and the Size of the Button changes, when I resize the Form. But When the Button becomes to small…
Stujo
  • 93
  • 1
  • 1
  • 8
6
votes
1 answer

p5.js manually call setup and draw

I am making an online game with p5.js and I would like to manually call setup, and once setup is called I want draw() to run. For example, if I click a button: Then the canvas will be…
6
votes
5 answers

extjs buttons in toolbar appearance

Hey, i have a small question really but something i cant seem to find out. when i place a button in a extjs toolbar, it appears with a default apperance (like any windows toolbar options) how do i make it look like a button in a form ??
GumaTerror
  • 123
  • 2
  • 3
  • 8
6
votes
1 answer

How to set circular progressbar inside button in android

I want to make circular progress bar inside button. but I don't want to use library like dmytrodanylyk/circular-progress-button, etc.. I think this solution is used drawable. so, i make circular_progress.xml,
Aram_
  • 101
  • 1
  • 3
  • 9
6
votes
3 answers

How to determine if button was clicked or touched?

Is there a way to distinguish whether a button was clicked as in with a mouse or touched using a touchscreen in WPF?
John
  • 941
  • 2
  • 12
  • 20
1 2 3
99
100