X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 13 Jan 2012 07:05 AM by  anon
How to translate and scale graphics in WIDGET_WINDOW?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
13 Jan 2012 07:05 AM
    Hi guys: I use 'WIDGET_WINDOW' to create my GUI application. But the graphics in WIDGET_WINDOW not support scale and translate with mouse like window() function result. How can I do this interaction with my mouse in WIDGET_WINDOW. Very thanks! dave

    Deleted User



    New Member


    Posts:
    New Member


    --
    13 Jan 2012 11:36 AM
    Hi Daikan, Could the following example help you?: pro widget_window_plot_ex ; Create the widgets. wBase = WIDGET_BASE(/COLUMN) wDraw = WIDGET_WINDOW(wBase, X_SCROLL_SIZE=600, Y_SCROLL_SIZE=400) WIDGET_CONTROL, wBase, /REALIZE ; Retrieve the newly-created Window object. WIDGET_CONTROL, wDraw, GET_VALUE=oWin ; Make sure this is the current window oWin.Select b = plot(/test, /CURRENT) end Cheers, Fernando
    You are not authorized to post a reply.