ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AcEdViewCube-like drawable

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
loic.jourdan
734 Views, 4 Replies

AcEdViewCube-like drawable

Hi,

I'd like to create a custom drawable that behaves as the AcEdViewCube:

 - no z-buffer display (solved)

 - clickable

I've created a custom drawable class displayed using AcGiTransientManager; this solved the first point (no z-buffer); but I have no idea on how capture click event as AcEdViewCube does; I suppose I can get a 'mousemove' equivalent by implementing an input poin monitor but I have no idea on how to capture a click.

 

Thank you

loic

----
20-20 CAD / 20-20 Technologies
4 REPLIES 4
Message 2 of 5
kapil_CCTech
in reply to: loic.jourdan

please can yu help me with sample code to create ViewCube in C++

Message 3 of 5
Balaji_Ram
in reply to: loic.jourdan

Hi loic,

 

The transient graphics does not allow selection.

 

A possible way to do this could be to use acedRegisterFilterWinMsg to install a callback and then process the message as required. This blog post uses this method although for a little different purpose (to handle key press)

http://adndevblog.typepad.com/autocad/2012/06/how-to-react-to-the-cursor-keys-properly-without-affec...



Balaji
Developer Technical Services
Autodesk Developer Network

Message 4 of 5
loic.jourdan
in reply to: Balaji_Ram

Thank you very much, not as straightforward as I hoped but well enought!

----
20-20 CAD / 20-20 Technologies
Message 5 of 5

This may be of interest:

 

http://through-the-interface.typepad.com/through_the_interface/2012/09/creating-reactive-transient-a...

 

Kean



Kean Walmsley

Platform Architect & Evangelist, Autodesk Research

Blog | Twitter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost