AutoCAD .NET API - Interrupting the close pallete/window/user control command -
AutoCAD .NET API - Interrupting the close pallete/window/user control command -
my first post, gentle!
im developing own user controls autocad 2011 , cant life of me figure out how interrupt close on user command , insert own functions before carrying on close.
just clarity here capture.
http://imgur.com/q1ydu
basically before window closes need clear few of own layers hidden behind model space, because if user can close tool , carry on without performing wipe going cause issues when comes adding new objects/saving/etc. cant trust user click "wipe" button on uc before exiting, thats asking trouble.
so question is: looking in api code closes user control?
acad palettes not closed (disposed) when click on 'x' mark. hidden. might want seek palettestate::statechanged
event. might triggered when 'close' palette set. register delegate event , see if called. might work.
* edit * think more it, should able grab event registering delegate control.visiblechanged
event of custom control. 1 add together kid paletteset. should work.
.net api autocad
Comments
Post a Comment