Questions tagged [button]

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

button
Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

I want to use a function to capture the value of each code on each button on my simple calculator project

I did a calculator project that has numerous buttons using the onclick event to assign codes to each button, I want to use a function to avoid repeating codes on each button, help please I tried using ...
0 votes
0 answers
6 views

NextUI dom nested button warning with <Accordion />

I'm trying to add a button as the startContent property inside an AccordionItem in in NextUI. The problem is that the AccordionItem uses as an implementation but I really have to add a button ...
0 votes
1 answer
35 views

Why doesn't my WPF Grid inside a Button's DataTemplate stretch correctly?

I have a WPF ItemsControl that generates buttons. These buttons have two sides one for the name of the item, the other for the prices thereof. My issue is the fact that the Grid columns (see code ...
-2 votes
0 answers
21 views

Unresponsive login and registration buttons on Wix site

I'm currently working on an e-commerce project using Wix, and I'm trying to implement user authentication. When a user clicks on the login or register buttons, I want them to be added to a database so ...
0 votes
0 answers
16 views

Adding an image to a tkinter button: wht is the button blank? [duplicate]

I have read the previous posts about adding an image, and copied the code, altering the variable names for my own code. I get a blank button. I am showing a canvas where I have plotted some graphics. ...
0 votes
2 answers
42 views

Unity button text not displayed

I have a problem with my unity project, when I insert a UI Canva and a button with text, the text not showed up, I tried to increase the font size, the opacity, change the text color, every possible ...
0 votes
1 answer
13k views

Python Tkinter Button with If Else statements

I want to bind the Start_Button with 2 possible functions: If Choice_1_Button is clicked and then the Start_Button, the Start_Button should call foo1. But when the user clicks Choice_2_Button then ...
0 votes
1 answer
923 views

Menu button in Swift using UIkit

How can I recreate this type of menu in Swift using UIkit? Is it possible to play the same animation as well? https://i.stack.imgur.com/h5kXC.jpg
0 votes
1 answer
65 views

Enable == False is not working for UI disabled button in tosca

We are using angular 9 and typescript as Frontend and trying to scan a UI page. I was able to scan. but for the button the enable is always coming true even in UI the button is disabled. I want to ...
0 votes
1 answer
30 views

On button click font is getting bigger

The font's on Some of my webpages are behaving wierdly. When I click the button to reveal the text, the text above it is becoming bigger. Is there any fix for this? Especially, this is happening on ...
0 votes
1 answer
45 views

How to shift focus and undo focus from one widget to other in flutter?

I've been new to flutter, and I am learning right now how this focus works? So far from ai chats and stackoverflow [links][1] (one of the best links I found) I have come to know about `focusnode` but ...
1 vote
1 answer
12 views

Disable a button only during an expensive operation in streamlit

python 3.12.2 streamlit 1.33.0 I have an expensive operation and would like to disable a button to execute it only during the operation. In other words, there is an enabled button. When you press it, ...
0 votes
0 answers
14 views

In Winforms, Clicking Disable button, after enable event triggers

I have 2 buttons. Search and clear. Search takes some time, So cursor set as waiting cursor. While search loading time. I Disable Clear button. But i clicked disabled clear button. After search ...
0 votes
1 answer
17 views

vue js using onclick event on datatable

currently I'm working on vue js 3, using simple-datatables this's the codesandbox it's a simple example, each time when I tried to use the button "details" don't work function: const ...
-2 votes
0 answers
14 views

How to click button on discord with python discum module I have tried alot but dead up with error please help ig anyone can

import discum bot = discum.Client(token='token') from discum.utils.button import Buttoner @bot.gateway.command def message_data(resp): m = resp.parsed.auto() channelID = m[' '] ...
1 vote
0 answers
47 views

On tap for CSS?

Recently I've been trying to make a clicker game so I added an effect where a button gets smaller when you click it and reverts when you release, but since many people simply tap a button, I would ...
1 vote
1 answer
19k views

How to get LIKE button url from Facebook webpage

I would like to synchronize LIKE buttons on Facebook with other webpage. Simply after I post on FB some article/video, there is a LIKE button. How do I get url of it, so I could add it to that other ...
0 votes
1 answer
19 views

Python - tkinter - Button - wrong command - what is wrong?

I'm creating a game called NIM in Python stack = heap This was my previous code with fixed amount of stacks (heaps) and everything is working fine class Game: def __init__(self): self....
0 votes
0 answers
15 views

Moving Run and Run Selection buttons to left

Is it possible to move those buttons to the left side like exists on PowerShell ISE? See attached photo. Thanks.
1 vote
1 answer
45 views

How to reference a button created in a foreach loop

How to reference a button created in a for each loop I have the following code where I apply a custom buttonStyle to a set of buttons created using a ForEach loop. I’m trying to make it so that two ...
0 votes
1 answer
15 views

One Java function fails to activate after another begins

I am very new to coding. I am trying to create a series of maps of Hawai'i, where the political borders change as you select buttons with dates. I am doing this by using javascript to change the image ...
74 votes
16 answers
50k views

SwiftUI: how to handle BOTH tap & long press of button?

I have a button in SwiftUI and I would like to be able to have a different action for "tap button" (normal click/tap) and "long press". Is that possible in SwiftUI? Here is the simple code for the ...
-2 votes
1 answer
35 views

Copying text in a div

I have a JavaScript code that generates styled text: function applyStyle() { var inputText = document.getElementById('userInput').value; var selectedStyle = document.getElementById('styleSelect')....
-1 votes
2 answers
87 views

Visual Studio Blue Debug and Run button has disappeared

The "debug and run" button which is located in blue box has disappeared in my visual studio code. I couldn't found any solutions for this problem. I know that I have another choice to run ...
0 votes
3 answers
836 views

How can I make my input box outline disappear?

When I hover on the button, it shows the input box (shown in picture number 1) My code is written like this: .search-btn{ position: relative; top: 30%; left: 30%; transform: ...
-3 votes
0 answers
34 views

Disable button on SwiftUI

I have the following view in SwiftUI and I have a problem with the button as it doesn't get enabled if I fill the two textfields mentioned in the condition. import SwiftUI struct SettingsView: View { ...
0 votes
2 answers
49 views

Changing Image Based on What Image is Shown

I have three images-one shown, the other two with display:none. I'd like, when I press the button, for the script to check which image is currently being displayed and switch to the next image ...
1 vote
1 answer
47 views

How to scroll every 4 div specifically, with side scrolling buttons?

How to scroll every 4 div specifically, with side scrolling buttons? On a previous question I asked about how to loop and simplify codes of multiple side scrolling buttons in every overflow-x: How to ...
-1 votes
0 answers
24 views

How to create custom checkboxes/buttons?

I want to create a custom button or checkbox that changes the color of the button and have the text in it like in this photo: I tried to search how to do this but I didn't find a tutorial or ...
0 votes
0 answers
21 views

SwiftUI assistance with making the background a tappable object on Apple Watch

I currently have a small bit of code set up where I'm looking to be able to tap the button and perform an action while tapping the background of the button performs a different action. I seem to have ...
2 votes
3 answers
36k views

Changing the color of a Push Button in QT Creator

How do I change a buttons color? I have found ways to do it by writing button->setStyleSheet("* { background-color: rgb(255,125,100) }"); in Ui_Window.h But everytime I qmake, the Ui_Window.h ...
0 votes
2 answers
1k views

How to create go back button after reload Symfony/twig

I use Symfony 4.4. I have a go back button in my Twig template. {% if previousPageboolean == false %} <a class="d-block text-decoration-none cursor px-4 pt-3" href="{{app....
0 votes
1 answer
60 views

Copy Row of Cells to Another Sheet for Repeated Use

Context: I am making an Excel workbook where others can open it and enter 3 separate values in 3 cells, in a row (see below), with their initials attached to it. List Values x value input1 y value ...
-4 votes
1 answer
26 views

HTML Input search field with button form field [closed]

I have a input search field with a button and would like for that to interact with my html page when a query is typed a song that the user has typed out in on the page search field have it play a song ...
-2 votes
0 answers
29 views

Button not showing, Python [closed]

I'm extremely new to Python, but somehow my code doesn't work. Why isn't the button included? I've also been inspired by other codes, but it just doesn't work. import discord import discord.ui from ...
111 votes
10 answers
111k views

How to handle Back button with in the dialog?

I am developing an application that when the button is pressed, it opens a dialog with OK and Cancel buttons. It works fine. When the user presses the back button, I am handling this as follows ...
4 votes
4 answers
12k views

Display image in content presenter in button

I have a button with a style that displays an image inside it. I would like to be able to specify the image it uses using the Content property on the button (or some other means). How can ...
1 vote
2 answers
64 views

How to set a return url for Paypal subscription button?

Paypal subscription buttons now need to be registered on the Paypal website. Unlike the old methods that enabled us to set return urls and invoice number, we must now use JavaScript to call the Paypal ...
-2 votes
1 answer
39 views

How can I make sure that when I press the box/image on it, I'm redirected to another page?

rn I´m building an online shop for my school. And i have Images or Boxes with pictures of the products. Now I want that people can press the image and get instantly redirected to another page with ...
0 votes
1 answer
38 views

How to show one view on another view in SwiftUI

I have created one green coloured view with back button and imageview and two texs and search button. now if i click on searchBtn i need to show one white coloured view with textfield and close button....
9 votes
4 answers
4k views

How to add text inside cupertino switch flutter

I want to add text inside cupertino switch like attached image.. Is there a way to do it?
-2 votes
0 answers
15 views

Read specific text aloud using button [closed]

I am looking for help in directing the Edge browser accessibility 'read aloud' function to only read a specific area of text. I would like to use a button or clickable area to initiate this action ...
0 votes
1 answer
48 views

How to use JOptionPane?

I'm learning Java and in one of my exercise I have to do a logging frame which displays warning after push cancel button, before typing id or password. import javax.swing.JOptionPane; public class ...
0 votes
0 answers
21 views

How to make a button round in kivy with screen manager

I need to make a button round for my main screen for this app I'm making but I cannot use the 'RoundedRectangle@Button' method because my code keeps throwing an error that screen manager only takes ...
0 votes
1 answer
8k views

change button color when clicked and change others back to original

I have a buttonbar with 11 buttons that causes page jumps in a page displayed in an iframe. I want these buttons to change color when clicked, so they indicate which page is being displayed. That´s ...
0 votes
2 answers
10k views

call another applet in an applet

I want to call (just display another applet)one applet from another applet . I just placed a button on my first applet and on its actionperformed method used the getcontextapplet() method. But second ...
0 votes
2 answers
579 views

Place button on top of button type=file with custom text

I am trying to create the illusion of a custom upload file button as the CSS for <input type='file'/> is limited and a pain. I am currently using the code below: HTML <button type="...
0 votes
0 answers
6 views

Modifying Default Styles of DT Package Download Buttons in R Markdown [duplicate]

I'm not happy with the default colors and fonts of the download buttons (copy, excel, pdf, csv, print, etc.) in the option settings of the datatable in the DT package in R Markdown. How can I modify ...
0 votes
0 answers
11 views

WordPress Botiga Theme: Mobile Buttons Not Responsive, Works on PC - Lightspeed Caching Enabled

I'm currently building an website on WordPress (Botiga theme). all was good, there were no issues with the site functionality, payments tested and I was about to go forward with the website. but ...
5 votes
2 answers
17k views

Create custom button(s) for CKeditor 5 toolbar

I've managed to customize the header and highlight dropdowns for CKEditor 5 – classic editor build by creating a new custom build. But I don't know how to add additional buttons to the toolbar. For ...

1
2 3 4 5
814