Emulate Mouseclick by software

_ROOT Version: 6
_Platform: Ubuntu

Dear Rooters,
how can one emulate mouse clicks (e.g. kButton1Down) by software?
There are situations when mouse events (kMouseMotion) are no longer
propagated to the user (e.g. to a method in pad->AddExec(…))
except kMouseLeave.
I know clicking helps, pad->cd() doesnt help.
I dont want that the user needs to click or even needs to know .
Therefore I would like to it programmed.


You can call TCanvas::HandleInput(EEventType event, Int_t px, Int_t py) with EEventType event being kButton1Down and px, py the coordinates of the event

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.