Questions tagged [button]

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

-1
votes
0answers
11 views

Run/play the game on button click

I want to display a button that appear on the game page instead of the game itself, when the user click on that button, the game will run and the button disappear. Here is the function of the game ...
0
votes
0answers
14 views

How can I remove Java SWT Button in Table

I fill my Table with Buttons like this: public void fillTable(Table table, Display disp, List<Artikel> artikel) { Image img = new Image(disp, "Pictures/Einkaufswagen.png"); TableEditor ...
0
votes
1answer
11 views

Button is not relocating to center of image when I resize browser

I've been trying to fix this for a while. I have an image right under my navigation bar and I placed a button right in the middle of that image. The problem is that whenever I resize the browser the ...
-2
votes
1answer
22 views

Find Element without ID in a WebBrowser in VB.NET

I am trying to click on a button on a Website. The problem is that this button has no ID so I can not use the getElementByID() function. Is there another way to find the button and click on it? Thanks ...
-1
votes
1answer
37 views

Android LongClickListener on button with overlay options [on hold]

How to implement this type of view in Android. On Button press it should popup options like an overlay
-2
votes
3answers
52 views

Python:function getting called even when button not pressed [duplicate]

from tkinter import * a=float(input("a")) b=float(input("b")) def abc(x,y): print(x+y) root=Tk() b1=Button(root,text="add", command=abc(a,b)) b1.pack() root.mainloop() this is my code for a ...
0
votes
1answer
70 views

Set button titles programmatically in an array

I have an array of expandable buttons that all hold the same title "Open". I would like for each button to have their own respective name since they will all hold their own features. How would I go ...
0
votes
1answer
38 views

javascript to disable a button

I want a click action to disable a button on the fifth click, but I can't get the to work inside the Here's the javascript... var currentTurn = 1; function taketurn(){ currentTurn++; document....
2
votes
1answer
36 views

Anko how to change button color?

I`m trying to change the color of a button inside a LinearLayout: class MoodActivityUI : AnkoComponent<MoodActivity> { override fun createView(ui: AnkoContext<MoodActivity>) = with(ui) { ...
1
vote
1answer
24 views

Product additionnal buttons in Woocommerce

In Woocommerce, how do I add a "Continue" button inked to the the product page just after? And inside the product page how to add a checkout button just under the add to cart button? Any help is ...
0
votes
1answer
25 views

c# panel to panel button dragdrop only 1 time working

public Form1() { InitializeComponent(); panel1.AllowDrop = true; panel2.AllowDrop = true; panel1.DragEnter += panel_DragEnter; panel2.DragEnter += panel_DragEnter; panel1.DragDrop += ...
1
vote
1answer
15 views

Javascript panning image: Switch invokation from button to automatic after page load

This is driving me crazy. I found some interesting JS image panning code from the internet. It works wonderfully, but the image begins to pan on a button click event, and I would like it to start ...
-1
votes
0answers
19 views

Android Change Button Color for 1 second

I have 4 buttons, and a random number that chooses the button, I want to change the chosen numbers color for 1 second then change back and loop again, what is happening is that by the time the color ...
0
votes
1answer
32 views

Python tkinter making serial work with buttons

I'm new to OOP,and I'm trying to make a GUI for myself. I want to make a simulator program. I'm reading the serial data with an Arduino. My questions are: Why does the button disappear, when I get ...
0
votes
1answer
23 views

How to add a dynamic button in an external java class?

I am having problems with creating public void onCreate(Bundle SavedInstanceState) in another java class.For this reason i cant create a dynamic button in java.I don't know what to do.. this is my ...
0
votes
1answer
25 views

how to hide or disable button connected with the same IBAction and different tags swift 4.2

I am trying to create a quiz app that shows a questions and then the users will select the answer by pressing a one of tow button [ true / false ] and then press next button to move to the next ...
0
votes
0answers
20 views

React native to native back button issue

Our app is built in react native and one part in native. When we move from Native android to react native using back button, we are shown a blank screen and it does not take it back to react native ...
0
votes
1answer
44 views

C# how to binding the array to the button array

I am practicing the structure of viewModel and databinding. I create the buttons and add them into an array so that I can easily manage them with a for loop. However, is seems that I make some mistake ...
0
votes
1answer
17 views

How make pyqt called two method by clicking one button

How to called two method when i'm clicking one button in PyQt self.trainPreproBtn.clicked.connect(self.preproClicked, self.thresClicked) @pyqtSlot() def preproClicked(self): gray = cv2.cvtColor(...
0
votes
0answers
29 views

Position an icon in the QPushButton

ALL, The QPushButton class has a member setIcon() which set the icon to be displayed on the button. However, there is no parameter to set the icon alignment. Is there a way to set the icon ...
0
votes
1answer
21 views

How can I pass the user details on submit using React js

I have two text fields id and name of the user . Below that a submit button . How can I pass the user name and Id to handleSubmit() on click of the submit buton ? <input type="text" name="name"...
1
vote
1answer
20 views

Show brand tags in read more button on Woocommerce archive pages

In Woocommerce, I am using YITH WooCommerce Brands plugin to handle product brands. I would like to show brand tags in woocommerce read more button. This is my code: // Shop Catalog mode if ( ...
-1
votes
0answers
7 views

How to bind a function to a checkbutton that will be executed on check/uncheck?

I want to make a Label appear and disappear upon checking/unchecking a checkbutton. I don't want to have a seperate button to execute the command. Thanks in advance!
1
vote
1answer
34 views

Python tkinter Buttons won't go below Labels

I am currently working on a simple Tic-Tac-Toe game to learn about the GUI capabilities of Python (I'm working with Tkinter). I want to place the labels above the buttons, somewhat as a title. But ...
0
votes
1answer
33 views

How to set buttons according to different screen size

Hey guys please check my code i am not able to set buttons with different screen size, i set buttons in xml but whenever i start app on 5.0 screen size it works very fine but whenever i open my app ...
-2
votes
0answers
31 views

How can I send IR HEX codes? [on hold]

I want to send Ir HEX codes with my android smartphone. So I mean when a button in the Android APK is pressed some xyz HEX code will be send through the ir blaster in the android device. Can somebody ...
-1
votes
1answer
39 views

How can I reuse a JavaScript function for different buttons?

I want to use one javascript function which can hide or show different divs (none/block). But for every different button clicked, a different div should show or hide. My function is as follows: ...
0
votes
1answer
24 views

Arduino code for multiple buttons and LED matrix

I'm trying to build a system using Arduino Uno, 8x8 LED matrix and 3 push buttons. The goal of the system is to display 3 different characters upon pushing the 3 buttons correspondingly. For instance, ...
0
votes
0answers
28 views

Ribbon button for specific style in OneNote

I'm trying to add buttons on the Styles section of the Home ribbon for specific styles but the only options I can see are to add the gallery control. Specifically I want "normal" and "code" buttons ...
-3
votes
1answer
31 views

How to make an button which shows an image

I want to make an button on which user when click it will show an image, I want it for HTML: Show image
0
votes
1answer
31 views

Swift - Update and store position of a multiple programmatically created buttons

I have a button which creates other buttons based on the class Clip seen below. Those newly created buttons are added to an array and stored in a plist. class Clip: Encodable, Decodable { var name: ...
0
votes
1answer
14 views

Enable this command through button

Right now, the following command operates automatically. I am wondering how I can create a button that will enable the getUserMedia command, and subsequently display the text below. navigator....
0
votes
1answer
12 views

How to configure Jetbrain phpstorm add action buttons to main menu / tool bar such as redo and undo buttons instead of CTRL+Y and CTRL+SHIFT+Z?

I installed new version of Phpstorm 2018. And by default it does not have undo/redo button in the main menu. I am not sure how to add them back. New Phpstorm version 2018 Problem of hiding Back and ...
-1
votes
0answers
14 views

Data Entry on Excel by Clicking on Button

I have an Excel spreadsheet with a list of customers. These customers will be paying dues and will pay either $800 or $400. Instead of entering 400 or 800 in the dues paid column, I want to click on ...
1
vote
1answer
20 views

Odoo 10 : Removing a button from customer form view

I want to remove 'Unpublished on Website' button from customer form view. This button is not part of form view so when i tried below code ,i got an error that element doesn't exist in parent view: &...
0
votes
1answer
29 views

Changing default file name download with JS?

How would I go about changing the name of a clip that is going to be downloaded by the client on a website? Each video clip currently downloaded is a default name how do I go about customising it? ...
0
votes
1answer
17 views

Odoo 10 : Using widgets to show number of survey

I created a Survey button in customer form view which opens up the view containing all the surveys assigned to that customer. Below is the screenshot: Now I want to show the number of surveys ...
0
votes
2answers
21 views

CakePHP 3.6: Change submit button label

I tried to change the label of a Submit button with no luck: <?= $this->Form->button(__('Submit'), array('name' => 'Create')) ?> How I can change it?
0
votes
2answers
18 views

Horizontal lines behind buttons HTML/CSS

I am remaking my school's student intranet for an assessment, and I have come across an issue with the buttons. As you can see in the image, there is a horizontal line seen in the gaps between the ...
-1
votes
3answers
48 views

Button click listener in fragment. Android studio

I have a problem in trying to implement a button click listener in a fragment. I don't have a problem if there is just one button, but I have 3 buttons in the fragment UI. This is what I get: ...
0
votes
1answer
17 views

How to have several buttons next to each other in a single row in Vuetify

I have six buttons in two groups of three. But I want them all to be in the same group. Here is my code: <v-layout> <v-flex xs12> <v-card class="mb-5 " ...
0
votes
2answers
18 views

Form button, without type submit, submits form

I know that type="submit" on a button, it's the same as an input. The question here is: if I have a form, without any submit button/input, why is it triggering the submit? <form method="post" ...
0
votes
0answers
23 views

Android performclick on button in webview

Is there a way to click on a button of a website in a webview? Just like performclick but for a button containing to a website. Thanks in advance! It's not a dublicate since I do not have the ...
-2
votes
2answers
24 views

How to make a Javascript canvas button change function [duplicate]

So I have a working javascript canvas button. Essentially what I am trying to do is make it so that once the button is pressed it will do something different when it is pressed again. I am relatively ...
1
vote
3answers
57 views

how do i put date orderly on each button?

I have 7 buttons. On the first button I display the current date, on the second button I want it to display the date of tomorrow, on the third one the date after that, and so on. I tried several ...
1
vote
1answer
44 views

Show/Hide records PHP MySQL

Since i can't find anything about this, i thought i should ask for help here. I'm working on a table (PHP/MySQL) which currently looks like this: https://i.gyazo.com/4115cf6fb14921ea9109580ec9c6c531....
1
vote
1answer
24 views

CSS Problem : Center Text in a box with Image

Can anybody help? I'm struggling to get some CSS- Code to work. I need three boxes; they need to look like in the picture But when I run my code the text is always below the image. Please can ...
0
votes
1answer
54 views

Count the times that the power button is pressed

I'm new in developing Android apps, what I want to do is create an application which can read the times that the power button was pressed, to make an accessibility app. Maybe if I can control or ...
0
votes
1answer
68 views

Why isn't my button pushing from my app to apple Maps?

I have a navigation app I am working on which works like a normal maps app, allowing you to search for locations through a search table etc. In the app, the user can create annotations by clicking a ...
-2
votes
5answers
50 views

JavaScript Button With Link

I am trying to set up a button that on click will redirect to a new link. I have tried so many different options and I just cannot get it to work. var button = document.createElement("button"); ...