B
bnk
I want to delete a shape (progarmmatically), and in case when it is
'protected from deletion' show the tip visio normally shows (that
yellow tip with exclamation sign, "shape is protected from deletion").
Exactly what 'Del' key does, but programmatically.
I have tried
selection->Delete,
application->DoCmd(visCmdUFEditClear)
In both cases I get exception when the shape is protected, not the tip.
For now, have found nothing better than writing:
SendMessage(window.WindowHandle32, WM_KEYDOWN, VK_DELETE, 0) ...
Can this be implemented in more elegant way?
'protected from deletion' show the tip visio normally shows (that
yellow tip with exclamation sign, "shape is protected from deletion").
Exactly what 'Del' key does, but programmatically.
I have tried
selection->Delete,
application->DoCmd(visCmdUFEditClear)
In both cases I get exception when the shape is protected, not the tip.
For now, have found nothing better than writing:
SendMessage(window.WindowHandle32, WM_KEYDOWN, VK_DELETE, 0) ...
Can this be implemented in more elegant way?