saving / loading a blank field in preset with edit box

For general discussion related FlowStone
Post Reply
glibgabe
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

saving / loading a blank field in preset with edit box

Post 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?
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

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

Post by Spogg »

Hi

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

Cheers

Spogg
glibgabe
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

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

Post by glibgabe »

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 898 times
Wassaka
Posts: 85
Joined: Wed Dec 30, 2015 3:41 am

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

Post 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
Attachments
saving blank fields in preset_fixed.fsm
(9.47 KiB) Downloaded 901 times
glibgabe
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

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

Post 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
Attachments
saving blank fields in preset_fixed TWO.fsm
(9.56 KiB) Downloaded 964 times
glibgabe
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

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

Post by glibgabe »

now if i could just figure out how to add a scroll bar to the edit box :-P
Wassaka
Posts: 85
Joined: Wed Dec 30, 2015 3:41 am

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

Post 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:
Attachments
saving blank fields in preset_WITH_SCROLL.fsm
(19.14 KiB) Downloaded 946 times
glibgabe
Posts: 6
Joined: Sat Jan 14, 2012 12:38 am

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

Post by glibgabe »

: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

Post 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
Attachments
saving blank fields in preset_WITH_SCROLL TWO.fsm
(15.58 KiB) Downloaded 932 times
Post Reply