[SynEdit] enhancement of TSynEditMarkupCtrlMouseLink
Original Reporter info from Mantis: PascalR @PascalRiekenberg
-
Reporter name: Pascal Riekenberg
Original Reporter info from Mantis: PascalR @PascalRiekenberg
- Reporter name: Pascal Riekenberg
Description:
Make TSynEditMarkupCtrlMouseLink more general: TSynEditMarkupMouseLink
1. Add TSynEditMarkupMouseLink to MarkupManager
2. use TSynEditMarkupMouseLink.AddMauseActionCommand to add MouseActionCommands
on which the markup should react on.
3. Add events to markup:
- OnIsLinkable is called to figure out if the token is linkable
- OnClickLink is called if the link is clicked or if no event is assigned
Option2 of the MouseAction is used as SynEditCommand and send to synedit
(only if other than 0)
The two events are called with the appropriate MouseAction so you can
distinguish the different links.
Mantis conversion info:
- Mantis ID: 30620
- Version: 1.7 (SVN)