PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06 Apr 2017 03:34 PM by  David Starbuck
Pressing down button doesn't generate events
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

David Starbuck



Basic Member


Posts:115
Basic Member


--
06 Apr 2017 03:34 PM
    Question from user: I am displaying a group of buttons with CW_BGROUP. I print out events when they happen. I don't see any event when I press the button but I see one when I release it. I do not have the /norelease argument because I want to see the release event as well. I would like to see the event that occurs (if it occurs) when the button is pressed. Possible answer: Use the PUSHBUTTON_EVENTS keyword. An example is shown below: pro dj_cas_19437_l1k4p5_event, event COMPILE_OPT idl2 help, event end pro dj_cas_19437_l1k4p5 compile_opt idl2 wbase = widget_base() wbutton = widget_button(wbase, value="Button", /PUSHBUTTON_EVENTS) widget_control, wbase, /realize XMANAGER, "dj_cas_19437_l1k4p5", wbase, NO_BLOCK=1 end
    You are not authorized to post a reply.


    MOST RECENT

    Topographic Mapping Anywhere | WEBINAR

    9/25/2017

    High-resolution, mapping-grade, optical imaging satellites have been operating and orbiting the earth... more »

    SIGN UP & STAY INFORMED

    Sign up to receive the latest news, events, technologies and special offers.

    SIGN ME UP