Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-02

various updates and questions

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

olivier Guilbaud

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.

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

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

* 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 &" ???

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

by advance thank you

Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00016.bin
Type: application/octet-stream
Size: 4049 bytes
Desc: "lazarus27022003_2.tgz"
Url : http://localhost/pipermail/lazarus/attachments/20030227/22d525b3/bin00016.bin

Reply by email

Mattias Gaertner
to olivier Guilbaud
Show quoted text 15 lines
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.

Show quoted text 7 lines
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

Reply by email