Re: [lazarus] i18n Don't create .rst file and don't work correctly

2007-10-29 Thread Luis Rodrigues
Hello, I haven't worked on the i18n stuff lately (not even on lazarus). Could you please create a bug report with a test case. The .po file should have all the strings with are TTranslateString maybe on the components you're using the properties aren't correctly setup. The .rst should still be

Re: [lazarus] i18n Question

2007-10-29 Thread Luis Rodrigues
On Sun, 2007-10-21 at 14:07 +0200, Mattias Gaertner wrote: On Sun, 21 Oct 2007 13:48:18 +0200 Mattias Gaertner [EMAIL PROTECTED] wrote: On Sun, 21 Oct 2007 01:30:21 +0100 Luis Rodrigues [EMAIL PROTECTED] wrote: On Tue, 2007-10-16 at 01:03 +0200, Mattias Gaertner wrote: On Mon, 15

Re: [lazarus] i18n Don't create .rst file and don't work correctly

2007-10-29 Thread Luis Rodrigues
On Mon, 2007-10-29 at 17:10 +0100, wile64 wrote: 2007/10/29, Luis Rodrigues [EMAIL PROTECTED]: Hello, I haven't worked on the i18n stuff lately (not even on lazarus). Could you please create a bug report with a test case

Re: [lazarus] i18n Question

2007-10-20 Thread Luis Rodrigues
On Tue, 2007-10-16 at 01:03 +0200, Mattias Gaertner wrote: On Mon, 15 Oct 2007 16:28:23 +0100 Luis Rodrigues [EMAIL PROTECTED] wrote: We're using FOnReadStringProperty from reader.inc to translate the string properties, how about TStrings how can this be done? Ideas please. First

[lazarus] i18n Question

2007-10-15 Thread Luis Rodrigues
We're using FOnReadStringProperty from reader.inc to translate the string properties, how about TStrings how can this be done? Ideas please. Regards, Luís _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] App Localization

2007-10-07 Thread Luis Rodrigues
in Project Options? Luís On Sat, 2007-10-06 at 16:04 +0200, Mattias Gaertner wrote: On Sat, 6 Oct 2007 14:47:59 +0200 Mattias Gaertner [EMAIL PROTECTED] wrote: On Wed, 03 Oct 2007 18:51:24 +0100 Luis Rodrigues [EMAIL PROTECTED] wrote: [...] It collects the .rst and .lrt file

Re: [lazarus] App Localization

2007-10-07 Thread Luis Rodrigues
... Good questions. In big project using third party packages you will easily get value clashes. And the same value must be translated differently depending on the context. So merging would be fatal. I'm not sure, how the lcltranslator should know, where to lookup up the translations

Re: [lazarus] App Localization

2007-10-07 Thread Luis Rodrigues
:39 +0100, Luis Rodrigues wrote: ... Good questions. In big project using third party packages you will easily get value clashes. And the same value must be translated differently depending on the context. So merging would be fatal. I'm not sure, how the lcltranslator should know

[lazarus] PkgOptionsDlg has no form?

2007-10-04 Thread Luis Rodrigues
Hi, In my i18n work i've been looking at the package system and have a quick question: Why is the form sometimes built with code? why is there no .lfm file. This happens in a unit I need to change: PkgOptionsDlg.pas Regards, Luís

Re: [lazarus] App Localization

2007-10-03 Thread Luis Rodrigues
On Tue, 2007-10-02 at 16:54 +0200, Mattias Gärtner wrote: Zitat von Luis Rodrigues [EMAIL PROTECTED]: Basically you enable the experimental LRT code *and* remove the working and used RST code. So it breaks existing packages/projects. This must be improved. See below. I

Re: [lazarus] App Localization

2007-10-02 Thread Luis Rodrigues
Basically you enable the experimental LRT code *and* remove the working and used RST code. So it breaks existing packages/projects. This must be improved. See below. I didn't remove the RST code, .rst is generated by fpc so it still gets generated. I only updated the generation of the PO

Re: [lazarus] App Localization

2007-09-30 Thread Luis Rodrigues
, 2007-09-28 at 17:06 +0100, Luis Rodrigues wrote: Hello, after some time trying to understand the code I found that what I want is all ready implemented. Just have to compile with -dTRANSLATESTRING Shouldn't this be made a standard feature? If so I can produce a patch that enables

Re: [lazarus] Lazarus compiler crash

2007-09-28 Thread Luis Rodrigues
It's working. Thanks On Fri, 2007-09-28 at 07:14 +0200, Christian U. wrote: Luis Rodrigues schrieb: Applying the attached patch and make lcl crashes compiler. Luis Free Pascal Compiler version 2.0.4 [2006/08/22] for i386 Please test this with the actual compiler (2.2.0

Re: [lazarus] TAChart bugs

2007-09-27 Thread Luis Rodrigues
When creating the bugreport please send a example application where the error happens. Luís On Thu, 2007-09-27 at 10:55 +0400, 12 12 wrote: TAChart doesn't display title when placed on TTabSheet of TPageControl. -- 12 12 aka skywriter

[lazarus] Lazarus compiler crash

2007-09-27 Thread Luis Rodrigues
Applying the attached patch and make lcl crashes compiler. Luis Index: lcl/lresources.pp === --- lcl/lresources.pp (revision 12204) +++ lcl/lresources.pp (working copy) @@ -85,7 +85,7 @@ property Res: TLResource read FRes;

Re: [lazarus] App Localization

2007-09-25 Thread Luis Rodrigues
On Tue, 2007-09-25 at 20:08 +0200, Mattias Gaertner wrote: On Mon, 24 Sep 2007 18:00:09 +0100 Luis Rodrigues [EMAIL PROTECTED] wrote: I just looked at the code. I think most of it should have to be redone, but some the ideias there are good. I wanted to ask the Lazarus devs

Re: [lazarus] App Localization

2007-09-24 Thread Luis Rodrigues
,tranalated_caption A library could be generated that would contain the strings and could be loaded like in msei18n. Comments please. Luís On Sat, 2007-09-22 at 11:01 +0200, Martin Schreiber wrote: On Saturday 22 September 2007 03.59, Luis Rodrigues wrote: Hi, Is there any good translation tool

[lazarus] App Localization

2007-09-21 Thread Luis Rodrigues
Hi, Is there any good translation tool? When i say good I mean that it finds all the strings on my project (in code and forms) and creates a list for me to translate. If there is only resourcestring i'm willing to make a better tool, any info on how to do this? Regards, Luís

Re: [lazarus] GTK Rotated text

2007-09-12 Thread Luis Rodrigues
When drawing to a TImage canvas DevCtx.DCWidget was nil so gtk_widget_get_screen(DevCtx.DCWidget) would fail. Just replaced it with another function. Now should work. On Wed, 2007-09-12 at 05:24 +0100, Luis Rodrigues wrote: Too much sleep made me send the wrong patch. Sorry. I don't know

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
On Tue, 2007-09-11 at 11:38 +0200, Marc Weustink wrote: Luis Rodrigues wrote: Hi, Over the last weekend I've implemented text rotate in GTK2. I've implemented it in Gtk2WidgetSet.ExtTextOut. Since there is no way to define that the font is rotated, TGtk2WidgetSet.CreateFontIndirectEx

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
On Tue, 2007-09-11 at 20:36 +0200, Felipe Monteiro de Carvalho wrote: I know that fpc gtk bindings cover at least up to 2.8 Where are they? I could find them defined in FPC/packages/extra/gtk2 or FPC/packages/extra/gtk1 so I thought they weren't and defined the functions I needed. Luís

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
Here is the patch to enable font rotation on gtk2. The angle used is the one defined in createfontindirect. Someone still needs to implement the necessary functions in the gtk bindings. Luis On Mon, 2007-09-10 at 18:39 +0100, Luis Rodrigues wrote: Hi, Over the last weekend I've implemented

Re: [lazarus] GTK Rotated text

2007-09-11 Thread Luis Rodrigues
Too much sleep made me send the wrong patch. Sorry. I don't know how the change in drawing function affects the rest of the lcl code, but it should work with no probs. Luis On Wed, 2007-09-12 at 04:47 +0100, Luis Rodrigues wrote: Here is the patch to enable font rotation on gtk2. The angle

Re: [lazarus] Lazarus IDE crashes while loading form

2007-08-31 Thread Luis Rodrigues
Is this a known Lazarus bug? In after I load the form if I try to change the property Lazarus craches again :( Regards, Luis On Fri, 2007-08-31 at 08:58 +0200, wile64 wrote: Hello Luis, Edit file dmap.lfm and delete line Style = lbOwnerDrawFixed in object TListBox. object ListBox1:

Re: [lazarus] TToolButton while grouped not working as Delphi

2007-08-30 Thread Luis Rodrigues
On Thu, 2007-08-30 at 10:26 +0200, Marc Weustink wrote: Luis Rodrigues wrote: Could someone please take a look ate this issue and commit my patch since I really need that to be working. http://www.freepascal.org/mantis/view.php?id=9491 Typical borland solution. Personally I think

[lazarus] Lazarus IDE crashes while loading form

2007-08-30 Thread Luis Rodrigues
Just in case some people don't look at mantis I'm double posting this. When I load a Delphi converted form in Lazarus the IDE crashes. http://freepascal.org/mantis/view.php?id=9543 Best regards, Luís Rodrigues _ To

[lazarus] LPtoDP in Windows

2007-08-29 Thread Luis Rodrigues
Hi, I have this code in my TAChart. ... Rgn : HRGN; p: array[0..1] of TPoint; begin if FSeries.Count = 0 then Exit; //set cliping region so we don't draw outsite p[0].x := XImageMin; p[0].y := YImageMax; p[1].x := XImageMax; p[1].y := YImageMin; {$IFDEF

[lazarus] TToolButton while grouped not working as Delphi

2007-08-29 Thread Luis Rodrigues
Could someone please take a look ate this issue and commit my patch since I really need that to be working. http://www.freepascal.org/mantis/view.php?id=9491 With best regards, Luís Rodrigues _ To unsubscribe: mail [EMAIL

Re: [lazarus] Lazarus Bugs

2007-08-23 Thread Luis Rodrigues
: Thu, 23 Aug 2007 10:14:15 GMT it just hangs and I get no more data :( _LR_ On Thu, 2007-08-23 at 11:31 +0200, Marc Weustink wrote: Luis Rodrigues wrote: Hi all, Sorry to send the bug reports here but I can not access mantis or freepascal.org. Does any one know why? According

Re: [lazarus] Lazarus Bugs

2007-08-23 Thread Luis Rodrigues
No I am not. Its some problem with my University's network. Anyway I as able to submit the bug reports to mantis using a online proxy. Luis On Thu, 2007-08-23 at 20:49 +0200, Marc Weustink wrote: Luis Rodrigues wrote: This is very stange because I can not access anything

Re: [lazarus] Changing TObject

2007-03-19 Thread Luis Rodrigues
There is no need to mess with TObject, every TComponent descendent component has the Tag property where you can store whatever you want. http://lazarus-ccr.sourceforge.net/docs/rtl/classes/tcomponent.tag.html Procedure From1.Create(Sender : TObject); var C : integer; begin for C := 1 to 20

[lazarus] Problem While installing component

2007-02-04 Thread Luis Rodrigues
Hi, I'm trying to install a Delphi ported component on Lazarus but i keep getting: D:\lazarus\ide\lazarus.pp(117,1) warning: Object PRDRVSTR.or not found, Linking may fail ! d:\lazarus\fpc\2.0.4\bin\i386-win32\ld.exe: cannont find PRDRVSTR.or d:\lazarus\ide\lazarus.pp(117,1) Error: Error while

[lazarus] TeeChart like component

2007-01-16 Thread Luis Rodrigues
Hi all, I've been working for a couple of weeks on a TeeChart replacement. I based my on work on the excellent TAChart by Philippe Martinole. Before sending this to the mailing list I tried contacting Philippe but he didn't reply. Hope he sees it now. The tar file is here:

Re: [lazarus] TStringGrid Keypress event

2006-12-05 Thread Luis Rodrigues
On Mon, 2006-12-04 at 03:26 +, Luis Rodrigues wrote: Hello, When I press Return key it does not generate a Keypress event (as it does in Dephi). Is this a bug or a feature? Best regards, Luis I've been reading the documentation of grids and found out that the grids should

[lazarus] TStringGrid Keypress event

2006-12-03 Thread Luis Rodrigues
Hello, When I press Return key it does not generate a Keypress event (as it does in Dephi). Is this a bug or a feature? Best regards, Luis _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the