Re: [Lazarus] DragManager issues

2014-09-12 Thread Mattias Gaertner
On Fri, 12 Sep 2014 03:21:55 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: I received messages from Mantis, that something changed in the bug reports related to drag/drop. Please let me know when somebody wants to put his hands on related code. What messages? Mattias --

Re: [Lazarus] DragManager issues

2014-09-12 Thread zeljko
On 09/12/2014 11:57 AM, Mattias Gaertner wrote: On Fri, 12 Sep 2014 03:21:55 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: I received messages from Mantis, that something changed in the bug reports related to drag/drop. Please let me know when somebody wants to put his hands on

[Lazarus] StrToDate and DefaultFormatSettings

2014-09-12 Thread Leonardo M. Ramé
Hi, I need to convert strings with format d-mmm-y to TDateTime. For example: '12-Sep-14' Here's my code: DefaultFormatSettings.DateSeparator:='-'; DefaultFormatSettings.ShortDateFormat:='D-MMM-Y'; DefaultFormatSettings.ShortMonthNames[1] := 'Jan'; DefaultFormatSettings.ShortMonthNames[2] :=

Re: [Lazarus] Qt - Checkbox state images

2014-09-12 Thread Gabor Boros
2014.08.13. 15:45 keltezéssel, Gabor Boros írta: My problem is, image for tbCheckBoxCheckedDisabled and tbCheckBoxMixedDisabled is not grayed out under KDE. Why? Hi All, Reported as 26586 and fixed in trunk 46198. Gabor -- ___ Lazarus mailing list

Re: [Lazarus] StrToDate and DefaultFormatSettings

2014-09-12 Thread Henry Vermaak
On Fri, Sep 12, 2014 at 08:18:36AM -0300, Leonardo M. Ramé wrote: Hi, I need to convert strings with format d-mmm-y to TDateTime. For example: '12-Sep-14' Here's my code: DefaultFormatSettings.DateSeparator:='-'; DefaultFormatSettings.ShortDateFormat:='D-MMM-Y';

Re: [Lazarus] DragManager issues

2014-09-12 Thread Graeme Geldenhuys
On 12/09/14 11:18, zeljko wrote: I guess about changing laztarget recently. Yeah, I got loads of those. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing

Re: [Lazarus] StrToDate and DefaultFormatSettings

2014-09-12 Thread Howard Page-Clark
On 12/09/2014 13:04, Henry Vermaak wrote: On Fri, Sep 12, 2014 at 08:18:36AM -0300, Leonardo M. Ramé wrote: Hi, I need to convert strings with format d-mmm-y to TDateTime. For example: '12-Sep-14' This will accomplish the task. function DatestrToDateTime(const aDate: string): TDateTime;

[Lazarus] Questions about SetLength

2014-09-12 Thread Agranov, Gennady
Hi, Maybe it is not a correct list, but I am going to ask my question anyway :) Is there a penalty for calling SetLength if array already has the length we need? And if there is a penalty - is there a way to write generic function SmartSetLength(array,length) that will only call SetLength if

Re: [Lazarus] Questions about SetLength

2014-09-12 Thread payl
Hi, Maybe it is not a correct list, but I am going to ask my question anyway :) Is there a penalty for calling SetLength if array already has the length we need? Yes, there's always penalty for operations that you don't need. FPC will generate normal call, pass arguments, etc. I checked

Re: [Lazarus] Questions about SetLength

2014-09-12 Thread Mattias Gaertner
On Fri, 12 Sep 2014 19:21:45 +0200 payl p...@wp.pl wrote: [...] Is there a penalty for calling SetLength if array already has the length we need? Yes, there's always penalty for operations that you don't need. FPC will generate normal call, pass arguments, etc. I checked if SetLength

[Lazarus] Help system questions

2014-09-12 Thread Reinier Olislagers
Hi list (and Laz devs), I'm working on fixing some things in the help system. 1. function TChmHelpViewer.ShowNode(Node: THelpNode; var ErrMsg: string ): TShowHelpResult; in components\chmhelp\packages\idehelp\lazchmhelp.pas has if Pos('file://', Node.URL) = 1 then begin Result :=