News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxSmith: have a option set _() to _T()?

Started by Loaden, October 04, 2008, 10:30:13 AM

Previous topic - Next topic

Loaden

Now, use wxSmith, the code like:_("&Exit")
but i want:_T("&Exit")

How to set?
Thanks!

byo

Currently there's no option for that. wxSmith uses _() where string will be directly presented on the screen, otherwise _T() is used.

BYO

Borr

I have the same problem, but i want


wxT("&Exit")

Jenna

Quote from: Borr on October 19, 2010, 10:25:24 AM
I have the same problem, but i want


wxT("&Exit")

wxT() and _T() are exactly the same.

Borr

Quote from: jens on October 19, 2010, 10:35:32 AM
Quote from: Borr on October 19, 2010, 10:25:24 AM
I have the same problem, but i want


wxT("&Exit")

wxT() and _T() are exactly the same.

I tried wxWidgets 2.9.0. Project with _() failed compile. wxSmith for non-English strings use _().

Loaden

I think we need a option to use _() or _T("").
:)

Loaden

Done in rev6741.  :D
If you want switch the option, you need editing cbp project file, like this:
Quote<Extensions>
         <code_completion />
         <debugger />
         <wxsmith version="1">
            <gui name="wxWidgets" src="sssApp.cpp" main="sssFrame" init_handlers="necessary" language="CPP" />
            <resources>
               <wxFrame wxs="wxsmith/sssframe.wxs" src="sssMain.cpp" hdr="sssMain.h" fwddecl="0" i18n="1" name="sssFrame" language="CPP" />
               <wxDialog wxs="wxsmith/NewDialog.wxs" src="NewDialog.cpp" hdr="NewDialog.h" fwddecl="0" i18n="1" name="NewDialog" language="CPP" />
               <wxPanel wxs="wxsmith/NewPanel.wxs" src="NewPanel.cpp" hdr="NewPanel.h" fwddecl="1" i18n="0" name="NewPanel" language="CPP" />
            </resources>
         </wxsmith>
      </Extensions>

Borr