Notifications
Clear all
[Closed] The efficiency of mouseTrack and completeRedraw Function
Aug 12, 2011 6:14 am
hello.
I use mouseTrack Function to Draw something in viewport . But this Function can’t Redraw the viewport… so i mast add a completeRedraw() at end of the mission.
But when have a lot of objects in the viewport. the completeRedraw every time is so slow…
So. have other solvent??
Code like this:
fn _Draw msg ir obj faceNum shift ctrl alt =
(
local b
if msg==#mousepoint then
(
b=box()
b.pos=ir.pos
completeRedraw()
)
if msg==#mousemove then
(
b=box()
b.pos=ir.pos
completeRedraw()
)
if msg==#mouseabort then ok else #continue
)
mouseTrack trackCallBack:_Draw
1 Reply