Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: widget_text...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 5539 of 6454
Post > Topic >>

Re: widget_text, CW_FIELD

by "mgalloy@[EMAIL PROTECTED] " <mgalloy@[EMAIL PROTECTED] > Mar 17, 2008 at 08:23 AM

On Mar 17, 8:26=A0am, steverajiv <Rajiv.Paneersel...@[EMAIL PROTECTED]
> wrote:
> Hi all,
> I am developing a macro language text editor using IDL.
> =A0I 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'.

You can't use the graphics systems with WIDGET_TEXT. I can think of
two alternatives (not for the faint of heart):

  * create a WIDGET_DRAW instead of a WIDGET_TEXT and output your text
into it. If this is the main editing window of your text editor, good
luck. But for a label or single line somewhere it is not too bad.
There are keywords to WIDGET_INFO to get the right background color,
font, width of a given string in pixels, etc.

  * if on Unix, use Xdefaults.

I don't see any reasonable "IDL only" solutions if you are trying to
chromo-code the code in your macro language text editor. Maybe there's
something you could use with WIDGET_ACTIVEX if you are on Windows?

Mike
--
www.michaelgalloy.com
Tech-X Cor****ation
Software Developer II
 




 8 Posts in Topic:
widget_text, CW_FIELD
steverajiv <Rajiv.Pane  2008-03-17 07:26:14 
Re: widget_text, CW_FIELD
David Fanning <news@[E  2008-03-17 08:48:54 
Re: widget_text, CW_FIELD
"mgalloy@[EMAIL PROT  2008-03-17 08:23:42 
Re: widget_text, CW_FIELD
"Jim Pendleton, ITT   2008-03-17 11:39:37 
Re: widget_text, CW_FIELD
steverajiv <Rajiv.Pane  2008-03-18 01:19:25 
Re: widget_text, CW_FIELD
Michael Galloy <mgallo  2008-03-18 08:20:26 
Re: widget_text, CW_FIELD
David Fanning <news@[E  2008-03-18 09:10:33 
Re: widget_text, CW_FIELD
steverajiv <Rajiv.Pane  2008-03-19 03:13:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 14:26:29 CST 2008.