GW wText right click on viewport

 Im sorry everyone to bother you , does anyone know how to make when gwtext right click or clicked do some action, like this:

 

s

 

Thanks for the info

 

 Best regard

 

 Fajar

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fajar's picture

@Mr.Frodo : I sent you

@Mr.Frodo : I sent you email

please check it out

Thanks and Best regard

fajar

br0t's picture

Yes I thought about that

Yes I thought about that today and have to admit mouse tool is a really bad idea for this :D Was just my first thought, though. I am not sure if there is any other way to check for mouse events in MAXScript... Would be cool, anyone has an idea?

Never get low & slow & out of ideas

fajar's picture

try to look out it for the

try to look out it for the first, try it, but I have no idea how to always get function right click activated everytime I right click on that spot, cause in mouse tools only work once, when you abort it you can get it back again , you must start the tool again, I know how to make gw text...but dont know what event I must use to triger the right clik function everytime i click on that spot.like in the max viewport I showed. I know little about mouse.pos.

Thanks brot , any other idea.

fajar's picture

Ok thanks ill lookout to it.

Ok thanks ill lookout to it.

br0t's picture

To draw text on the screen

To draw text on the screen you would probably need to install a drawing function registerRedrawViewsCallback myFunction. You would then have to check that area for if your mouse is hovering above it, and for mouse clicks. I guess you will have to use a scripted mouse tool (look for "Scripted Mouse Tools" in the docs) checking mouse.pos clickno.

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.