Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

is macro possible using richedit?

Posted on 1997-11-27
4
Medium Priority
?
239 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 420 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Screencast - Getting to Know the Pipeline
Suggested Courses

916 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