Re: highlight text in text widget [message #66098] |
Thu, 02 April 2009 15:33 |
neon
Messages: 9 Registered: October 2005
|
Junior Member |
|
|
hmm ok. I guess I have to seek a different route. I've now implemented
a kind of a filter. so displays only the ones that match the keyword.
It would have been a lot easier if the selection worked as my text
widget is also editable.
Thanks for the help,
--
Nirbhik
On Apr 2, 4:16 pm, mgalloy <mgal...@gmail.com> wrote:
> neon wrote:
>> Hi,
>> I am trying to make widget that displays text. I also want a search
>> keywords available. The way I have envisioned is something similar to
>> emacs search, i.e. it highlights all the occurrences of the keyword
>> that you are interested in. I am trying to find out if that kind of
>> highlighting be done in widget_text or some other widgets. Can anyone
>> help?
>
>> Thanks
>
> The only option I know of is the SET_TEXT_SELECT keyword to
> WIDGET_CONTROL. But this only allows a single selection. (Further calls
> always clear the selection first.)
>
> Mike
> --www.michaelgalloy.com
> Associate Research Scientist
> Tech-X Corporation
|
|
|
Re: highlight text in text widget [message #66102 is a reply to message #66098] |
Thu, 02 April 2009 13:16  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
neon wrote:
> Hi,
> I am trying to make widget that displays text. I also want a search
> keywords available. The way I have envisioned is something similar to
> emacs search, i.e. it highlights all the occurrences of the keyword
> that you are interested in. I am trying to find out if that kind of
> highlighting be done in widget_text or some other widgets. Can anyone
> help?
>
> Thanks
The only option I know of is the SET_TEXT_SELECT keyword to
WIDGET_CONTROL. But this only allows a single selection. (Further calls
always clear the selection first.)
Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
|
|
|
Re: highlight text in text widget [message #66103 is a reply to message #66102] |
Thu, 02 April 2009 12:48  |
neon
Messages: 9 Registered: October 2005
|
Junior Member |
|
|
Ah thats sad. What about this? I understand widget_text takes a list
of strings as input and displays 1 item per line. Can it be done so
that only certain lines of the widget are highlighted?
Thanks for replying so fast:)
--
Nirbhik
On Apr 2, 3:13 pm, David Fanning <n...@dfanning.com> wrote:
> neon writes:
>> I am trying to make widget that displays text. I also want a search
>> keywords available. The way I have envisioned is something similar to
>> emacs search, i.e. it highlights all the occurrences of the keyword
>> that you are interested in. I am trying to find out if that kind of
>> highlighting be done in widget_text or some other widgets. Can anyone
>> help?
>
> I'm not sure "help" is the right word, but no, this
> can't be done. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: highlight text in text widget [message #66107 is a reply to message #66103] |
Thu, 02 April 2009 12:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
neon writes:
> I am trying to make widget that displays text. I also want a search
> keywords available. The way I have envisioned is something similar to
> emacs search, i.e. it highlights all the occurrences of the keyword
> that you are interested in. I am trying to find out if that kind of
> highlighting be done in widget_text or some other widgets. Can anyone
> help?
I'm not sure "help" is the right word, but no, this
can't be done. :-)
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|