Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[SWT] Creating a Tracker stops MouseUp

 
Toby Weston
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Folks,

Take a look at this code snipet, creating a Tracker on MouseDown for some reason means that the MouseUp event is never captured. Any ideas why?

Also, should I be closing and/or disposing the tracker directly after the open?

Thanks

 
Toby Weston
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may have answered my own question!

It seems that when the Tracker is created it acts like a dialog with its own event loop, which I take to mean its modal and blocks the other events being handled.

Therefore, I can just add code that I'd previously assumed would go into the MouseUp right after the call to tracker.open(), for example;

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic