Solved

is macro possible using richedit?

Posted on 1997-11-27
4
230 Views
Last Modified: 2013-11-22
hi,

Is it possble to add macros to RichEdit??

Just to find out.
0
Comment
Question by:degraef
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
aluiken earned 210 total points
ID: 1352216
Yes it is, but the points for the answer if FAR to low =)

What you need to do is on the onkeydown event from the trichedit

in that event write a procedure. You need 1 global variable and then sumthing like:

Var GlobalVar : String;

Begin
 If Key = ' ' Then Begin
                    CheckMacro(GlobalVar);
                    GlobalVar := '';
                   End;
 If Key = #13 Then Begin
                    CheckMacro(GlobalVar);
                    GlobalVar := '';
                   End;
End;

Procedure CheckMacro(Var S : String);
Begin
 S := UpperCase(S);
 If S = 'MACRO1' Then Begin
                       Form1.RichEdit1.Lines.Add('MACRO 1 EXECUTED');
                      End;
 ..............ETC...............
End;

         

0
 

Author Comment

by:degraef
ID: 1352217
Ok more points, please more explanation.
0
 

Author Comment

by:degraef
ID: 1352218
Adjusted points to 215
0
 

Author Comment

by:degraef
ID: 1352219
hi,

is it possible to make a basic demo, with a small macro and to show how it is executed, would be far more informing to me.
(Never used macro before) and mail it to hellfire@unforgettable.com
or put the whole code here
Thanks. If you still need more points then say so.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question