EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Macro-Recorder

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
Schnorrenberg



Joined: 10 Aug 2006
Posts: 8

PostPosted: Thu Aug 10, 2006 2:03 pm    Post subject: Macro-Recorder Reply with quote

Are there any thoughts about introducing a macro-recorder (like in SynEdit)?
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Fri Aug 11, 2006 9:26 am    Post subject: Reply with quote

This component will be included in one of the nearest updates.

Michael.
Back to top
View user's profile Send private message Send e-mail
Schnorrenberg



Joined: 10 Aug 2006
Posts: 8

PostPosted: Sat Aug 12, 2006 9:06 am    Post subject: Reply with quote

Hello Michael,

I programed a Macro-Editor using TSynEdit, because I need to format many tables, etc. from plain text to html.

However, I missed some features in TSynEdit, which would make using macros much more attractive:

1: the possibility to edit (parts of) the marco. So, when a make a mistake during typing the macro, I have to retype the whole macro.
2: the possibility to compose a macro by other (smaller macros).

(btw: your control is much better than TSynEdit, as I saw your control, I switched at once. Professional work)

Hans-Jürgen
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Mon Aug 14, 2006 11:49 am    Post subject: Reply with quote

OK.
Back to top
View user's profile Send private message Send e-mail
Schnorrenberg



Joined: 10 Aug 2006
Posts: 8

PostPosted: Mon Aug 28, 2006 6:24 pm    Post subject: Reply with quote

Hello Michael,

perfect solution, excately what I need.

However, IMO, the edit-dialog is a little bit too complicate.
(I'm an application writer, and I have to make the user life as easy as possible. An user does not love thinking, numbers and moving out his left hand from the trouser pocket. And if you can fullfill his wishes, he will tell you: Now it works as I told you before).

What do you thinking about the follwing idea:

1. Translate TMacroRecord to string like:
case Macro.Events[Index].Command of
smLeft,
smWordLeft,
smSelLeft,
smSelWordLeft,
smColSelLeft,
smColSelWordLeft:
Result := Result + '#' + IntToStr(Macro.Events[Index].Command)+ ':' + #$AC;
.....

for the left, right, delete ... keys charcode of the symbolfont is used, for normal keys the normal charcode is used.

2. A SyntaxMemo which parses the numbers to a hidden font, and translate Shift to Bold, Ctrl to + Background color, Alt to Italic (for the control keys left, right, delete, ....)

3. A KeyHandler for SyntaxMemo, which translates the input to this code and which has two modes, which can be toggled (for example by the Alt-key): 1. Normal mode, which does not translate Left, , Delte, ... and the other mode, which translates this keys to the code.

3.Finally, the function for translating the string (in the SyntaxMemo) to a TMacroRec

Hans-Jürgen
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Wed Aug 30, 2006 12:20 pm    Post subject: Reply with quote

OK
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group