Is there a way to make text tag in a TextEdit control ?

or do you need to make a canvas to handle these ?
thanks.

What do you mean by “text tag” exactly ?

[quote=134658:@jean-yves pochez]or do you need to make a canvas to handle these ?
thanks.[/quote]

use the HelpTag property.

TextField.HelpTag = “HELP”

I dont find any screen copy of what I mean with google.
I want to handle keywords , like the one in iPhoto
so you have some known keyword, and they are editable in a sort of textedit and one keyword is like one character
and they are surrounded with a light blue roundrectangle
it’s not a help tag that I want.
or is there a way to insert pictures in styledtext ? I could make a picture of the keyword and insert it in the text.

something like this :

Ah, I see. I would use canvases. I don’t think there’s a way to do this with a normal textedit control.

It’s called an NSTokenField. It is available in MacOSLib.

I really would like it to be crossplatform …

Then you will have to create your own. AFAIK there is no windows counterpart. If there it would probably be in windows functionality suite.

thanks for these pertinent answers.

and is there an example of a styled text with picture insertion ?
or again does it have to be build with canvases ?

[quote=134674:@jean-yves pochez]and is there an example of a styled text with picture insertion ?
or again does it have to be build with canvases ?[/quote]

See Formatted Text Control from BKeeney Software
https://forum.xojo.com/6403-formatted-text-control-3-1-2

If you’re not looking to use an addon, you would have to do it with a canvas.

To do it right (for Mac OS X keyboard handling) you’d need to use the Text Input Canvas plugin. That’s available at GitHub - xojo/TextInputCanvas: TextInputCanvas is a plugin for the Xojo programming environment that allows developers to implement custom text input controls with international input support.

[quote=134675:@Michel Bujardet]See Formatted Text Control from BKeeney Software
https://forum.xojo.com/6403-formatted-text-control-3-1-2[/quote]
I knew this one, but I think it’s too huge for what I want to do
and also not open (thought I completely understand bob keeney wants to earn money with it !)

[quote=134725:@jean-yves pochez]I knew this one, but I think it’s too huge for what I want to do
and also not open (thought I completely understand bob keeney wants to earn money with it !)[/quote]

I mentioned it since you wanted to do cross platform, that seems like the easiest route.

For Mac, you may want to look into https://forum.xojo.com/8264-any-way-to-insert-graphic-into-textarea/10#p134403