Creating Context Sensitive Solutions

You can create interactive documents by hiding and showing controls on the actions pane, depending on the location of the cursor in the document. For example, you could respond to the BeforeRightClick event of a Bookmark control on a document by displaying Help content on the actions pane. You might also consider mapping XML to the document so that you can display controls on the document when users move the cursor into an XML mapping, and remove the controls when the cursor moves outside the XML mapping. The following sections describe how to map XML to a letter in Word and write code against the ContextLeave and ContextEnter events to add and remove controls on the actions pane.

0 0

Post a comment