clickable button that interacts with workflow #2228
Answered
by
NeuroThom
edmundchong
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Hi Edmund. That's quite a creative hack! Would the `Button` node from `Bonsai.GUI` not serve your purpose? This node has a visualiser that appears as a button with your chosen text and font that sends an event when it is pressed. If you send this event or the result of its operation to a shared subject you can use it to enact or trigger things elsewhere in the workflow.
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: edmundchong ***@***.***>
Sent: Wednesday, April 9, 2025 11:18:30 AM
To: bonsai-rx/bonsai ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [Bonsai] clickable button that interacts with workflow (Discussion #2228)
Hi! Is there a way to create a simple visual button that the user can click on, overlaid on the workflow editor (with the other visualizers) while it is running, that interacts with the rest of the workflow (e.g. sends a simple value)?
I can do it in a really hacky way with a ObjectTextVisualizer with some text on it as a fake button, and using MouseMove + MouseCursor to detect when the user clicks anywhere within the boundaries of that fake button, but I can't quite generalize the coordinates of these boundaries easily across different monitor sizes.
Thanks!
—
Reply to this email directly, view it on GitHub<#2228>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI6XU4OLKFB5S55VX24LTZD2YTXXNAVCNFSM6AAAAAB2YSDTOCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGE4DGMBRGE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
edmundchong
-
|
Hi Edmund. I believe it is published on nuget, so you should find it under the nuget.org source. In case it's useful, I can see it under nuget source https://api.nuget.org/v3/index.json. There are many very cool new features, like the ability to mash up visualisers into control panels and generally play more with the visualisers. Docs page for you here https://bonsai-rx.org/gui/index.html
You'll also
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: edmundchong ***@***.***>
Sent: Wednesday, April 9, 2025 11:39:04 AM
To: bonsai-rx/bonsai ***@***.***>
Cc: TomRyan ***@***.***>; Comment ***@***.***>
Subject: Re: [bonsai-rx/bonsai] clickable button that interacts with workflow (Discussion #2228)
Hi Tom,
Thanks, this would work great! However, I can't quite see Bonsai.GUI in the package manager (across any of my package sources)--is it part of some other package?
—
Reply to this email directly, view it on GitHub<#2228 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI6XU4ON3SIGNDYNAAPJULT2YT2ERAVCNFSM6AAAAAB2YSDTOCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZXGY2TOMI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Is there a way to create a simple visual button that the user can click on, overlaid on the workflow editor (with the other visualizers) while it is running, that interacts with the rest of the workflow (e.g. sends a simple value)?
I can do it in a really hacky way with a ObjectTextVisualizer with some text on it as a fake button, and using MouseMove + MouseCursor to detect when the user clicks anywhere within the boundaries of that fake button, but I can't quite generalize the coordinates of these boundaries easily across different monitor sizes.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions