Jump to content


didiergm

Member Since 13 Jun 2007
Offline Last Active Nov 16 2011 09:57 AM
-----

Posts I've Made

In Topic: Individual RowHeight not stored ?

25 May 2011 - 04:45 PM

Boki,

I am trying to reimplement what you advised me to use a while back using the current dbgrid sources and it looks like the onChangeRowheight never gets called. I cannot actually run the demo because I do not have the bds installed.

am I doing solmething stupid ?




In Topic: Problem with validating input

25 February 2011 - 12:16 AM

QUOTE (Boki (Berg) @ Feb 21 2011, 12:19 AM) <{POST_SNAPBACK}>
Hello Didier,

I am having problem with implementing OnEndEditing event. Maybe I will need more time to complete it.

Problem is that when you press Return, inplace editor lose focus, and I have try everything to bring focus back to Inplace Editor, but without luck sad.gif

I may send you a code, and maybe you can help me and may find a solution.

Best regards


Yes, please Boki, If I may help, fell free to send me your code.

In Topic: Need to have a tCell.asInt64

05 February 2011 - 10:13 AM

QUOTE (Boki (Berg) @ Feb 4 2011, 02:27 AM) <{POST_SNAPBACK}>
Hello Didier,

I like to say sorry for delay. I was been in my Birth town for day and a half.

I will need to think about it. Why not use a AsFloat for a moment, until I decide. This may be big decision.

Best regards


Don't be sorry, you are allowed to travel smile.gif

the problem with asFloat at the moment is that, if I understand correctly, the underlying property is still an integer ... not an int64, unless I misundestood what you say

In Topic: Need to have a tCell.asInt64

31 January 2011 - 02:59 PM

this is what I did to achieve an asInt64


in NxCells.tCell I added the following property



property asInt64: Int64 read GetAsInt64 write SetasInt64;

function GetAsInt64: int64; virtual; abstract;
procedure SetAsInt64(const Value: Int64); virtual;



procedure TCell.SetAsInt64(const Value: Int64);
begin
Changed;
end;


then in nxCellsClasses I added

function GetAsInt64: int64; virtual; override;
procedure SetAsInt64(const Value: Int64); override;



then for tFloatCell (the only cell type which really needs changing, if I understand correctly)

procedure TFloatCell.setAsInt64 (const value: Int64);
begin
fValue := value;
inherited;
end;


function TFloatCell.GetAsInt64: Int64;
begin
Result := Round(FValue);
end;


and for the others cell types, simply

procedure TxxxxCell.setAsInt64 (const value: Int64);
begin
self.setasInteger(integer(value));
end;


function TxxxxCell.GetAsInt64: Int64;
begin
Result := self.getAsInteger;
end;




In Topic: Select the parent row

30 January 2011 - 07:47 PM

QUOTE (Boki (Berg) @ Jan 26 2011, 03:07 AM) <{POST_SNAPBACK}>
Hello Didier,

Maybe next method helps:

function GetParent(const Index: Integer): Integer;

if not, I will made a procedure GetRowIndex(TRow)

Best regards

Sorry Boki, I did not see your reply as I was away for a few days.

This function would help, I am just a bit confused between trows and using rows vis indexes.

Didier