Home All Groups Group Topic Archive Search About

translate menu in resource file

Author
11 Feb 2009 4:32 PM
Andy Smirala
Hi,

maybe it is a simple question, but i did not find answer on google

can i translate the whole menu using resource file (string table) ?
i want to have menu language of my program in two (maybe more) different
language,
but i don't know, how to tell in menu editor to use a string from string
table in resource file.

others, such as captions - it works fine, i am using such
Label7.Caption = LoadResString(101)

thanks


andy

Author
11 Feb 2009 10:11 PM
Andy Smirala
hi,

i made it,
simply : Mnu_File = LoadResString(119)

but it doesn't work with sign "&" - such as "&File" - the "F" letter is not
underlined

any ideas?


andy


Show quoteHide quote
"Andy Smirala" <i***@klimashop.sk> wrote in message
news:uHt1UZGjJHA.3380@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> maybe it is a simple question, but i did not find answer on google
>
> can i translate the whole menu using resource file (string table) ?
> i want to have menu language of my program in two (maybe more) different
> language,
> but i don't know, how to tell in menu editor to use a string from string
> table in resource file.
>
> others, such as captions - it works fine, i am using such
> Label7.Caption = LoadResString(101)
>
> thanks
>
>
> andy
>
Author
16 Feb 2009 12:47 AM
Bill McCarthy
Hi Andy,

> simply : Mnu_File = LoadResString(119)

That is/should be/ the same as :

Mnu_File.Caption = LoadResString(119)

Just you are using default properties.


> but it doesn't work with sign "&" - such as "&File" - the "F" letter is
> not underlined

Are you sure they aren't working or simply aren't displaying ?  If you press
the Alt key do they show up ?





Show quoteHide quote
"Andy Smirala" <i***@klimashop.sk> wrote in message
news:O47JDXJjJHA.824@TK2MSFTNGP02.phx.gbl...
> hi,
>
> i made it,
> simply : Mnu_File = LoadResString(119)
>
> but it doesn't work with sign "&" - such as "&File" - the "F" letter is
> not underlined
>
> any ideas?
>
>
> andy
>
>
> "Andy Smirala" <i***@klimashop.sk> wrote in message
> news:uHt1UZGjJHA.3380@TK2MSFTNGP04.phx.gbl...
>> Hi,
>>
>> maybe it is a simple question, but i did not find answer on google
>>
>> can i translate the whole menu using resource file (string table) ?
>> i want to have menu language of my program in two (maybe more) different
>> language,
>> but i don't know, how to tell in menu editor to use a string from string
>> table in resource file.
>>
>> others, such as captions - it works fine, i am using such
>> Label7.Caption = LoadResString(101)
>>
>> thanks
>>
>>
>> andy
>>
>
>
Author
19 Feb 2009 3:09 PM
Andy Smirala
Show quote Hide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:ep9J2J9jJHA.1252@TK2MSFTNGP03.phx.gbl...
> Hi Andy,
>
>> simply : Mnu_File = LoadResString(119)
>
> That is/should be/ the same as :
>
> Mnu_File.Caption = LoadResString(119)
>
> Just you are using default properties.
>
>
>> but it doesn't work with sign "&" - such as "&File" - the "F" letter is
>> not underlined
>
> Are you sure they aren't working or simply aren't displaying ?  If you
> press the Alt key do they show up ?
>


thanks bill,

you're right, access to menu is working (ALT + key),
only the underlined sing (&File) - (F underlined) is not displayed
but i don't know why

any ideas?

Show quoteHide quote
>
>
>
> "Andy Smirala" <i***@klimashop.sk> wrote in message
> news:O47JDXJjJHA.824@TK2MSFTNGP02.phx.gbl...
>> hi,
>>
>> i made it,
>> simply : Mnu_File = LoadResString(119)
>>
>> but it doesn't work with sign "&" - such as "&File" - the "F" letter is
>> not underlined
>>
>> any ideas?
>>
>>
>> andy
>>
>>
>> "Andy Smirala" <i***@klimashop.sk> wrote in message
>> news:uHt1UZGjJHA.3380@TK2MSFTNGP04.phx.gbl...
>>> Hi,
>>>
>>> maybe it is a simple question, but i did not find answer on google
>>>
>>> can i translate the whole menu using resource file (string table) ?
>>> i want to have menu language of my program in two (maybe more) different
>>> language,
>>> but i don't know, how to tell in menu editor to use a string from string
>>> table in resource file.
>>>
>>> others, such as captions - it works fine, i am using such
>>> Label7.Caption = LoadResString(101)
>>>
>>> thanks
>>>
>>>
>>> andy
>>>
>>
>>
>
Author
23 Feb 2009 12:37 AM
Bill McCarthy
Hi Andy,

Show quoteHide quote
"Andy Smirala" <i***@klimashop.sk> wrote in message
news:ezaXeQqkJHA.3480@TK2MSFTNGP06.phx.gbl...
> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
> news:ep9J2J9jJHA.1252@TK2MSFTNGP03.phx.gbl...
>> Hi Andy,
>>
>>> simply : Mnu_File = LoadResString(119)
>>
>> That is/should be/ the same as :
>>
>> Mnu_File.Caption = LoadResString(119)
>>
>> Just you are using default properties.
>>
>>
>>> but it doesn't work with sign "&" - such as "&File" - the "F" letter is
>>> not underlined
>>
>> Are you sure they aren't working or simply aren't displaying ?  If you
>> press the Alt key do they show up ?
>>
>
>
> thanks bill,
>
> you're right, access to menu is working (ALT + key),
> only the underlined sing (&File) - (F underlined) is not displayed
> but i don't know why
>
> any ideas?
>

Is this just a Windows XP thing perhaps ?  See the thread titled "Shortcut
Underlines Don't Show Up With Manifest??"