widget_text, CW_FIELD [message #59305] |
Mon, 17 March 2008 07:26  |
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 #59416 is a reply to message #59305] |
Tue, 18 March 2008 08:10  |
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.")
|
|
|