Re: [Lazarus] Installation under SUSE

2016-01-06 Thread David Copeland
On my 13.2 system at home with Laz 1.4.2/fpc 2.6.4, I have the following
packages installed

gdk-pixbuf-devel
libgdk_pixbuf-2_0-0

plus a few other related packages. I think the devel is required.

Dave.

On 01/06/2016 05:00 PM, Koenraad Lelong wrote:
> Op 06-01-16 om 19:40 schreef Josef Schnieder:
>> Hello,
>>
>> the setup-script from http://www.getlazarus.org/setup/ will not work
>> under SUSE (open SUSE 42.1 Leap).
>> the message is:
>> "This script requires the package libgdk-pixbuf2.0-dev which was not
>> found on your system"
>>
>> But I can't find this package for SUSE.
>>
>> What should I do?
>> Is there another way to install Lazarus with FPC 3.0 under SUSE.
>>
>> best regards
>> Josef
>
> FWIW,
>
> The Education repo of Opensuse has lazarus 1.4.4
> (https://software.opensuse.org/package/lazarus). I think it should be
> possible to discover what packages this needs, lazarus 3.0 should need
> the same libraries, I think.
>
> I successfully installed fpcup on my opensuse 13.2.
>
> Koenraad.
>
>
> -- 
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Google APIs

2015-05-08 Thread David Copeland
+1.

On 05/07/2015 06:33 PM, William Ferreira wrote:
 GCalendar will be very welcome!


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4

2014-03-13 Thread David Copeland
Any issues using 2.6.4 to build the svn version?

Thanks,
Dave.

On 03/13/2014 08:46 AM, Mattias Gaertner wrote:
 On Thu, 13 Mar 2014 12:25:15 +0200
 Tommi Prami tommi.pr...@gmail.com wrote:

 Hello,

 I've been wondering very long that FPC has not updated in the Lazarus. But
 now that new version is out, what is the plan to release lazarus version
 with it?
 Probably the next release 1.2.2 will use fpc 2.6.4.
 Both are bug fix releases, so they play nice together.
  



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4

2014-03-13 Thread David Copeland
On 03/13/2014 11:01 AM, Mattias Gaertner wrote:
 On Thu, 13 Mar 2014 10:36:10 -0400
 David Copeland david.copel...@jsidata.ca wrote:

 Any issues using 2.6.4 to build the svn version?
 No. I use it too.

 Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Thanks!


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SQL function within SQL statement

2013-12-11 Thread David Copeland
Perhaps you could try UCASE(capital) as capital ...

Dave Copeland.

On 12/11/2013 01:16 PM, Eric Kom wrote:
 Hi all,

 Please I got small issue with lazarus on how to pass SQL statement
 with a function as above:

 SELECT city, UCASE(capital) FROM country;

 the capital column doesn't show on the DBGrid

 Thanks




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [resolved] How to use TRegExpr class (in synregexpr.pas)

2013-10-25 Thread David Copeland
I see that the starting IP  can have imbedded spaces. Trim only removes
leading and trailing space. I believe the DelSpace function will remove
all space.

Dave.

On 10/25/2013 07:31 AM, FreeMan wrote:
 This is version is penultimate version :)
 '127.000. 0 .01 ' result is '127.0.0.1'
 I tested this in:
 Kubuntu 13.10 x64
 fpc svn update 25845
 lazarus svn update 43320

 function IP4OK(pT: String): String;
 var r  : TRegExpr;
 i,j: Integer;

 function My_Trim(S : String): String;
 Const myWhiteSpace = [#0..#32];
 var I: Integer;
 begin
  Result := '';
  Try
   I := 1;
   while I=Length(S)do Begin
if not(S[I]in MyWhiteSpace)then Result := Result + S[I];
Inc(I,1);
   end;
  Except
   Result := '';
  end;
 end;
 begin
   try
   Result := '';
   r := TRegExpr.Create;
   r.Expression := '^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$';
   pT := My_Trim(pT);
   if r.Exec(pT) then begin
 for i := 1 to 4 do begin
   J := StrToInt(r.Match[i]);
   if J  255 then begin
   Result := '';
   Break;
   end else begin
 if Result''then Result := Result + '.';
 Result := Result + IntToStr(J);//for delete space and zero on
 left
   end;
 end;
   end;
   finally
 r.Free;
   end;
 end;

 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] IDE can't find various LCL unit

2013-07-02 Thread David Copeland
Recently, the IDE has been having trouble finding various units within
the LCL. I tried searching the bug tracker but could not find this issue.

I use fpc 2.6.2, and use Lazarus from svn. I updated this morning to
revision 41964. The OS is Suse 12.2 / x86_64.

What happens is ... Whenever I try to navigate to an event handler of a
control I get an error ...
/home/david.copeland/projects/lazarus/lcl/controls.pp(38,36) Error: unit
not found: types
The controls.pp source file is opened and the unit clause is
highlighted. Sometimes it is the gettext in the Forms unit that is not
found. Also, I am not sure, but I think this started when I upgraded fpc
from 2.6.0 to 2.6.2.

For example, and more specifically say I click on a Button in some Form.
Then in the Object Inspector I click on the Event tab, then click on the
On Click line to get the ... to show. It is at this point  the error
occurs. However, the ... are shown and I can click on them to navigate
to the handler. I can build my application and it runs. As long as the
project remains open the error does not reoccur. But if I open another
project I get this error on the first attempt to navigate to an event
handler.

When the handler already exists this is an annoyance. But if I try
creating a handler for a new control  the behavior is different. When I
click on the ... in the Object Inspector I get a message dialog with the
the message Unable to find method. Please fix the error shown in the
message window, which in normally below the source editor.  That error
is Error: Unit not found: Classes. Also the file LCLClasses is opened
in the editor. This happens every time I try to create the handler in
this way. I can manually add the handler and the application builds
normally. However, the manually added handler is not visible in the
object inspector, even if I restart the IDE.

I hope this is enough info. I can file a bug report if needed.

Thanks,
Dave Copeland.






--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE can't find various LCL unit

2013-07-02 Thread David Copeland


On 07/02/2013 11:09 AM, Mattias Gaertner wrote:
 On Tue, 02 Jul 2013 10:38:13 -0400
 David Copeland david.copel...@jsidata.ca wrote:

 Recently, the IDE has been having trouble finding various units within
 the LCL. I tried searching the bug tracker but could not find this issue.

 I use fpc 2.6.2, and use Lazarus from svn. I updated this morning to
 revision 41964. The OS is Suse 12.2 / x86_64.

 What happens is ... Whenever I try to navigate to an event handler of a
 control I get an error ...
 /home/david.copeland/projects/lazarus/lcl/controls.pp(38,36) Error: unit
 not found: types
 The controls.pp source file is opened and the unit clause is
 highlighted. Sometimes it is the gettext in the Forms unit that is not
 found. Also, I am not sure, but I think this started when I upgraded fpc
 from 2.6.0 to 2.6.2.
 The unit types is part of fpc.
 In that case the IDE can not use search paths to find the source, but
 instead uses its scan results of the fpc sources (Tools / Rescan FPC
 source directory).

 Have you tried Tools / Rescan FPC source directory?
I tried this. The problem is now that the include file sysutilsh.inc
in sysutils cannot be found, or sometimes other include files, or even
TComponent.


 Check View / IDE Internals / About FPC.
 It should list the full filename of types.ppu.
It does. It is: types=/usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/types.ppu

  
 For example, and more specifically say I click on a Button in some Form.
 Then in the Object Inspector I click on the Event tab, then click on the
 On Click line to get the ... to show. It is at this point  the error
 occurs. However, the ... are shown and I can click on them to navigate
 to the handler. I can build my application and it runs. As long as the
 project remains open the error does not reoccur. But if I open another
 project I get this error on the first attempt to navigate to an event
 handler.
 Maybe the project has some strange defines. For instance
 targetos=win32.

Not that I can see. I develop exclusively on/for Linux.
  
 When the handler already exists this is an annoyance. But if I try
 creating a handler for a new control  the behavior is different. When I
 click on the ... in the Object Inspector I get a message dialog with the
 the message Unable to find method. Please fix the error shown in the
 message window, which in normally below the source editor.  That error
 is Error: Unit not found: Classes. Also the file LCLClasses is opened
 in the editor. This happens every time I try to create the handler in
 this way. I can manually add the handler and the application builds
 normally. However, the manually added handler is not visible in the
 object inspector, even if I restart the IDE.

 I hope this is enough info. I can file a bug report if needed.

 Mattias

 --





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE can't find various LCL unit

2013-07-02 Thread David Copeland
On 07/02/2013 12:22 PM, Mattias Gaertner wrote:
 On Tue, 02 Jul 2013 11:53:56 -0400
 David Copeland david.copel...@jsidata.ca wrote:

 [...]
 Have you tried Tools / Rescan FPC source directory?
 I tried this. The problem is now that the include file sysutilsh.inc
 in sysutils cannot be found, or sometimes other include files, or even
 TComponent.
 ok, that's one step further. It can find the .pas files of the .ppu
 files. Now to the include files.

 Open sysutils.pp.
 Check
 Source / Unit Information / Include Paths
 You should see a list of 11 paths.
The Include Paths is empty, as is Unit Paths.
Source Path is /usr/share/fpcsrc/2.6.2/rtl/unix



 Check View / IDE Internals / About FPC.
 It should list the full filename of types.ppu.
 It does. It is: types=/usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/types.ppu
 Good.


 Mattias

 --

Thanks,
Dave.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE can't find various LCL unit

2013-07-02 Thread David Copeland
On 07/02/2013 01:28 PM, Mattias Gaertner wrote:

[...]
 Is the path in Tools / Options / FPC Source directory
 '/usr/share/fpcsrc/2.6.2'? 

No. It was /usr/share/fpcsrc. After changing it to the above the
problems do not occur.


 Mattias  

Thanks very much for your help!

Dave.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE can't find various LCL unit

2013-07-02 Thread David Copeland
On 07/02/2013 02:20 PM, Mattias Gaertner wrote:
 On Tue, 02 Jul 2013 13:45:13 -0400
 David Copeland david.copel...@jsidata.ca wrote:

 On 07/02/2013 01:28 PM, Mattias Gaertner wrote:

 [...]
 Is the path in Tools / Options / FPC Source directory
 '/usr/share/fpcsrc/2.6.2'? 
 No. It was /usr/share/fpcsrc. After changing it to the above the
 problems do not occur.
 That's strange. You should have seen a window at IDE start warning that
 the fpc source directory looks wrong.

Would the warning appear at each and every startup? Perhaps I missed it
after I first upgraded fpc to 2.6.2. That was maybe two months ago.


 Mattias

 -



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread David Copeland
That would be the DateOrder property of a TDate Edit, set it to doYMD.

Dave Copeland.

On 06/18/2013 08:10 AM, Johan Tu Toit wrote:
 Good day,

 Please how to change the Date format for the TDateEdit component to
 -MM-DD instead of using the default DD/MM/?

 Thanks in advance


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread David Copeland
True, I do not know if there is a separator property. In my programs I
typically build a date string from the TDateEdit.Date myself.

On 06/18/2013 08:30 AM, Johan Tu Toit wrote:
 The DateOrder property only give the format order but do not change
 the separator / to - 


 On Tue, Jun 18, 2013 at 2:20 PM, David Copeland
 david.copel...@jsidata.ca mailto:david.copel...@jsidata.ca wrote:

 That would be the DateOrder property of a TDate Edit, set it to doYMD.

 Dave Copeland.


 On 06/18/2013 08:10 AM, Johan Tu Toit wrote:
 Good day,

 Please how to change the Date format for the TDateEdit component
 to -MM-DD instead of using the default DD/MM/?

 Thanks in advance


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Exit Status of Lazarus App

2013-03-21 Thread David Copeland
Hi,

How can I set the exit status/return code of a Lazarus application? I
have done some searching but haven't found it.

Thanks,
Dave Copeland.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Exit Status of Lazarus App

2013-03-21 Thread David Copeland
Hi Sven,

Thank you very much!

Dave.

On 03/21/2013 09:42 AM, Sven Barth wrote:
 Am 21.03.2013 14:23, schrieb David Copeland:
 Hi,

 How can I set the exit status/return code of a Lazarus application? I
 have done some searching but haven't found it.
 The variable you are looking for is called ExitCode (and as it is in
 unit System it's always available). See here:
 http://www.freepascal.org/docs-html/rtl/system/exitcode.html

 Regards,
 Sven

 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Exit Status of Lazarus App

2013-03-21 Thread David Copeland
On 03/21/2013 12:05 PM, Mark Morgan Lloyd wrote:
 Sven Barth wrote:
 Am 21.03.2013 14:23, schrieb David Copeland:
 Hi,

 How can I set the exit status/return code of a Lazarus application? I
 have done some searching but haven't found it.
 The variable you are looking for is called ExitCode (and as it is
 in unit System it's always available). See here:
 http://www.freepascal.org/docs-html/rtl/system/exitcode.html

 Thanks for that as well. I've experimentally put it in a signal
 handler (that otherwise has the effect of setting a flag which is
 checked at an opportune point in the code) and can confirm it works.
 Also OK in an OnCloseQuery handler etc.


As an aside, I have discovered that if you use FpSystem to run a Lazarus
App, the exit code returned is multiplied by 256 (or mishandled
somehow), Eg. 1 = 256, 13 = 3328, etc. However when run using TProcess
the exit code is returned correctly.

Dave.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] String grids

2012-03-01 Thread David Copeland
Yes, I am discovering this. For example, how to change the background
colour of only a portion of a cell. That turned out to be very easy.

Thanks,
Dave.

-Original Message-
From: Alexsander Rosa alexsander.r...@gmail.com
Reply-to: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Subject: Re: [Lazarus] String grids
Date: Wed, 29 Feb 2012 14:37:31 -0300

There's a lot more you can do with String Grids
http://wiki.lazarus.freepascal.org/Grids_Reference_Page

2012/2/29 David Copeland david.copel...@jsidata.ca
Thanks!

/Dave.







--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] String grids

2012-02-29 Thread David Copeland
Thanks!

/Dave.

-Original Message-
From: k...@vgdata.dk
Reply-to: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Subject: Re: [Lazarus] String grids
Date: Wed, 29 Feb 2012 16:39:11 +0100 (CET)

 Is there any way (hopefully easy) to change the background colour of a
 specific cell in a stringgrid?

procedure TForm1.SG1PrepareCanvas(sender: TObject; aCol, aRow: Integer;
  aState: TGridDrawState);
begin
  SG1.Canvas.brush.color := clWhite;
  If (aCol = 4) and (aRow = 1) Then
  SG1.Canvas.Brush.color := clRed;
end;
The PrepareCanvas may be used.

/Kaj

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


-- 
David Copeland
JSI Data Systems Limited
613-727-9353.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus from SVN and MySQL 5.1

2011-09-16 Thread David Copeland
I recently noticed that FPC 2.4.4 is being offered with the Lazarus
snapshots, up from 2.4.2. So I downloaded it and rebuilt Lazarus with
it.

When I rebuilt an application that uses a Tmysql50connection I now get a
client version mismatch error when the app tries to open the connection.
I am running opensuse 11.4 with mysql 5.1 (in a VM). The
Tmysql50connection of 2.4.2 didn't seem to care that it was using a 5.1
library.

However, there is no mysql 5.1 available on the SQLDB tab in Lazarus.
When I look in the directory lazarus/components/sqldb/design/ I see the
file tmysql51connection.png but it doesn't show on the SQLDB tab. 

Any help is appreciated. I will file a bug report if needed (and it's
not already there).

Thanks,
Dave Copeland.





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TDateEdit Problem

2011-08-10 Thread David Copeland
On Wed, 2011-08-10 at 07:37 +0200, Felipe Monteiro de Carvalho wrote:
 On Tue, Aug 9, 2011 at 9:58 PM, Maxim Ganetsky gan...@narod.ru wrote:
  Please create a bug report, attach to it small test project and detailed
  description what doesn't work and what is expected.
 
 And please write in the title of the bug report the word regression
 

Will do. However, the small test project I created to illustrate the
problem, failed to do so, ie. the DateEdit worked ok. Since main app is
too large to send I will have to do some more investigation to recreate
the problem in the test project. 




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TDateEdit Problem

2011-08-09 Thread David Copeland
Hi,

Can anyone think of a reason why TDateEdit would stop working in an
application when thay were working before. There are several TDateEdit's
on several forms and they all have stopped responding. If I click on the
form background the DateEdit will close. If I try to manually enter the
date into the edit box it also appears that the DateOrder is not
respected. I am using YMd, but when I try to enter 2011-08-30, the
cursor skips to the month when the first 1 in the year is pressed. I
update from SVN periodically. This app uses GTK2. If I rebuild the app
using QT the TDateEdit's work fine. Also, when I create a new test app
with just a TDateEdit using GTK2, it works properly. I'm probably
missing something simple, but can't see what it is.

My environment is: Linux Opensuse 11.4, svn revision 31916, FPC 2.4.2.

Thanks,
Dave Copeland.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New? TDateEdit Problem

2011-08-09 Thread David Copeland
Oops, sorry, I didn't notice. 

On Tue, 2011-08-09 at 14:10 +0200, Michael Schnell wrote:
 Don't hijack a running mailing list thread !
 
 -Michael
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
 




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TDateEdit Problem

2011-08-09 Thread David Copeland
Apologies to all for mis-posting my last message, I realize now how it
happened. Re-posted (hopefully in a new thread).

Hi,

Can anyone think of a reason why TDateEdit would stop working in an
application when thay were working before. There are several TDateEdit's
on several forms and they all have stopped responding. If I click on the
form background the DateEdit will close. If I try to manually enter the
date into the edit box it also appears that the DateOrder is not
respected. I am using YMd, but when I try to enter 2011-08-30, the
cursor skips to the month when the first 1 in the year is pressed. I
update from SVN periodically. This app uses GTK2. If I rebuild the app
using QT the TDateEdit's work fine. Also, when I create a new test app
with just a TDateEdit using GTK2, it works properly. I'm probably
missing something simple, but can't see what it is.

My environment is: Linux Opensuse 11.4, svn revision 31916, FPC 2.4.2.

Thanks,
Dave Copeland.





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TDateEdit Problem

2011-08-09 Thread David Copeland
Hi Gerard,

Ok, thanks for the idea.

Dave.

On Tue, 2011-08-09 at 18:39 +0200, Gerard Visent wrote:
 Hi David,
 
 There are several TDateEdit's
 on several forms and they all have stopped responding. If I
 click on the
 form background the DateEdit will close. 
 
 This may be due to the following change, made in mid-july:
 http://bugs.freepascal.org/view.php?id=14059
 See also http://bugs.freepascal.org/view.php?id=14058
 In GTK2, the calendar was shown in a modal form and the underlying
 form wouldn't get the focus until it was closed.
 Clicking anywhere outise the calendar now closes it, and it's
 consistent with what it does under Windows.
  
 If I try to manually enter the
 date into the edit box it also appears that the DateOrder is
 not
 respected. I am using YMd, but when I try to enter
 2011-08-30, the
 cursor skips to the month when the first 1 in the year is
 pressed. 
 
 This works for me (Linux Mint 64 bits, SVN 31924 FPCO 2.4.2).
  
 I
 update from SVN periodically. This app uses GTK2. If I rebuild
 the app
 using QT the TDateEdit's work fine. Also, when I create a new
 test app
 with just a TDateEdit using GTK2, it works properly. I'm
 probably
 missing something simple, but can't see what it is.
 
 Sorry, no idea of what can be wrong.
 
 Regards,
 
 Gerard.
 
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
Hi,

I believe I have found a ComboBox bug, but I don't how I should
categorize it. If you click on the expand list down arrow of the
control, the program is terminated and the following message is
displayed. 

david.copeland@dbc:~/projects/test ./CBBug
The program 'CBBug' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 6119 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error()
function.)
david.copeland@dbc:~/projects/test 

My environment is ...

Lazarus version: SVN 31344. 
Widgetset: GTK2.
FPC version: 2.4.2
OS: openSuse 11.4

To reproduce the behaviour I created an app with one form containing
just the ComboBox. The Items list is empty. However, If I add lines to
Items, even a blank line, the above does not occur. 

I can send my test project if needed.

Regards,
Dave Copeland.




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
On Fri, 2011-06-24 at 18:22 +0200, Mattias Gaertner wrote:
  function.)
 
 It works here.
 
 Please test with ./CBBug --sync
 And please test with some other themes to make sure it is a LCL bug
 and not a buggy gtk theme engine.
 Finally test with another window manager (do not confuse it with
 another widget set).
 
 

Okay, will do.

 If it is just an empty combobox on a form you don't need to send it.

Yes, it's just that.

 
 Mattias
 




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
On Fri, 2011-06-24 at 18:22 +0200, Mattias Gaertner wrote: 
 Please test with ./CBBug --sync

No change, same problem.

 And please test with some other themes to make sure it is a LCL bug
 and not a buggy gtk theme engine.

I found a way to change the GTK Style. It was oxygen-gtk. When I
change it to either Raleigh or Sonar (the only other choices) the
problem does not occur.

 Finally test with another window manager (do not confuse it with
 another widget set).
 
I tried Ice, also, the problem does not occur.

Dave.




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ComboBox Bug

2011-06-24 Thread David Copeland
On Fri, 2011-06-24 at 19:41 +0200, Mattias Gaertner wrote:

 Then you found a buggy gtk theme.
 I don't know, if the LCL gtk2 interface can work around
 this.
 What Linux distribution is this?
 
openSuse 11.4.





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TPage.Caption

2011-01-14 Thread David Copeland

Hi all,

I have just this morning updated to the latest svn and now get the 
following dialog message when opening a form which contains a TNotebook 
with two TPage's ...


Read error.

Stream=TFormProjDetails: Root=.TformProjDetails
Component Class: TPage
Error reading PageGeneral.Caption: Unknown
property: Caption
Stream position: 8192

Have I missed some changes that explain this, or is this a bug?

Thanks,
Dave Copeland.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TPage.Caption

2011-01-14 Thread David Copeland

On 01/14/2011 10:57 AM, Felipe Monteiro de Carvalho wrote:

On Fri, Jan 14, 2011 at 4:51 PM, David Copeland
david.copel...@jsidata.ca  wrote:

Have I missed some changes that explain this, or is this a bug?

http://wiki.lazarus.freepascal.org/Lazarus_0.9.30_release_notes#TNotebook_and_TPage



Thanks Felipe,
Dave.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus