LCL: made menu caption and hint translatable (#9876)

git-svn-id: trunk@12389 -
This commit is contained in:
vincents 2007-10-09 08:27:16 +00:00
parent d9d606c45a
commit fd83263261
2 changed files with 4 additions and 4 deletions

View File

@ -927,7 +927,7 @@ end;
Sets the caption of a menuItem.
------------------------------------------------------------------------------}
procedure TMenuItem.SetCaption(const AValue: string);
procedure TMenuItem.SetCaption(const AValue: TTranslateString);
begin
if FCaption = AValue then exit;
FCaption := AValue;

View File

@ -140,7 +140,7 @@ type
function IsShortCutStored: boolean;
function IsVisibleStored: boolean;
procedure SetAutoCheck(const AValue: boolean);
procedure SetCaption(const AValue: string);
procedure SetCaption(const AValue: TTranslateString);
procedure SetChecked(AValue: Boolean);
procedure SetDefault(AValue: Boolean);
procedure SetEnabled(AValue: Boolean);
@ -232,7 +232,7 @@ type
published
property Action: TBasicAction read GetAction write SetAction;
property AutoCheck: boolean read FAutoCheck write SetAutoCheck default False;
property Caption: String read FCaption write SetCaption
property Caption: TTranslateString read FCaption write SetCaption
stored IsCaptionStored;
property Checked: Boolean read FChecked write SetChecked
stored IsCheckedStored default False;
@ -243,7 +243,7 @@ type
property GroupIndex: Byte read FGroupIndex write SetGroupIndex default 0;
property HelpContext: THelpContext read FHelpContext write FHelpContext
stored IsHelpContextStored default 0;
property Hint: String read FHint write FHint stored IsHintStored;
property Hint: TTranslateString read FHint write FHint stored IsHintStored;
property ImageIndex: Integer read FImageIndex write SetImageIndex
stored IsImageIndexStored default -1;
property RadioItem: Boolean read FRadioItem write SetRadioItem