[Lazarus] OnBeforeSelection

2014-04-19 Thread Eric Kom

Hi Dear;
Please I'm looking for the *OnBeforeSelection *Event on the TDBGrid?
I can only see the OnSelectEditor.
I'm using Lazarus revision 44626.
Thanks
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] OnBeforeSelection

2014-04-19 Thread Howard Page-Clark

On 19/04/2014 02:03, Eric Kom wrote:

Hi Dear;
Please I'm looking for the *OnBeforeSelection *Event on the TDBGrid?
I can only see the OnSelectEditor.


It is a protected property, so to use it you must declare a descendant 
and make it public (or published).


Howard


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


Re: [Lazarus] OnBeforeSelection

2014-04-19 Thread Eric Kom


On 4/19/2014 11:42 AM, Howard Page-Clark wrote:

On 19/04/2014 02:03, Eric Kom wrote:

Hi Dear;
Please I'm looking for the *OnBeforeSelection *Event on the TDBGrid?
I can only see the OnSelectEditor.


It is a protected property, so to use it you must declare a descendant 
and make it public (or published).



Thanks

Howard


--
___
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] Now function - returning UTC?

2014-04-19 Thread David Taylor

I have a version of the Now function which works in Windows and returns UTC.

function NowUTC: TDateTime;
var
  system_datetime: TSystemTime;
begin
  GetSystemTime (system_datetime);
  Result := SystemTimeToDateTime (system_datetime);
end;

I've had an enquiry for a version of this for Lazarus, to run on the 
Raspberry Pi (Debian) but my Linux knowledge isn't up to writing an 
equivalent.  I've searched and don't see GetSystemTime in FreePascal.


Can anyone help with this apparently simple problem?

Thanks,
David
--
Web: http://www.satsignal.eu


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


Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread silvioprog
2014-04-19 12:37 GMT-03:00 David Taylor david-tay...@blueyonder.co.uk:

 I have a version of the Now function which works in Windows and returns
 UTC.

 function NowUTC: TDateTime;
 var
   system_datetime: TSystemTime;
 begin
   GetSystemTime (system_datetime);
   Result := SystemTimeToDateTime (system_datetime);
 end;


I'm used this:

class function TDropboxOAuthUtil.GenerateTimeStamp: string;
{$IFNDEF FPC}
var
  VCurTime: TSystemTime;
{$ENDIF}
begin
{$IFNDEF FPC}
  GetSystemTime(VCurTime);
{$ENDIF}
  Result := IntToStr(DateTimeToUnix({$IFDEF
FPC}LocalTimeToUniversal(Now){$ELSE}
SystemTimeToDateTime(VCurTime){$ENDIF}));
end;

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread Luca Olivetti
El 19/04/14 17:37, David Taylor ha escrit:

 Can anyone help with this apparently simple problem?

lazutf8sysutils has a NowUTC function already defined

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

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


Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread Luca Olivetti
El 19/04/14 20:55, Luca Olivetti ha escrit:
 El 19/04/14 17:37, David Taylor ha escrit:
 
 Can anyone help with this apparently simple problem?
 
 lazutf8sysutils has a NowUTC function already defined

BTW, the name of the unit isn't really meaningful (NowUTC and
GetTickCount64, the only 2 functions defined in that unit, don't seem to
have any relation with utf8).

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

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


[Lazarus] Additions to TAChart

2014-04-19 Thread Werner Pamler
Recently I committed some changes to TAChart (by my alias wp), among 
them implementation of BiDiMode which may be important some users. The 
additions are in trunk, but what do I have to do that they are 
considered for the next Lazarus release?


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


Re: [Lazarus] Additions to TAChart

2014-04-19 Thread Martin Frb

On 19/04/2014 21:26, Werner Pamler wrote:
Recently I committed some changes to TAChart (by my alias wp), among 
them implementation of BiDiMode which may be important some users. The 
additions are in trunk, but what do I have to do that they are 
considered for the next Lazarus release?


The 1.2.x releases are considered bug fix releases.

They should only get save changes. Mostly bug fixes, sometimes minor 
features (if the changeset is small and can be deemed low risk)
Other than the 1.x.0 releases that have testing and RC, the 1.2.x 
releases are build from fixes without much further testing.


So you need to review your changes by those standards.

From looking at your commits (just by the description of the log 
message / no code review), I would guess, that a change like
  Revision: 44486 TAChart: add properties Font and UseFont to 
TChartStyle

may be a candidate for merging.
Bidi mode on the other side sounds like a more intrusive change, 
something that I would think should live in trunk for some time, so it 
can get tested and fixed there, instead of taking the risk of degrading 
stability of 1.2.x (But as I said, no code reviewed, so just guessing)


Naturally new features are useful to users. But that is what the major 
releases are there for.


As the Author you will know more about the changes than I, and have a 
better ability to judge the risk of the changes.
If unsure you can probably ask Alex (ask) (since afaik he does maintain 
TAChart)?


If a change, is judged by its committer (you), or the maintainer of a 
package as qualifying for the fixes branch, then it can be added to the 
wiki: http://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch



As this is the public list:
None committers stick to the appropriate section please, and must 
contact a committer/team member for approval.








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


Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread David Taylor

On 19/04/2014 19:55, Luca Olivetti wrote:

El 19/04/14 17:37, David Taylor ha escrit:


Can anyone help with this apparently simple problem?


lazutf8sysutils has a NowUTC function already defined

Bye


Oh, that's /most/ helpful!  Many thanks

--
David
Web: http://www.satsignal.eu


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