comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » widget_text, CW_FIELD
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
widget_text, CW_FIELD [message #59305] Mon, 17 March 2008 07:26 Go to next message
Rajiv.Paneerselvam is currently offline  Rajiv.Paneerselvam
Messages: 14
Registered: November 2005
Junior Member
Hi all,
I am developing a macro language text editor using IDL.
I have the following questions:
1)Is there any way to add colors to the texts displayed using
'widget_text' or 'CW_field' .? (using direct graphics)
2)Can I use IDL Object Graphics (eg,'IDLgrText' ) to change text color
and display the colored text in the text space created by
'widget_text'.

Any help will be appreciated.
regards,
P.Rajiv
E-mail: P.Rajiv@fkf.mpg.de
Re: widget_text, CW_FIELD [message #59404 is a reply to message #59305] Wed, 19 March 2008 03:13 Go to previous message
Rajiv.Paneerselvam is currently offline  Rajiv.Paneerselvam
Messages: 14
Registered: November 2005
Junior Member
Thanks a lot
Re: widget_text, CW_FIELD [message #59416 is a reply to message #59305] Tue, 18 March 2008 08:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Galloy writes:

> 1. Use xyouts or IDLgrText. Sure it can be editable. For an example of
> this, add text to any iTools display. I'm not sure that that example
> will teach you anything about doing it, but it does prove it is possible.

You can type colored text into a draw widget in AnnotateWindow:

http://www.dfanning.com/documents/programs.html#ANNOTATEWIND OW

> Again, these solutions are not easy at all, especially if you are
> talking about multi-line wrapping text like an editor window. A single
> line might not be too bad, but making it editable will be a major pain.

I would say, in my experience, these solutions are not worth
pursuing unless your spiritual practice is to continually
overcome disappointment.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: subarray
Next Topic: Re: subarray

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:21:44 PDT 2025

Total time taken to generate the page: 0.08163 seconds