If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Disable a GUI dynamically
4 posts
• Page 1 of 1
Disable a GUI dynamically
I want the user to select number of instances of a GUI-containing object.
A GUI object can be set to Visible or Invisible. How do you do the same thing dynamically, i.e. per user action?
A GUI object can be set to Visible or Invisible. How do you do the same thing dynamically, i.e. per user action?
- chjan
- Posts: 30
- Joined: Wed Oct 22, 2008 3:15 pm
Re: Disable a GUI dynamically
Hi,
Not sure it's the best method but here is one.
Maybe it's better to modify all control with a boolean input and use a selector and a redraw inside them.
But this way the controls could be not modified but just placed in a module.
(Don't know if there's some drawback like loosing time to redraw on base of a ghost v input ??
Edit: Finally i think that the method is ok.
This version is more similar to what is done when modifying one control.
(just connecting nothing to the v selector for the first input us another module)
Not sure it's the best method but here is one.
Maybe it's better to modify all control with a boolean input and use a selector and a redraw inside them.
But this way the controls could be not modified but just placed in a module.
(Don't know if there's some drawback like loosing time to redraw on base of a ghost v input ??
Edit: Finally i think that the method is ok.
This version is more similar to what is done when modifying one control.
(just connecting nothing to the v selector for the first input us another module)
- Attachments
-
- Control Visibility3.fsm
- Edit: visible when inside another module
- (74.07 KiB) Downloaded 150 times
Last edited by Tepeix on Mon May 20, 2024 5:50 pm, edited 1 time in total.
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Disable a GUI dynamically
That works nice.
Thanks !
Thanks !
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Disable a GUI dynamically
Perfect! I tried something very similar yesterday but did not work. I suspect I forgot the redraw feature. This variant could easily be part of the standard module as I see it. Very handy.
Thanks.
Thanks.
- chjan
- Posts: 30
- Joined: Wed Oct 22, 2008 3:15 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 99 guests