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

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

saving / loading a blank field in preset with edit box

For general discussion related FlowStone

saving / loading a blank field in preset with edit box

Postby glibgabe » Sun May 06, 2018 7:30 am

I'm having a hell of a time trying to get the "edit box" to save and load blank fields with a preset. does anybody know how to do this?
glibgabe
 
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

Re: saving / loading a blank field in preset with edit box

Postby Spogg » Mon May 07, 2018 10:29 am

Hi

It would help if you could upload your schematic or an example that shows the issue.

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: saving / loading a blank field in preset with edit box

Postby glibgabe » Tue May 08, 2018 9:01 pm

Thanks Spogg,
I made this little module to better illustrate what im talking about.
-Gabe
Attachments
saving blank fields in preset.fsm
(8.86 KiB) Downloaded 847 times
glibgabe
 
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

Re: saving / loading a blank field in preset with edit box

Postby Wassaka » Tue May 08, 2018 10:28 pm

Hi glibgabe, I solved your problem!! It seems that the preset manager can't save blank fields for some reason, so what I did was replace the blank field by a string like "-none-" into the preset. When the preset manager loads the "-none-" string, it will be replaced by the blank field again.

The schematic is a bit disastrous, since it is not optimized, but that part is left to you.

- Wassaka
Attachments
saving blank fields in preset_fixed.fsm
(9.47 KiB) Downloaded 850 times
Wassaka
 
Posts: 85
Joined: Wed Dec 30, 2015 3:41 am

Re: saving / loading a blank field in preset with edit box

Postby glibgabe » Tue May 08, 2018 11:44 pm

Thanks Wassaka!
I actually tried a similar approach but failed miserably, your solution was much more elegant and effective than mine.
I cleaned it up a little and changed a couple things from your schematic.

1- The output string from the edit box on your schematic wasn't reflecting the change on loading a preset sou i connected the "after change" trigger from the "preset string" to the module output.
2- I changed the "-none-" placeholder to something even less likely
to be deliberately typed into the edit box ( "!#BLANK#!" )

Thank you so much for your help!
-Gabe
Attachments
saving blank fields in preset_fixed TWO.fsm
(9.56 KiB) Downloaded 911 times
glibgabe
 
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

Re: saving / loading a blank field in preset with edit box

Postby glibgabe » Wed May 09, 2018 2:49 am

now if i could just figure out how to add a scroll bar to the edit box :-P
glibgabe
 
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

Re: saving / loading a blank field in preset with edit box

Postby Wassaka » Wed May 09, 2018 3:48 pm

glibgabe wrote:now if i could just figure out how to add a scroll bar to the edit box :-P

I made it too!
Here is:
Attachments
saving blank fields in preset_WITH_SCROLL.fsm
(19.14 KiB) Downloaded 891 times
Wassaka
 
Posts: 85
Joined: Wed Dec 30, 2015 3:41 am

Re: saving / loading a blank field in preset with edit box

Postby glibgabe » Wed May 09, 2018 10:30 pm

:o HAHA! OMG, Thanks!
:) :) :)
-Gabe
glibgabe
 
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

Re: saving / loading a blank field in preset with edit box

Postby glibgabe » Thu May 10, 2018 5:40 am

Hi Wassaka, Thanks again for helping me so much!
I cleaned it up a bit the best I could, but because i don't realy understand most of "magic" in your schematic I kept my
hunting for redundancy and streamlining attempts to a minimum.
I also added some stuff to the module properties (scroll bar colour and alpha, scroll bar width).
the only thing popping out to me is that the padding of the text doesn't adjust to changing the scroll width, but other than that its looking pretty good :-)
-Gabe
Attachments
saving blank fields in preset_WITH_SCROLL TWO.fsm
(15.58 KiB) Downloaded 884 times
glibgabe
 
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am


Return to General

Who is online

Users browsing this forum: No registered users and 69 guests