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

Home » Public Forums » archive » Re: modify widget base colour
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
Re: modify widget base colour [message #37974] Thu, 12 February 2004 02:41
Valerio Pace is currently offline  Valerio Pace
Messages: 9
Registered: October 2003
Junior Member
Thank you, Dick.
I will use your second solution!

Cheers
Valerio

"Dick Jackson" <dick@d-jackson.com> ha scritto nel messaggio
news:7kwWb.463709$JQ1.203699@pd7tw1no...
>> "David Fanning" <david@dfanning.com> ha scritto nel messaggio
>> news:MPG.1a93efeca0a54d2a989687@news.frii.com...
>>> Valerio Pace writes:
>>>
>>>> do you know how can modify widget base background color?
>>>
>>> In general, it is not possible to do this from within IDL.
>>> If you are running on a UNIX machine, however, you might
>>> try fiddling with the RESOURCE_NAME keyword and X11 resources.
>>> You might be able to get something like this to work.
>>
>> Unfortunatly I'm using Windows, so the only thing I can do is to
> realize a
>> widget draw as final widget, with dimensions exactly like widget base
> group
>> leader and background color (ERASE procedure) as I want.
>> This solution is right for the widget button and widget draw realized
> on the
>> base, but for widget label background color is always the default one
>> (sigh!!!)
>
> Hi,
>
> I'm not sure *exactly* what your desired result is, but there may be a
> couple of options:
>
> You have tried widget_label but it doesn't give the coloring you want.
> Could Widget_Text work instead? Choosing Editable=1 or Editable=0 (the
> default) gives different appearance, perhaps one of these will work.
>
> In Windows, the colors that IDL uses for widgets are all controlled by
> your Display Properties control panel (Settings -> Control Panel ->
> Display, or right-click your desktop and click Properties) under the
> Appearance tab. A color "scheme" is a collection of all the colors used
> for widget parts. Perhaps you can change one of these to suit your need?
>
> Hope this helps!
>
> Cheers,
> --
> -Dick
>
> Dick Jackson / dick@d-jackson.com
> D-Jackson Software Consulting / http://www.d-jackson.com
> Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
>
>
Re: modify widget base colour [message #37985 is a reply to message #37974] Wed, 11 February 2004 12:33 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
> "David Fanning" <david@dfanning.com> ha scritto nel messaggio
> news:MPG.1a93efeca0a54d2a989687@news.frii.com...
>> Valerio Pace writes:
>>
>>> do you know how can modify widget base background color?
>>
>> In general, it is not possible to do this from within IDL.
>> If you are running on a UNIX machine, however, you might
>> try fiddling with the RESOURCE_NAME keyword and X11 resources.
>> You might be able to get something like this to work.
>
> Unfortunatly I'm using Windows, so the only thing I can do is to
realize a
> widget draw as final widget, with dimensions exactly like widget base
group
> leader and background color (ERASE procedure) as I want.
> This solution is right for the widget button and widget draw realized
on the
> base, but for widget label background color is always the default one
> (sigh!!!)

Hi,

I'm not sure *exactly* what your desired result is, but there may be a
couple of options:

You have tried widget_label but it doesn't give the coloring you want.
Could Widget_Text work instead? Choosing Editable=1 or Editable=0 (the
default) gives different appearance, perhaps one of these will work.

In Windows, the colors that IDL uses for widgets are all controlled by
your Display Properties control panel (Settings -> Control Panel ->
Display, or right-click your desktop and click Properties) under the
Appearance tab. A color "scheme" is a collection of all the colors used
for widget parts. Perhaps you can change one of these to suit your need?

Hope this helps!

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
Re: modify widget base colour [message #37992 is a reply to message #37985] Wed, 11 February 2004 08:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Valerio Pace writes:

> Unfortunatly I'm using Windows, so the only thing I can do is to realize a
> widget draw as final widget, with dimensions exactly like widget base group
> leader and background color (ERASE procedure) as I want.
> This solution is right for the widget button and widget draw realized on the
> base, but for widget label background color is always the default one
> (sigh!!!)

Yes, almost all roads leading to "color" end in disappointment. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: modify widget base colour [message #37993 is a reply to message #37992] Wed, 11 February 2004 07:47 Go to previous message
Valerio Pace is currently offline  Valerio Pace
Messages: 9
Registered: October 2003
Junior Member
David,

Unfortunatly I'm using Windows, so the only thing I can do is to realize a
widget draw as final widget, with dimensions exactly like widget base group
leader and background color (ERASE procedure) as I want.
This solution is right for the widget button and widget draw realized on the
base, but for widget label background color is always the default one
(sigh!!!)

That's all,
Valerio

"David Fanning" <david@dfanning.com> ha scritto nel messaggio
news:MPG.1a93efeca0a54d2a989687@news.frii.com...
> Valerio Pace writes:
>
>> do you know how can modify widget base background color?
>
> In general, it is not possible to do this from within IDL.
> If you are running on a UNIX machine, however, you might
> try fiddling with the RESOURCE_NAME keyword and X11 resources.
> You might be able to get something like this to work.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: modify widget base colour [message #37998 is a reply to message #37993] Wed, 11 February 2004 06:53 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Valerio Pace writes:

> do you know how can modify widget base background color?

In general, it is not possible to do this from within IDL.
If you are running on a UNIX machine, however, you might
try fiddling with the RESOURCE_NAME keyword and X11 resources.
You might be able to get something like this to work.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: That filelength question - again ....
Next Topic: Working In 3-Space

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

Current Time: Fri Oct 10 06:09:28 PDT 2025

Total time taken to generate the page: 0.16448 seconds