Forum archiveIssue archiveOther usage issues

Archived discussion

construction with mouse

Other usage issuesWed, 04/10/2002 - 00:354 replies

Browse this forum
QuestionAuthor

Can I construct a box for example or a line not by giving digitals arguments in constructors but by selection with MOUSE in the screen?

thanks.

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

salut
je crois que C++ permet d'avoir comme entée des données de la souris,
et il en meme des fonction déja prétes;
WM_LBUTTONDOWN et
WM_LBUTTONDBCLIC........

va voir comment utiliser ses fonctions et y inserer les ogjets a dessiner.

Commenter-1

02Commenter-2

Yeah, English would have been nice. I'm sure more people on this list understand English than French.

03Commenter-3

Don't worry - I understand French and I can tell you that even if you don't, you have not missed much in this response.

04Commenter-4

Hi,
You can do this in the InputEvent Function-You have to Convert the clicked mouse coordinates (X, Y)to 3d space coordinates(X, Y, Z) and construct gp_Pnt and do whatever you want further!
See The MFC samples for the InputEvent Function
All the best!

N Commenter-4