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

Home » Public Forums » archive » Re: Black Widgets Draw Window in d_plot2d and d_gridding
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Black Widgets Draw Window in d_plot2d and d_gridding [message #65558 is a reply to message #65557] Sun, 08 March 2009 20:36 Go to previous messageGo to previous message
edwinretana is currently offline  edwinretana
Messages: 11
Registered: March 2009
Junior Member
On Mar 8, 6:07 pm, David Fanning <n...@dfanning.com> wrote:
> edwinret...@gmail.com writes:
>> This is my first message here.
>
>> When I try to run the programs d_plot2d.pro and d_gridding.pro the
>> widget draw is all black,, I can see the sliders and bottons also when
>> I press the new data botton nothing happens.
>
>> I'm using Ubuntu 8.10 and Idl 7.06
>
>> So there's a problem with my X server configuration or something
>> else ?
>
> Typically, you need to set RETAIN=2 for your
> draw widgets on UNIX machines. When I create a draw
> widget I usually write code like this:
>
>    IF N_Elements(retain) EQ 0 THEN $
>        retain=(!Version.OS_Family EQ 'Windows') ? 1 : 2
>    drawID = Widget_Draw(baseID, RETAIN=retain, ...)
>
> 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.")

Hi. Thanks for the answer.

The program already has set RETAIN = 2, when WIDGET_DRAW is called.

wAreaDraw = WIDGET_DRAW(wRightBase, XSIZE=drawXSize, YSIZE=drawYSize,
RETAIN=2)

PD : I am using the d_plot2d.pro program that is included in the IDL
Demos.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: country outlines
Next Topic: Re: Plotting over a lunar map

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

Current Time: Fri Oct 24 23:00:05 PDT 2025

Total time taken to generate the page: 0.80084 seconds