SynthMaker

Edit control for text view

Archive · 2011 30 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

billv ·

I've been trying to make the 'text view" module "writeable" by inserting a 'edit control' module, but can't get any results. Is it possible??

rl ·

I tried and it worked (IIRC the trick was to reduce Max Lines to a much smaller value (e.g. 10)). But the effort was pretty pointless for me, the edit control does not accept line breaks, thus: no multi-line entries.

philter5 ·

here is one of my tries. a really bad workaround but perhaps enough for some of you. must be optimised , it´s just a raw example i kicked together in a few minutes

billv ·

Thanks guys. Hopefully it will get looked at in SM 3. A good "Edit Text" module would help to open SM a bit. For eg: A lyrics VST, so you can have all your words in the actual song file.

philter5 ·

you are right billv BUT i see other important uses for this, in a lyric VST it is MAYBE more usefull IF you have single words/ Sentences only... i think there is no way atm to edit a long text by clicking at point you want to edit. so perhaps we should split the string so that we can scroll trough every word to edit it....mhh i think i have a idea.

billv ·

Yeh I know, there heaps of uses: I'm thinking database type stuff. I've had a go at the Lyrics VST again-it's much like yours, with lots of edit boxes. Works in host fine.

infuzion ·

billv wrote: ...with lots of edit boxes.

Thanks for the uploads guys! What a bummer that there is not full text box control in SM! I reduced & added green highlighting to the Edit Box module. Makes it easier to see quicker what line you are editing?

philter5 ·

infuzion wrote: billv wrote: ...with lots of edit boxes.

Thanks for the uploads guys! What a bummer that there is not full text box control in SM! I reduced & added green highlighting to the Edit Box module. Makes it easier to see quicker what line you are editing?

strange thing is that we actually HAVE a full text box control but ONLY inside SM. until now NO GUI version that could be used by the end user... 😝

billv ·

Alternate method for writing multi line. Uses edit box and a "Label" module. Dodgy but it works. I've re-posted this 'cause I forgot to put an array in the first post, so the load/save/clear wasn't smooth.All good now

DigitalWhiteByte ·

I tried to implement your idea, I hope. 😉

DigitalWhiteByte ·

New Version Find bug in trigger execution. Downloadable in preview post.

infuzion ·

DigitalWhiteByte wrote: I tried to implement your idea, I hope.

Nice job guys! Reminds me of MMO chat windows.

billv ·

DigitalWhiteByte wrote: I tried to implement your idea, I hope.

Nice work. I knew someone would have the smarts to pull it off. Makes it feel a little more like a normal textbox. The only problem I saw was that no editing is possible once the enter key is pressed. I guess something had to give way, so to speak. All good.

infuzion ·

billv wrote: The only problem I saw was that no editing is possible once the enter key is pressed. I guess something had to give way, so to speak. All good.

There is a ListBox selector somewhere on the forums a few years ago that allows a line in a String Array to be selected...

billv ·

infuzion wrote: allows a line in a String Array to be selected

Thanks mate. I wasn't thinking straight. I got the List box but didn't need it. I just replaced the "Queue" module with a "Stack Queue" module. Too easy. Now we can edit and replace any line. Were getting there slowly. I think in the end SM will have to cough up with a real textbox. Don't get me wrong-were all having fun and learning trying to make one, but I think a user textbox is a "core" module and should be inside SM. Lots of projects are on "Hold" because of this. But I don't think we'll ever see it. The SM developers seem determined to make us create everything from scratch.

billv ·

Added: Controls for Font,Font size,Font Colour,B/G Colour. Found an "Uppercase" module a while back, put that in as well. Needs a vertical scroller......

infuzion ·

billv wrote: Needs a vertical scroller......

Tried searching for ListBox yet? edit after your new upload: Output of "Scroll Indicator": "De-thread" + Sample & Hold

billv ·

I'll take another look at the list box. I've got a vertical scrollbar on now. But it's a bit too buggy now. Might just run with one of the earlier versions or start from scratch.

infuzion ·

The original "ListBox" seems to be working with the De-thread like I described above. Why not start with that, then add text editing from the output from the ListBox?

billv ·

Yeh I'm still struggling with the fix for the List Box. Ha ha...Will get there.....

infuzion wrote: Output of "Scroll Indicator": "De-thread" + Sample & Hold

kirkagur ·

hi

I started to work on a text editor maybe it will be helpful

just click on the textarea and start typing to clear right Dbclick -Enter to move to the next line

right now there is no way to edit the text and its pretty useless.

billv ·

kirkagur wrote: right now there is no way to edit the text and its pretty useless.

Yeh but thats a great start. Looks and feels like the real thing. Nice clear osm too. Look forward to see how you tackle the editing part.

pall ·

Here another version multiline with editing facility. I think it useful?

kirkagur ·

now we are talking 🙂

UPDATE: you can now edit any line just click on it.

*there are some bugs that I know about like : if you try to enter after the last line is visible funky things happens.

its almost there let me know if you find any more bugs.

infuzion ·

Awsome kirkagur! Nice to see you back 🙂 Minor bug: If the text array is long enough, & the scroll bar comes up (good idea!), since it is on a lower layer you can not select the scroll bar. Easy to fix; disconnect the View link of V Scroller from Background, then connect directly from MGUI.

Minor complaint: I actually find in general that wireless links can & often make a OSM harder to understand. I used SM for a long time before them, so I have techniques to keep the wire spaghetti low. But when I try to read an OSM with many wireless links like this one, I have no idea what is feeding what where. So I have to play "disconnect the wireless" to find how many & what a Link is sending to. This is not like in C++, where you have automatic highlighting & search of a text file. So if you have the time, please rework to reduce the wireless links.

I have an idea how to automate finding links & modules, but I'm not sure if that time will be well spent...

kirkagur ·

infuzion wrote: Awsome kirkagur! Nice to see you back 🙂 Minor bug: If the text array is long enough, & the scroll bar comes up (good idea!), since it is on a lower layer you can not select the scroll bar. Easy to fix; disconnect the View link of V Scroller from Background, then connect directly from MGUI.

Minor complaint: I actually find in general that wireless links can & often make a OSM harder to understand. I used SM for a long time before them, so I have techniques to keep the wire spaghetti low. But when I try to read an OSM with many wireless links like this one, I have no idea what is feeding what where. So I have to play "disconnect the wireless" to find how many & what a Link is sending to. This is not like in C++, where you have automatic highlighting & search of a text file. So if you have the time, please rework to reduce the wireless links.

I have an idea how to automate finding links & modules, but I'm not sure if that time will be well spent...

I like spaghetti but not in synthmaker 🙂 I think that I will stick with the wireless one

*this ver didnt fix any bugs. 96.05489% of the wireless links are gone...have fun with it

pall ·

Hi kirkagur! I know that my schematic is not as effective as yours, but I tried I also... 🙂 It is another version, "easier". I would not want to upset anyone.

sunsynth ·

Hi guys...

here one more just for fun and with a little chaos and work left (like usual by me 😉

keep on doing!

P.S.: sorry - no time left 4 it!

infuzion ·

kirkagur wrote: I like spaghetti but not in synthmaker 🙂 I think that I will stick with the wireless one *this ver didnt fix any bugs. 96.05489% of the wireless links are gone...have fun with it

Thanks! I understand this one much better!

infuzion ·

kirkagur wrote: I like spaghetti but not in synthmaker 🙂 I think that I will stick with the wireless one *this ver didnt fix any bugs. 96.05489% of the wireless links are gone...have fun with it

I'm not sure what bugs you have, but here is an untangled version. I prefer "wired" links since that gives you direct control over link-trigger-order, which sometimes is a source of bugs. It also allows faster reading of OSMs & modules. I plan to make a tutorial out of it sometime, but first I need to play Global Agenda to let off some steam 🙂

Before/After: Primitives: 566/476 Modules: 49/39 Links: 697/595 Wireless: 15/12 Uncompressed file size: 11,246b/8,987

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.