Support

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

Disable a GUI dynamically

For general discussion related FlowStone

Disable a GUI dynamically

Postby chjan » Wed Mar 02, 2022 6:00 pm

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?
chjan
 
Posts: 30
Joined: Wed Oct 22, 2008 3:15 pm

Re: Disable a GUI dynamically

Postby Tepeix » Wed Mar 02, 2022 7:20 pm

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)
Attachments
Control Visibility2.fsm
(74.13 KiB) Downloaded 371 times
Tepeix
 
Posts: 354
Joined: Sat Oct 16, 2021 3:11 pm

Re: Disable a GUI dynamically

Postby RJHollins » Wed Mar 02, 2022 8:14 pm

That works nice.

Thanks !
RJHollins
 
Posts: 1568
Joined: Thu Mar 08, 2012 7:58 pm

Re: Disable a GUI dynamically

Postby chjan » Thu Mar 03, 2022 8:55 am

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.
chjan
 
Posts: 30
Joined: Wed Oct 22, 2008 3:15 pm


Return to General

Who is online

Users browsing this forum: No registered users and 103 guests