Page 1 of 1

saving / loading a blank field in preset with edit box

PostPosted: Sun May 06, 2018 7:30 am
by glibgabe
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?

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

PostPosted: Mon May 07, 2018 10:29 am
by Spogg
Hi

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

Cheers

Spogg

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

PostPosted: Tue May 08, 2018 9:01 pm
by glibgabe
Thanks Spogg,
I made this little module to better illustrate what im talking about.
-Gabe

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

PostPosted: Tue May 08, 2018 10:28 pm
by Wassaka
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

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

PostPosted: Tue May 08, 2018 11:44 pm
by glibgabe
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

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

PostPosted: Wed May 09, 2018 2:49 am
by glibgabe
now if i could just figure out how to add a scroll bar to the edit box :-P

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

PostPosted: Wed May 09, 2018 3:48 pm
by Wassaka
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:

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

PostPosted: Wed May 09, 2018 10:30 pm
by glibgabe
:o HAHA! OMG, Thanks!
:) :) :)
-Gabe

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

PostPosted: Thu May 10, 2018 5:40 am
by glibgabe
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