Solved

is macro possible using richedit?

Posted on 1997-11-27
4
228 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now