Re: Language of StandardActions
From: L D Blake (not_at_any.adr)
Date: 11/19/04
- Next message: Phil: "Re: How to un-minimize on top??"
- Previous message: Dr John Stockton: "Re: Programming psychology experiments in Windows environment"
- In reply to: Christian Kirchhoff: "Language of StandardActions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Nov 2004 13:23:33 -0500
On 19 Nov 2004 08:49:11 -0800, ckirchho@directmedia.de (Christian Kirchhoff)
wrote:
>I am developing software with Delphi 6 under Windows XP SP2, mainly
>for the german market.
>
>One of my project is being localized for the UK. The beta testers
>report that the Popup Menu for TEdit and TMemo components (Undo, Cut,
>Cop, Paste, Delete, Select all) are still in german. I didn't find any
>ressource strings for those texts. But there is an ActionList and
>StandardActions for Cut, Copy etc. in Module "ActnRes", and the
>captions of this ActionList are in german language. I Supposed that
>the MenuItems in the PopupMenu are linked to those actions and thought
>that by changing those actions cations to english at runtime I could
>solve this problem.
>
>But trying to change these captions at runtime for the UK version
>doesn't work because the Object "StandardActions" declared in Unit
>"ActnRes" is always nil.
>
>Does anybody know how to solve this problem?
If you are using the default menus from the edit controls themselves, the text
you need to change will be in the common controls DLL resource area. What you
need to do is subclass these controls and provide your own menus from your
localized resource strings. This also has the advantage that you can add (or
subtract) items from the menu situationally, allowing for some rather
impressive customizations.
-----
Laura
- Next message: Phil: "Re: How to un-minimize on top??"
- Previous message: Dr John Stockton: "Re: Programming psychology experiments in Windows environment"
- In reply to: Christian Kirchhoff: "Language of StandardActions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|