PDA

View Full Version : How to do text edit box in IPlug


cc_
08-29-2009, 01:19 AM
I need a couple of text edit boxes - any ideas of the best way to do this (Windows and/or OSX)? Just a single line were people can click and enter some text, but one that is always there (not like the current right click on a parameter to edit).

Jeffos
10-13-2009, 12:13 AM
I'm also interested! did you manage to get your textEdit ? I lost myself in the WDL depths while trying to sort this out...

I'd like to see a project example using "classical" components, integrated in the GUIs (i.e. not in "windows"): textEdit, dropdown, listBox, etc..
is it possible with iplug ?

cc_
10-13-2009, 03:28 AM
I got something working - a text field that you can click and edit the text, but it needs a bit of cleaning up... It doesn't look like a standard windows textedit, but then they usually don't on plugins.

I as part of that I also implemented all the right click editing of values on OSX (the OSX editing functions are just blank in the current IPlug). Once I have it cleaned up I'll get on to schwa and see if he wants to roll it into the IPlug distribution.

I haven't felt the need for dropdowns and listboxs, but I did implement a spinner control. It is a text display that can be changed by dragging like a knob. As it can display enumerated parameters it can be used for the same sort of things dropdowns and listboxes can (well, single selection only).

I can post up the spinner code if anyone is interested.

Jeffos
10-13-2009, 06:02 AM
Great work cc!
I'm looking forward to trying it out when you release the text field component (subscribed to the thread anyway)

I haven't felt the need for dropdowns and listboxs, but I did implement a spinner control. It is a text display that can be changed by dragging like a knob. As it can display enumerated parameters it can be used for the same sort of things dropdowns and listboxes can (well, single selection only).

I can post up the spinner code if anyone is interested.

Oh! yeah! someone is more than interested here. It would be really appreaciated...

cc_
10-13-2009, 06:47 AM
Here's the spinner then: http://forum.cockos.com/showthread.php?t=44293

stahlwerk
12-16-2009, 02:47 AM
As part of that I also implemented all the right click editing of values on OSX (the OSX editing functions are just blank in the current IPlug). Once I have it cleaned up I'll get on to schwa and see if he wants to roll it into the IPlug distribution.

CC, did you get around to cleaning up your code for this? I will probably need this functionality, and any code I don't have to write myself is good code... ;)

Sidenote: Hi everyone, new here. Big thanks to Schwa for a very nice package, and to everyone else contributing.

cc_
12-17-2009, 01:40 AM
Not done it yet, I've been distracted from by updating my other products. I should get back to it in the next few weeks....

stahlwerk
12-17-2009, 08:39 AM
Not done it yet, I've been distracted from by updating my other products. I should get back to it in the next few weeks....

Thanks, that would be great! And if you are lazy you could just post a diff of the relevant files here and let someone else do the cleaning up. (I guess only "IPlug/IGraphicsMac.{h,mm}" are affected?)