X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Feb 2012 06:39 PM by  anon
Display nothing in widget_window?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
25 Feb 2012 06:39 PM
    Hi guys: I use IDL 8.1. I run the fellowing code and get nothing display in wedget window: wBase = WIDGET_BASE(/COLUMN,MAP=0) wDraw = WIDGET_WINDOW(wBase, XSIZE=400, YSIZE=400, RENDERER=1, UNAME='DRAWAREA') WIDGET_CONTROL, wBase, /REALIZE ; Retrieve the newly-created Window object. WIDGET_CONTROL, wDraw, GET_VALUE=oWin oWin.erase oWin.select p = PLOT(/TEST, /CURRENT, /FILL_BACKGROUND) WIDGET_CONTROL, wBase, MAP=1, /SHOW When I remove 'oWin.erase', display is successful. So, what's the problem, thanks! dave

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Mar 2012 01:13 PM
    When using Object Graphics for the widget draw, the following command returns an object reference to the draw window: WIDGET_CONTROL, my_drawwidget, GET_VALUE=oWin where oWin is a window object. So, as a window GR object you can then use the ERASE procedure method erases the entire contents of the window. Therefore, if you use it the window will look empty. Cheers, fernando
    You are not authorized to post a reply.