X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 29 May 2012 06:22 PM by  anon
Writing a widget that can be auto-managed with auto_wid_mng()?
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
29 May 2012 06:22 PM
    I'd like to be able to do this, can you tell me how i'd have to set up my widget? :)

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    04 Jun 2012 11:39 AM
    Hey Jeff, There are examples in the ENVI Help on how to use auto_wid_mng, which is only used for event handling of ENVI classic compound widgets. Nearly all of the ENVI 'WIDGET' routines show how to call auto_wid_mng. Are you looking for something more specific?

    Deleted User



    New Member


    Posts:
    New Member


    --
    04 Jun 2012 04:38 PM
    Hey Mari, Just to be clear...i'm not asking how to write my own GUI using auto-managed widgets (ie, how to call auto_wid_mng, etc.) I'm asking about how to write my own *widget* (like widget_multi, or widget_outf) that auto_wid_mng can do something with. I keep finding myself in situations where I need a simple GUI, and I could easily use the auto-managed widgets 80% of the time - except there often seems to be one little situation where auto-managed widgets don't quite get me the functionality i need, and i end up writing my own event handler. So I'm thinking of setting up a couple of compound widgets, and of course my next thought was "wouldn't it be nice if auto_wid_mng() could handle this thing?" :)

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    05 Jun 2012 10:59 AM
    You would have to use widget_auto_base to create the top level base along with auto_wid_mng then you can have your own auto managed custom widgets. Note the auto managed widget will be modal.
    You are not authorized to post a reply.