Links in a TMemo or TRichEdit
Posted on 2000-05-05
I am looking for a way to have some kind of link in a memo. There should be normal black text along with some links in underlined blue that show a hand cursor when the mouse is over it.
Basically, I'm trying to do the same effect that Outlook Express 5 does with message rules. Another example is the triggers editor with the Starcraft campaign editor from Blizzard.
The application I am using this for is an AI editor for an online role playing game (with graphics positions open).
Events: List of events. ie/ onAttack, etc.
Conditions: List of requirements. ie/ possession of keys.
Actions: Result of event. ie/ Deal damage, given an item, etc.
Rule Description: The box that puts it all together in a readable form. (Others were checkboxes.)
When 'Event' happens,
'and/or' If 'Condition'
'and/or' if 'Condition'
Then do 'action'
Example of an NPC character in game:
If attacker has level 'greater then' '20'
Then 'run away'
All items in quotes would actually be a link that would bring up another window or popup menu of choices.
Steven J. Morales