clickable links on dynamically added fields in form

Started by scott, February 12, 2010, 04:51:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scott

I've got VBA code that works quite nicely to add fields dynamically to a form and then makes them clickable. The issue is that the click event only occurs if I display the form modally. If I display a modeless form or do what I really want, which is to display the form in an anchor bar window, the click event doesn't happen.

I exchanged a couple of emails with David Parker yesterday about part of this issue and he provided sample code that shows that fixed page elements are clickable in all cases (thanks, David). I've modified the code to add the dynamic fields and the results are attached. There are three macros:

  • ShowFormModal_DynamicFields: both fixed and dynamic elements are clickable
  • ShowFormModeless_DynamicFields: only fixed elements are clickable
  • AnchorForm_DynamicFields: only fixed elements are clickable

I appreciate any suggestions or ideas...

Scott

scott

Looks like I solved my own problem... in case it's of use to anyone else, the attached v4 code creates clickable links in all three formats: in modal and modeless dialogs, and in a docked window. Very useful for highlighting errors in drawings and allowing users to navigate to shapes containing errors.