Hooks to customize code editors?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Hooks to customize code editors?

Carl Gundel-2
Hey, where is the best place to add my own enhancements to the code text editors used by version 8.6?
 
I don't need to do anything complicated, just be able to insert some generated text at the current cursor location when I press a hot key combination.  I'm trying to move over part of our coding practices from the VSE image that we use.
 
Thanks for any ideas,
 
-Carl

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Hooks to customize code editors?

Seth Berman
Hi Carl,

One route is to get a handle on the text widget in an EtWindow-based browser and add your own event handler
See EtWindow>>stsKeyPress:clientData:callData. for an example.

So something like:
etWindow := <Get Handle on window>
etWindow targetTextWidget
addEventHandler: KeyPressMask
receiver: [:widget :clientData :callData | "Perform logic here"]
selector: #value:value:value:
clientData: nil

-- Seth

On Thursday, July 10, 2014 12:04:34 PM UTC-4, Carl Gundel wrote:
Hey, where is the best place to add my own enhancements to the code text editors used by version 8.6?
 
I don't need to do anything complicated, just be able to insert some generated text at the current cursor location when I press a hot key combination.  I'm trying to move over part of our coding practices from the VSE image that we use.
 
Thanks for any ideas,
 
-Carl

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Hooks to customize code editors?

Carl Gundel-2
Thanks Seth.  That worked.
 
-Carl

On Thursday, July 10, 2014 5:12:02 PM UTC-4, Seth Berman wrote:
Hi Carl,

One route is to get a handle on the text widget in an EtWindow-based browser and add your own event handler
See EtWindow>>stsKeyPress:clientData:callData. for an example.

So something like:
etWindow := <Get Handle on window>
etWindow targetTextWidget
addEventHandler: KeyPressMask
receiver: [:widget :clientData :callData | "Perform logic here"]
selector: #value:value:value:
clientData: nil

-- Seth

On Thursday, July 10, 2014 12:04:34 PM UTC-4, Carl Gundel wrote:
Hey, where is the best place to add my own enhancements to the code text editors used by version 8.6?
 
I don't need to do anything complicated, just be able to insert some generated text at the current cursor location when I press a hot key combination.  I'm trying to move over part of our coding practices from the VSE image that we use.
 
Thanks for any ideas,
 
-Carl

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.