Reply To: How to get the mouse event object in any method?

Home Forums General Programming How to get the mouse event object in any method? Reply To: How to get the mouse event object in any method?

#72188
Mr.ToR
Participant
    • Topics: 7
    • Replies: 51
    • Total: 58

    goodweather,

    do you have any information on how to use any of the following?

    component:isMouseButtonDown()
    component:isMouseOverOrDragging()
    component:addMouseListener()
    component:SetInterceptsMouseClicks()

    I’m using mousedrag on a label and want to know when the mouse is up.
    Really have been pulling my hair on that for a while…

    I think there might also be a way to set a method programmatcally, right?
    what is component:mouseUp() do you know? Would it be possible to assign programmatically a mouseUp method to a component with
    void mouseUp(Component&,MouseEvent const&)

    Thnx

    Ctrlr