Hi,
I need to build a UI using wxPython to an existing ObjectARX application.
[An ObjectARX application is "a dynamic link library (DLL) that shares the address space of AutoCAD and makes direct function calls to AutoCAD". It is written in C++, the output is an .arx file which may be run only under AutoCAD.]
The UI will be made mostly of modeless dialog boxes.
About modeless dialogs the ObjectARX library states:
"Since AutoCAD attempts to take focus away from all of its child windows, modeless dialogs have a special requirement. At regular intervals, the modeless dialog will get a WM_ACAD_KEEPFOCUS window message. When your dialog gets this message, it must return TRUE if it should keep focus. "
The ObjectARX library allows the programmer to get the main frame of AutoCAD:
// Returns the pointer to AutoCAD CMDIFrameWnd object
CMDIFrameWnd* acedGetAcadFrame();
The problem is that this frame is returned as a CMDIFrameWnd*.
If the ObjectARX library returned a wxFrame* instead of this CMDIFrameWnd*, things would have been a lot easier for me But since it does not, could anyone help me to figure out how to use this CMDIFrameWnd* as a wxFrame* (as parent of a modeless dialog) within a Python function?
Thank you,
Cristina.
···
-------------------------------------------------------
Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.
Xnet automatically scans all messages for viruses using RAV AntiVirus.
Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor.
Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti
fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat
de virusi.
Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants.
Please be aware that there is a risk involved whenever opening e-mail attachments
to your computer and that MobiFon is not responsible for any damages caused by
viruses.