6,242 questions
0
votes
1
answer
45
views
Constant stage size ratio
I’m trying to keep a constant ratio (1:1) on a stage when I’m resizing it.
Here is the code I’m using:
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans....
Advice
0
votes
4
replies
32
views
X11 prevent existing window from recieving events (specifically a mouse up event)
Let's say there already exists a window.
I want the user to be able to hold mouse down on the window, prevent the window from receiving the mouse up events, and the window should think that the mouse ...
0
votes
1
answer
81
views
How to get global mouse coordinates in python without using PyautoGUI (Windows and Wayland/Fedora)
I'm looking for a way of retrieving the current X+Y coordinates of the mouse cursor in python without using the PyAutoGUI library. pyautogui.position() works, but I want to avoid dependencies like ...
1
vote
0
answers
38
views
Is it possible to create a SDL3 wrap from an existing window without disturb existing behavior?
I'm trying to render audio plugin UI using SDL3. I want to create an SDL3 window, and then make it as a child into an existing window that is provided by host DAW program.
However, if I wrap the ...
10
votes
2
answers
669
views
Calling MessageBox in a mouse event handler disables the ToggleButton toggle
I have a ToggleButton with a PreviewMouseDown event handler. Everything works fine. But if I add MessageBox.Show("Message") to this handler, the ToggleButton stops switching to the pressed ...
0
votes
0
answers
101
views
Add custom events in components
Dioxus components can add EventHandlers on predefined Node attributes
eg:
fn app() -> Element {
let mut moveCount = use_signal(|| 0);
rsx! {
h1 { "Mouse mouvement counter: {...
1
vote
1
answer
123
views
Is there a reason my EventListeners don't work?
I'm creating a puzzle game, where the user uses mouse clicks to move the "cells" or numbers into the right order.
It was going fine until I decided to add a block of code that lets the user ...
-2
votes
1
answer
82
views
I need help getting the MOUSEWHEEL event to work [duplicate]
i'm trying to make it so that a surface moves whenever the user scrolls the mousewheel, like how this website moves when you scroll.
here's the code i'm working with so far.
scrollVal=74
for event in ...
2
votes
1
answer
141
views
Changing Mouse Cursor on a Mouse Scroll Event
I found this example on a website, but neither event is triggered, even though the code appears to be correct.
import javafx.application.Application;
import javafx.scene.Cursor;
import javafx.scene....
0
votes
0
answers
74
views
Is there an ANSI code to get the XY of the mouse in a terminal using ANSI without rounding down X?
I have two programs that run on my MacBook (26.0). I can get the mouse to return the current coordinates on a button action with \e[?1000h\e[?1006h. This reports the mouse position on mouse button ...
0
votes
0
answers
102
views
Remapping side keys in bluetooth mouse (Ubuntu, Wayland)
I got a vertical mouse with very annoying side keys (BTN_SIDE/BTN_EXTRA) that I accidentally press. I'm trying to disable them but on Wayland it looks impossible.
I tried a hwdb override, basically I ...
1
vote
1
answer
84
views
Storing mouse click event coordinates of graph with matplotlib
I am attempting to store coordinates from two mouse clicks in an interactive matplotlib graph in JupyterLab. I have managed to interact with the plot and get the x and y coordinates to print upon ...
0
votes
1
answer
100
views
Angular using MouseEvent instead of PointerEvent it TypeScript
When I started learning AngularJs i ran into something weird
in a component when i write a click event and get send the $event as the parameter the type of event has to be MouseEvent in the TS file, ...
0
votes
0
answers
64
views
Angular PrimeNG Tree – handle single-click and double-click on the same node (open vs. expand / collapse)
Problem
I’m using the PrimeNG <p-tree> component (Angular 17, PrimeNG 17.0.1).
I’d like:
single-click → show the node’s details in a side panel (i.e., “open” the node)
double-click → expand or ...
0
votes
0
answers
61
views
Why don't the custom markers (lines and circle) appear on mouse click in OpenCV using setMouseCallback?
I'm working on an object tracking application using OpenCV and YOLOv8. I want to display a custom marker (a circle and two crossing lines) at the center of a detected object when I click on it.
I'm ...