[Lazarus] Bls: Get Lazarus January 2016 Update

2016-01-20 Thread Mr Bee
Did you upload it to youtube as well? Would you mind to share the URL here? 
Viewing directly from the site is very slow. :( 
–Mr Bee
 

Pada Kamis, 21 Januari 2016 5:19, Dmitry Boyarintsev 
 menulis:
 

 On Wed, Jan 20, 2016 at 4:53 PM, Anthony Walter  wrote:

A new Lazarus layout with the component pallet removed and coolbar buttons in 
its place. The a docked form designer is now the default form editor.
Nice job! Feels like switching for D7 to Turbo Delphi :)

thanks,
Dmitry

--
___
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] New menu editor's in-place "Edit Caption" feature + QT

2016-01-20 Thread Zeljko



On 01/14/2016 10:53 PM, Juha Manninen wrote:

The new menu editor has a nice feature.
Pressing Enter on a menu item lets you edit its caption without moving
to Object Inspector.
It does not work when IDE is built with QT bindings.
It this a known issue?


Just tested with trunk lazarus r51358 and it works fine with Qt linux 64bit.

zeljko

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


Re: [Lazarus] Win API function calls with array as parameter

2016-01-20 Thread Michael W. Vogel

You can try:

TileWindows(0, MDITILE_HORIZONTAL, Screen.WorkAreaRect, 
Length(MyHandles), MyHandles[0]);


or

TileWindows(0, MDITILE_HORIZONTAL, Screen.WorkAreaRect, High(MyHandles) 
+ 1, MyHandles[0]);



Simple Test works for me:

uses
  ..., windows, LCLType;

procedure TForm1.Button1Click(Sender: TObject);
var
  Wnds: array[0..1] of HWND;
begin
  Wnds[0] := Handle;
  Wnds[1] := Form2.Handle;
  TileWindows(0, MDITILE_HORIZONTAL, Screen.WorkAreaRect, Length(Wnds), 
Wnds[0]);

end;

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


Re: [Lazarus] New menu designer

2016-01-20 Thread Péter Gábor
Width of the designed menu must be calculated using the length of
captions including the lenght of actual translation of "Add menuitem"...
Otherwise if the menu captions are too short the command's caption will
not fit.
See the attached screenshot.

-- 
Péter Gábor
p...@freemail.hu

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


Re: [Lazarus] Is there tool for testing class methods speed?

2016-01-20 Thread K. P.
Hi Krzysztof,
was it http://www.prodelphi.de/ ?
Am not aware of anything as easy and powerful for Lazarus :(
Cheers,Kai

Date: Wed, 20 Jan 2016 20:17:59 +0100
From: dib...@wp.pl
To: lazarus@lists.lazarus.freepascal.org
Subject: [Lazarus] Is there tool for testing class methods speed?

Hi,
Almost 10 years ago I worked in company where they used tool (Delphi 5) which 
automatically added "checkpoints" after BEGIN and before END of each method of 
pointed class / pascal unit. Then after run, it reported (as extension for IDE) 
what was execution time of each method and how many times it was called. With 
the same easy way we could clean up unit from checkpoints. Totally forgot name 
of this tool but do we have something similar for Lazarus / FPC?
Regards

--
___
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] Is there tool for testing class methods speed?

2016-01-20 Thread K. P.
I stand corrected - they do make versions for Lazarus...

From: platyster...@hotmail.com
To: lazarus@lists.lazarus.freepascal.org
Date: Wed, 20 Jan 2016 19:33:16 +
Subject: Re: [Lazarus] Is there tool for testing class methods speed?




Hi Krzysztof,
was it http://www.prodelphi.de/ ?
Am not aware of anything as easy and powerful for Lazarus :(
Cheers,Kai

Date: Wed, 20 Jan 2016 20:17:59 +0100
From: dib...@wp.pl
To: lazarus@lists.lazarus.freepascal.org
Subject: [Lazarus] Is there tool for testing class methods speed?

Hi,
Almost 10 years ago I worked in company where they used tool (Delphi 5) which 
automatically added "checkpoints" after BEGIN and before END of each method of 
pointed class / pascal unit. Then after run, it reported (as extension for IDE) 
what was execution time of each method and how many times it was called. With 
the same easy way we could clean up unit from checkpoints. Totally forgot name 
of this tool but do we have something similar for Lazarus / FPC?
Regards

--
___
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 mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Is there tool for testing class methods speed?

2016-01-20 Thread Graeme Geldenhuys
On 2016-01-20 19:17, Krzysztof wrote:
> do we have something
> similar for Lazarus / FPC?

Take a look at FPProfiler. It does exactly that.


   http://wiki.lazarus.freepascal.org/FPProfiler


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

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


[Lazarus] Is there tool for testing class methods speed?

2016-01-20 Thread Krzysztof
Hi,

Almost 10 years ago I worked in company where they used tool (Delphi 5)
which automatically added "checkpoints" after BEGIN and before END of each
method of pointed class / pascal unit. Then after run, it reported (as
extension for IDE) what was execution time of each method and how many
times it was called. With the same easy way we could clean up unit from
checkpoints. Totally forgot name of this tool but do we have something
similar for Lazarus / FPC?

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


Re: [Lazarus] Is there tool for testing class methods speed?

2016-01-20 Thread Martin Frb

On 20/01/2016 19:17, Krzysztof wrote:
Almost 10 years ago I worked in company where they used tool (Delphi 
5) which automatically added "checkpoints" after BEGIN and before END 
of each method of pointed class / pascal unit. Then after run, it 
reported (as extension for IDE) what was execution time of each method 
and how many times it was called. With the same easy way we could 
clean up unit from checkpoints. Totally forgot name of this tool but 
do we have something similar for Lazarus / FPC?

If you are on linux: valgrind + kcachegrind

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


[Lazarus] Get Lazarus January 2016 Update

2016-01-20 Thread Anthony Walter
I've posted new installer for Free Pascal and Lazarus at getlazarus.org.
Here is an overview of the what's new:

Video:

http://www.getlazarus.org/new/

Changes include:

A new Lazarus layout with the component pallet removed and coolbar buttons
in its place. The a docked form designer is now the default form editor.

The new menu editor is included along with my application explorer tool.
The source to the application explorer is in the components folder and
might be of interest to users wanting to try their hand at extending the
IDE,

The new documentation site at docs.getlazarus.org is now the F1 help site.

Minimal FPC 3.0.0 compilers with friendly setup scripts are now available
at http://www.getlazarus.org/setup/minimal/. I've also updated the "making
it yourself" page with better instructions.

Finally FPC 3.1.1 trunk includes support for generic functions/procedures,
which are quite nice.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-20 Thread Dmitry Boyarintsev
On Wed, Jan 20, 2016 at 4:53 PM, Anthony Walter  wrote:

> A new Lazarus layout with the component pallet removed and coolbar buttons
> in its place. The a docked form designer is now the default form editor.
>
Nice job! Feels like switching for D7 to Turbo Delphi :)

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


Re: [Lazarus] TOracleConnector connect as SYSDBA

2016-01-20 Thread Leonardo M . Ramé


El 19/01/16 a las 15:55, Leonardo M. Ramé escribió:

Hi, does anyone know how to connect to Oracle as SYSDBA?, I'm getting
"ORA-01017: invalid username/password; logon denied" when I set these
params:

Hostname: 127.0.0.1
Database: MYDB
User: sys as SYSDBA
Pass: MYPASSWORD
Role: SYSDBA (this field is not taken into account -apparently-)

If, instead of using "sys as SYSDBA" I use "sys" alone, I get
"ORA-28009: connection as SYS should be as SYSDBA or SYSOPER".


I've found a solution, instead of using "sys as SYSDBA" I used the 
username "system", and leave Role empty.


Leonardo.

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


Re: [Lazarus] TOracleConnector connect as SYSDBA

2016-01-20 Thread Mark Morgan Lloyd

Leonardo M. Ramé wrote:

El 19/01/16 a las 15:55, Leonardo M. Ramé escribió:

Hi, does anyone know how to connect to Oracle as SYSDBA?, I'm getting
"ORA-01017: invalid username/password; logon denied" when I set these
params:

Hostname: 127.0.0.1
Database: MYDB
User: sys as SYSDBA
Pass: MYPASSWORD
Role: SYSDBA (this field is not taken into account -apparently-)

If, instead of using "sys as SYSDBA" I use "sys" alone, I get
"ORA-28009: connection as SYS should be as SYSDBA or SYSOPER".


I've found a solution, instead of using "sys as SYSDBA" I used the 
username "system", and leave Role empty.


Thanks for updating us. I'd imagine that quite a few people are in the 
position of not using Oracle routinely but being interested in looking 
at evaluation copies etc.


I wonder whether some form of quoting would have made your origianl 
attempt work.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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


[Lazarus] Win API function calls with array as parameter

2016-01-20 Thread John Landmesser
whàt's wrong?

 

my code started Excel and Word  and i want these Apllication.Windows be arranged on Desktop:

 

but this fails:

 

TileWindows(0, MDITILE_HORIZONTAL,screen.WorkAreaRect,high(MyHandles),@MyHandles);

 

Message:

"unit1.pas(897,84) Error: Call by var for arg no. 5 has to match exactly: Got "Pointer" expected "LongWord"

 

MyHandles is a array of HWND.

 

How to pass this array to the function?

 

 

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


Re: [Lazarus] New menu designer

2016-01-20 Thread Maxim Ganetsky


20.01.2016 17:15, Howard Page-Clark пишет:
> On 17/01/16 23:22, Maxim Ganetsky wrote:
>> 16.01.2016 1:19, Howard пишет:
>>> I have submitted a patch (29411) which I hope addresses these issues,
>>> except for the issue:
>>> 'String "composing" is still present ... in main menu creation form in
>>> "add menu item" fields captions'
>>>
>>> I am not clear about which string(s) you are identifying here. Can you
>>> give a specific line number in the source that exemplifies the problem
>>> you see?
>>
>> Please see attached screenshots.
> 
> I think a recent revision by Ondrej resolved this.

Yes.

-- 
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] New menu designer

2016-01-20 Thread Howard Page-Clark

On 17/01/16 23:22, Maxim Ganetsky wrote:

16.01.2016 1:19, Howard пишет:

I have submitted a patch (29411) which I hope addresses these issues,
except for the issue:
'String "composing" is still present ... in main menu creation form in
"add menu item" fields captions'

I am not clear about which string(s) you are identifying here. Can you
give a specific line number in the source that exemplifies the problem
you see?


Please see attached screenshots.


I think a recent revision by Ondrej resolved this.

Howard

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