Notifications
Clear all

[Closed] Modal dialog and mouse

But you have to move mouse over viewport to make it actually stop tracking Would be nice if you could make it stop immediatly.

I can:


try(destroydialog mouseTracker) catch()
rollout mouseTracker "Mouse Tracking" 
(
 fn mouseTracking msg ir obj faceNum shift ctrl alt =
  if msg == #mouseAbort or msg == undefined then #abort else #continue 
 button start "Start" width:80 across:2
 button stop "Stop" width:80
 
 on start pressed do
 (
  start.enabled = off
  mouseTrack trackCallback:mouseTracking
  start.enabled = on
 )
 on stop pressed do max select
)
createDialog mouseTracker width:190 height:30

Very cool c# compile trick… I like it and didn’t know about it… thanks…

Nothing like an interpretive language doing run time compiling to then run… classic…

I guess that still makes the code interpretive…

Oh great, how didn’t i think of doing it like that…goddamn embarassing. I owe you a lot denisT :bowdown:

Page 2 / 2