Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I am creating an Accessory window with the command ProAccessorywindowCreate and displaying the model in it. I could not zoom or pan the model with mouse. The application hangs if I move the window. Any other window can be used or how to make the window that it allows to zoom.
Thanks in Advance.
Joseph
Patrick,
Thanks for the reply,
Here I have my answers to your questions.
1. I am presently using wildfire 4.0 M160.
2. Just I want to show the model to the user, it is just for viewing purpose only.
3. I am using the commands in this sequence. ProAccessorywindowCreate() -> ProwindowActivate() -> ProMdlDisplay() -> ProwindowRefit().
Regards,
Joseph
Hi all,
This should work:
//=============================================================
#if PRO_VER > 29
err = ProAccessorywindowWithTreeCreate( mdl_name, mdl_type, PRO_B_FALSE, &w_id);
#else
err = ProAccessorywindowCreate( mdl_name, mdl_type, &w_id);
#endif
err = ProWindowCurrentSet( w_id);
err = ProMdlDisplay( mdl);
ProWindowRefit( w_id);
//=============================================================
FV.
Hi,
This is not working for me, because I trigger the Accessory window from User Interface. I have a button called preview, in the user interface, whenI press the preview button, accessory window created.Both User Interface and accessory window present, when I try zoom or rotate the model in the Accessory window.
when I close the User Interface still the window present, I have not destroyed, now it zooms and pan is working.
Regards,
Joseph
Hi,
I am using MFC UI. If I make the MFC UI non modal, UI quits immediately, after it is created. I donot understand the prob.
Regards,
Joseph
Hi,
Thanks for the reply. Hope that will work for Pro/toolkit UI, I am using MFC in my application and the User Interface is of MFC. I have tried to make the User Interface Modeless, but the UI quites very immediately after the creation.
Regards,
Joseph
Hi,
I have resolved the Issue, the Issue was I have created the dialog as local variable, so it is destroyed after the function execution is over. Now I have created the dialog as Pointer variable, so that it lives even after the function execution is finished.
Joseph