Retrieving User Input Text to label a GUI

Andy's icon

Hi,

This is probably a really basic question but I'll ask it anyway as I am stuck. I need to allow a user to input text (to name a field) and the name that they have typed appear in a message box or other appropriate object to label part of a GUI. I know of the textedit object for a user to type in but I cannot find any way of retrieving the text to display elsewhere.

Any ideas?

Many Thanks

Andy

Dr. Spankenstein's icon

Use the pak object to store the text and the set $1 command to retrieve it elsewhere.

If I could see an example of what you are working with I could explain it better and perhaps be of some help.

Thanks

Rhys

Andy's icon

Hi,

Thanks for the quick reply. I think the best way to demonstrate what I want to do is by showing you an image of my GUI as it stands at the moment. I have attached an annotated picture for you to look at.

Many Thanks

Emmanuel Jourdan's icon

On 20 janv. 07, at 22:19, Andy Brennan wrote:

> Hi,
>
> Thanks for the quick reply. I think the best way to demonstrate
> what I want to do is by showing you an image of my GUI as it stands
> at the moment. I have attached an annotated picture for you to look
> at.

For those kind of things, as you're working on a very elaborate
designed interface, I would recommend using the lcd object to display
the text over an image (put the image in background of you're lcd,
use the write message to add the text), or even the jsui object if
you know JavaScript.

Best,
ej

Dr. Spankenstein's icon

Something like this perhaps....

Max Patch
Copy patch and select New From Clipboard in Max.

nesa's icon

I like using umenu and ubumenu for labels, like this:

Max Patch
Copy patch and select New From Clipboard in Max.

seejayjames's icon

That looks pretty cool... nice work on the design! I need to spend more time on that part of development.

Here's a bit more on the text entry, an extension of Dr. Spankenstein's patch, hope it helps:

-C

Max Patch
Copy patch and select New From Clipboard in Max.

Andy's icon

Thanks for the help guys. I ended up going for the UBUMENU object as label. Its a bit limiting due to the fact that the background can't be transparent but I can work around that.

The main advantage I have found is that the size of the box does not change if a long name is input. The problem I had with the message box ideas was that a long field name would enlarge the message box and mess up my design.

many Thanks

Andy

Stefan Tiedje's icon

Andy Brennan wrote:
> Thanks for the help guys. I ended up going for the UBUMENU object as
> label. Its a bit limiting due to the fact that the background can't
> be transparent but I can work around that.

It looks as you want to make a nice pluggo. But ubumenu doesn't work in
pluggos (Its a VST limitation). You should take the umenu in transparent
mode and add some spaces to center the text if necessary...

> and mess up my design.

Yes, don't mess it, congratualtion to the design, its very beautiful,
and I would like to know how you made these nice 3D knobs, maybe you
want to share some secrets like give a hands on tutorial how you created
them?

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

f.e's icon

I get success using a jit.cellblock with only one cell, in place-edit
mode (5), with a center justification. Link it to a named texedit, which
is also linked to the jit.cellblock, then the pattr system will always
remember it !

Take a pattrstorage, put this in a bpatcher, select the label area,
enter text, save preset, do a few, recall, magic....

Max Patch
Copy patch and select New From Clipboard in Max.

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

Stefan Tiedje wrote:
> Andy Brennan wrote:
>> Thanks for the help guys. I ended up going for the UBUMENU object as
>> label. Its a bit limiting due to the fact that the background can't
>> be transparent but I can work around that.
>
> It looks as you want to make a nice pluggo. But ubumenu doesn't work
> in pluggos (Its a VST limitation). You should take the umenu in
> transparent mode and add some spaces to center the text if necessary...
>
>> and mess up my design.
>
> Yes, don't mess it, congratualtion to the design, its very beautiful,
> and I would like to know how you made these nice 3D knobs, maybe you
> want to share some secrets like give a hands on tutorial how you
> created them?
>
> Stefan
>