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
9 posts
• Page 1 of 1
saving / loading a blank field in preset with edit box
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
Hi
It would help if you could upload your schematic or an example that shows the issue.
Cheers
Spogg
It would help if you could upload your schematic or an example that shows the issue.
Cheers
Spogg
-
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
Thanks Spogg,
I made this little module to better illustrate what im talking about.
-Gabe
I made this little module to better illustrate what im talking about.
-Gabe
- Attachments
-
- saving blank fields in preset.fsm
- (8.86 KiB) Downloaded 844 times
- glibgabe
- Posts: 6
- Joined: Sat Jan 14, 2012 12:38 am
Re: saving / loading a blank field in preset with edit box
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
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
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
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 910 times
- glibgabe
- Posts: 6
- Joined: Sat Jan 14, 2012 12:38 am
Re: saving / loading a blank field in preset with edit box
now if i could just figure out how to add a scroll bar to the edit box
- glibgabe
- Posts: 6
- Joined: Sat Jan 14, 2012 12:38 am
Re: saving / loading a blank field in preset with edit box
glibgabe wrote:now if i could just figure out how to add a scroll bar to the edit box
I made it too!
Here is:
- Attachments
-
- saving blank fields in preset_WITH_SCROLL.fsm
- (19.14 KiB) Downloaded 890 times
- Wassaka
- Posts: 85
- Joined: Wed Dec 30, 2015 3:41 am
Re: saving / loading a blank field in preset with edit box
HAHA! OMG, Thanks!
-Gabe
-Gabe
- glibgabe
- Posts: 6
- Joined: Sat Jan 14, 2012 12:38 am
Re: saving / loading a blank field in preset with edit box
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
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 882 times
- glibgabe
- Posts: 6
- Joined: Sat Jan 14, 2012 12:38 am
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 70 guests