Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [BlueGUI] RichEdit Question

Author
Message
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 26th Jun 2006 17:44
Hi, i recently purchased Blue to help with my projects.

Just wondering about the Richedit gadget, is there anyway to return a single word from within it, rather than everything that it contains?


Any help appreciated.

Cheers.
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 28th Jun 2006 21:37
anyone?
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 28th Jun 2006 23:12
I don't know, But I had to point out that you posted at 13:37
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 29th Jun 2006 22:13
amazing....
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th Jul 2006 20:10
Hi Oolite,

There isn't an explicit command to do this, though if I remember correctly (I don't have the documentation available at the moment) there is a getSelText command which will allow you to retrieve the selected text.


BlueGUI Windows Plugin
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 4th Jul 2006 20:39
ah ok, i want to retrieve the text without the user having to select it, nevermind eh.

Cheers anyway
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Jul 2006 17:49 Edited at: 10th Jul 2006 17:51
Uhm, I always use getGadgetText(RichEditId) and it always works fine here...





It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 11th Jul 2006 15:25
I want to be able to return a single word from the rich edit, not the whole thing.
redeemed programmer
18
Years of Service
User Offline
Joined: 12th Apr 2006
Location:
Posted: 12th Jul 2006 02:46
i don't have blue... yet but if i'm thinking correctly, you could return all the text and write some code to parse the text and get exactly what you want from it. that should be fairly easy...

"Never, never, never give up." -Winston Churchhill
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 12th Jul 2006 22:01 Edited at: 13th Jul 2006 14:05
Well, use getGadgetText, and then process the string yourself, by detecting spaces.

<edit> sorry, redeemed, didn't see your post.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 13th Jul 2006 00:45
Thanks for the suggestions guys, i'll be experimenting when i get some free time.

Cheers
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 9th Aug 2006 03:41
Try this function:
http://forum.thegamecreators.com/?m=forum_view&t=77930&b=6

Combined with getGadgetText(RichEditId) it can tell you the location of a word if you already know what it is, possibly useful for syntax highlighting, which is what I'm trying to do, but with little success. I'd like to know how to color a particular word in RichEdit, but that may not be what you want.

Login to post a reply

Server time is: 2024-11-22 12:00:00
Your offset time is: 2024-11-22 12:00:00