Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Customize Shift+RClick menu?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dsb
Starting Member

USA
1 Posts

Posted - Feb 12 2007 :  3:30:01 PM  Show Profile  Reply with Quote
I'm converting a bunch of Windows MFC code to Unicode and it sure would be nice to have the _T() autotext option directly on this menu instead of invoking the Insert Autotext submenu.

My apologies if this has been asked before; a couple of quick forum searches didn't turn up anything.

Regards,

David

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 12 2007 :  6:51:13 PM  Show Profile  Reply with Quote
I've found this to be helpful:
Create an autotext item with a shortcut of tcc and make the body:
_T($clipboard$)

Now to convert a string literal: select it, copy it and then type tcc and accept the autotext suggestion.
Go to Top of Page

diarrhio
Ketchup Master

53 Posts

Posted - Feb 14 2007 :  1:02:38 PM  Show Profile  Reply with Quote
I wrote a macro to do this and tied it to Ctrl-T. Here it is:

Sub UnicodeMacro()
   'DESCRIPTION: Puts a _T(  ) around the selection
    Dim textSelection As TextSelection

    textSelection = ActiveDocument().Selection
    textSelection.Text() = "_T( " + textSelection.Text() + " )"
End Sub
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 14 2007 :  1:39:08 PM  Show Profile  Reply with Quote
Interesting, many thanks for this. It is about time I started learning about IDE macro's and things like this are a good place to start

zen is the art of being at one with the two'ness
Go to Top of Page

bugfix
Tomato Guru

Germany
324 Posts

Posted - Feb 14 2007 :  3:05:38 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Interesting, many thanks for this. It is about time I started learning about IDE macro's and things like this are a good place to start



heh, you write this every time someone posts a macro, some autotext plugin for firefox?:)

http://www.mf-sd.de
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 14 2007 :  3:47:15 PM  Show Profile  Reply with Quote
To try and avoid killing this topic see here: http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=5011

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000