We are currently building a prove of concept for our C++ code editor and as a user of Essential Tools and Grid, I am inclined to use Essential Edit for this code editor.
However, we have a requirement to show some text as hyperlink inside the code, so when the user click on it, it will launch a simple code generator wizard. Does Essential Edit have the capability to show hyperlink on text and provide custom action on the click on hyperlink?
Please let me know because I have to present a simple POC by tomorrow.
ADAdministrator Syncfusion Team August 23, 2004 05:20 PM
The current version of the EditControl does not support this feature out of the box.
But it can be implemented as demonstrated by this sample. The main points in this sample are:
a) It uses a SettingFile called Tags.ini.
b) In the settings file a keyword called Link is specified using REGEX.
c) The EditControl''s ContextTooltipPopup event is then used to display a tooltip of the website and change the cursor.
d)The click event of the EditControl is used to launch the website.
Kindly take a look at the sample and get back to us if you have any further questions.
ADAdministrator Syncfusion Team August 24, 2004 10:24 AM
Thanks very much for building this. I can''t find the Tags.ini in the zip, though. Could you send that file to me or tell me where I can get it?
Thanks again very much.
ADAdministrator Syncfusion Team August 24, 2004 10:44 AM
Sorry, you can unzip this file instead which will put the tags.ini file in the proper directories.
ADAdministrator Syncfusion Team August 24, 2004 11:07 AM
Thanks again for getting back to me so quickly. What you did is like the automatic DetectUrl in Richtextbox. What we need is something like the UI that you use to create Rules in Outlook 2003. Please kindly take a look at that interface and let me know if there is a plan for Essential Edit to support that feature in the near future.
ADAdministrator Syncfusion Team August 24, 2004 11:58 AM
The sample was a demonstration of what can be done using Essential Edit. For example you can add another form (say Form2) in the sample application and then replace the code for the click with:
private void editControl1_Click(object sender, EventArgs e)
Form newform = new Form2();
launch = false;
Now when you click on a link it will launch an instance of Form2.
So you can create an interface similar to what you are looking for using the Essential Edit.
You can also check out the Wizards Package in Essential Tools along with the samples which demonstrate how you can use the package to create Wizards.