Re: [Lazarus] LazReport: TfrReport.LoadFromFile question

2014-08-26 Thread Bart
On 8/25/14, Jesus Reyes  wrote:

> Please file a bug report, at least the unexistant .lrf case should trigger
> an exception.

Done: http://bugs.freepascal.org/view.php?id=26636
Test application attached.

Bart

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


Re: [Lazarus] TListBox Find method?

2014-08-26 Thread payl
Why not to implement a Find method for TListBox which allows partial  
search? Delphi missed it, but why Lazarus does the same?


I'd say that you cannot find something in TListBox which is visual object.  
You can search something in items it has, therefore you use  
"Items.Indexof". Then you only need to take care of how TStringList works  
and TListBox is unimportant. So it will be easier to deal with than if we  
had custom implementations of containters for all types of visual  
interfaces like TEdit, TMemo etc... Moreover if we will implement  
DeleteMany for example, we will only have to update TStringList, not  
TEdit/TMemo/TListbox.
Only argument against such thing is case where you have to use many  
characters to represent same thing. So we have "with" construction...--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TListBox Find method?

2014-08-26 Thread Antônio
Why not to implement a Find method for TListBox which allows partial
search? Delphi missed it, but why Lazarus does the same?

function TCustomListBox.Find(S : string) : integer;
begin
  {$IFDEF WINDOWS}
  Result := SendMessage(Handle, LB_FINDSTRING, -1, LParam(PChar(S)));
  {$ELSE}
  Result := Items.IndexOf(S);
  {$ENDIF}
end;

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


Re: [Lazarus] Cody package crashes

2014-08-26 Thread Juha Manninen
On Tuesday, August 26, 2014,  wrote:

> "Show all identifiers" dialog of cody package crashes in certain
> conditions. When I have my large project loaded, it always crashes.
>

Please create a debugger backtrace, open a bug report and attach it there.

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


[Lazarus] Cody package crashes

2014-08-26 Thread hinstance
"Show all identifiers" dialog of cody package crashes in certain conditions. When I have my large project loaded, it always crashes. 

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