[lazarus] various updates and questions

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 28 05:20:52 EST 2003


On Fri, 28 Feb 2003 01:41:45 +0100
olivier Guilbaud <golivier at free.fr> wrote:

> Hi all
> 
> some modifications :
> 
>   Buttons.pp / bitbtn.inc
>     - Add the methode function TBitBtn.GetCaptionOfKind(aKind:
>     TBitBtnKind): 
> String;
>       this function replace the array const  BitBtnCaption[..] because the
>       
> localizing not work.
>       I supose that FPC associate  directly the strings in the array const
>       and 
> the localizing
>       not work.

Yep. Resourcestrings and ansistring constansts are quite different. 

 
>   ImageListEditor.pp
>     - If possible zoom x2 the selected image.
>     - Fix the superposition of images
>     Bug not found WriteStream add one line at the top of bitmap
> 
>   FileDialog.inc + colordialog.inc + fontdialog.inc / LCLStrConsts.pas
>     Replace all strings by an lacalizable resource

I applied your patch. Thx


> Questions
>    * I would like to make possible the localization of the file
>    keymapping.pp    
> where must be décalre the resources ?

In lazarusidestrconsts.pas.

In keymapping.pp is a function

function EditorCommandLocalizedName(cmd: word;
  const DefaultName: string): string;
begin
  Result:=DefaultName;
end;

A case statement should be added to return the resourcestring of the
command.
The rest should be normal string constants.

  
>  * Key mapping dont work ? i have tested CTRL+SHIFT+1 (set bookmark 1) 
>  does 
> not answer. If i click on "grab key", and CTRL+[1/&] i have key mapped 
> "irregular &" ???

Ctrl+Shift+Number are converted by gtk to Ctrl+Shift+Something, which
depends on the keyboard language. I saw that gtk2 has some functions to
retrieve the number, but I don't know for gtk1. Maybe you can find out.

 
>  * In does the code, it have from time to time, of the writeln. how to
>  make 
> use of it ? and where it's writed ?

Pardon?


Mattias






More information about the Lazarus mailing list