Look at the picture “bad.bmp”. Open CAD, and you must let AutoCAD automatically load a ARX, you can not load this arx by command ”appload” because in this way ,the two panels display normal.
, in the ARX project, I call the following generation two panel function cnAcadTest_20140112adPanel in the On_kInitAppMsg function.
There is a problem, The Panel’s minimize button do not work.
Hi,
Sorry for the delay.
I could reproduce the behavior with the minimize button even with the blog post sample here and do not see a way to overcome it.
http://adndevblog.typepad.com/autocad/2013/01/how-to-use-caduidockcontrolbar.html
My suggestion would be use the "CAdUiPaletteSet" class instead which is also derived from "CAdUiDockControlBar" and provides good control over the styles.
If you replace the use of "CAdUiDockControlBar" with "CAdUiPaletteSet", the only other change to your sample project would be to create it as in this code snippet :
DWORD dwPaletteSetStyle = PSS_PROPERTIES_MENU | PSS_AUTO_ROLLUP | PSS_CLOSE_BUTTON | PSS_SNAP; if ( ! CAdUiPaletteSet::Create (lpszTitle, WS_VISIBLE | WS_CHILD | WS_CLIPCHILDREN, rect, pParent, dwPaletteSetStyle)) return (FALSE) ;
Regards,
Balaji
thanks a lot, CAdUiPaletteSet works good with the minimize button. but if you run my example, the first problem still exist. you can reproduce it.
do not load the arx by command "appload". put the arx in the autostart group. and the next time ,you start AutoCAD, you will see the problem .