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

Home » Public Forums » archive » Re: IDLitWindow Background 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: IDLitWindow Background Colour [message #65598] Wed, 11 March 2009 18:12 Go to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Michael Galloy wrote:
> Jye wrote:
>> Hi Everyone,
>>
>> Heres a nice easy question for someone out there. How do you change
>> the background colour of IDLitWindow? In the example below you can see
>> the background to the right is white and I would like to set it to
>> black.
>>
>> Cheers
>> Jye
>>
>> PRO Background_Example
>>
>> oImage = Obj_New('IDLgrImage', dist(100))
>>
>> oModel = OBJ_NEW('IDLgrModel')
>> oModel -> Add, oImage
>>
>> oView = OBJ_NEW('IDLgrView', VIEWPLANE_RECT=[0,0, 100, 100],
>> DIMENSIONS=[500,500])
>> oView -> Add, oModel
>>
>> TLB = WIDGET_BASE()
>> Draw_oWin = WIDGET_DRAW(TLB, XSIZE=700, YSIZE=500,
>> CLASSNAME='IDLitWindow', $
>> GRAPHICS_LEVEL=2)
>>
>> WIDGET_CONTROL, TLB, /REALIZE
>> WIDGET_CONTROL, Draw_oWin, GET_VALUE=oWin
>>
>> oWin -> Add, oView
>>
>> END
>
> Set the COLOR property of the IDLgrView.
>
> Mike

Ah, sorry, I see you have set the DIMENSIONS of the view to not cover
the entire window so that won't work.

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
Re: IDLitWindow Background Colour [message #65600 is a reply to message #65598] Wed, 11 March 2009 17:37 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Jye wrote:
> Hi Everyone,
>
> Heres a nice easy question for someone out there. How do you change
> the background colour of IDLitWindow? In the example below you can see
> the background to the right is white and I would like to set it to
> black.
>
> Cheers
> Jye
>
> PRO Background_Example
>
> oImage = Obj_New('IDLgrImage', dist(100))
>
> oModel = OBJ_NEW('IDLgrModel')
> oModel -> Add, oImage
>
> oView = OBJ_NEW('IDLgrView', VIEWPLANE_RECT=[0,0, 100, 100],
> DIMENSIONS=[500,500])
> oView -> Add, oModel
>
> TLB = WIDGET_BASE()
> Draw_oWin = WIDGET_DRAW(TLB, XSIZE=700, YSIZE=500,
> CLASSNAME='IDLitWindow', $
> GRAPHICS_LEVEL=2)
>
> WIDGET_CONTROL, TLB, /REALIZE
> WIDGET_CONTROL, Draw_oWin, GET_VALUE=oWin
>
> oWin -> Add, oView
>
> END

Set the COLOR property of the IDLgrView.

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
Re: IDLitWindow Background Colour [message #65669 is a reply to message #65598] Thu, 12 March 2009 15:41 Go to previous message
Jye is currently offline  Jye
Messages: 17
Registered: May 2008
Junior Member
On Mar 12, 11:12 am, Michael Galloy <mgal...@gmail.com> wrote:
> Michael Galloy wrote:
>> Jye wrote:
>>> Hi Everyone,
>
>>> Heres a nice easy question for someone out there. How do you change
>>> the background colour of IDLitWindow? In the example below you can see
>>> the background to the right is white and I would like to set it to
>>> black.
>
>>> Cheers
>>> Jye
>
>>> PRO Background_Example
>
>>> oImage = Obj_New('IDLgrImage', dist(100))
>
>>> oModel = OBJ_NEW('IDLgrModel')
>>> oModel -> Add, oImage
>
>>> oView = OBJ_NEW('IDLgrView', VIEWPLANE_RECT=[0,0, 100, 100],
>>> DIMENSIONS=[500,500])
>>> oView -> Add, oModel
>
>>> TLB = WIDGET_BASE()
>>> Draw_oWin = WIDGET_DRAW(TLB, XSIZE=700, YSIZE=500,
>>> CLASSNAME='IDLitWindow', $
>>> GRAPHICS_LEVEL=2)
>
>>> WIDGET_CONTROL, TLB, /REALIZE
>>> WIDGET_CONTROL, Draw_oWin, GET_VALUE=oWin
>
>>> oWin -> Add, oView
>
>>> END
>
>> Set the COLOR property of the IDLgrView.
>
>> Mike
>
> Ah, sorry, I see you have set the DIMENSIONS of the view to not cover
> the entire window so that won't work.
>
> Mike
> --www.michaelgalloy.com
> Associate Research Scientist
> Tech-X Corporation

Mike, Im guessing if you dont have a solution then it probably cant be
done?

Cheers
Jye
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: floating widget problem
Next Topic: IDLitWindow Background Colour

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

Current Time: Sat Oct 11 10:05:29 PDT 2025

Total time taken to generate the page: 0.18737 seconds