Jump to content


zifnabbe

Member Since 19 Jan 2005
Offline Last Active Jul 20 2006 11:56 AM
-----

Topics I've Started

AlertWindow

10 July 2006 - 12:21 PM

Is there a way to detect when the popup is fully visible? (not the InProgress, since this one is True untill popup is gone)

Thanks in advance

EConvert Error, not a valid date?

08 April 2006 - 01:23 AM

Hi,

When I try to edit a date in a TClientDataSet, I get EConvertError exception telling that '07/04/2006 11:07:38' isn't a valid date...

What am I doing wrong?

Thanks!

Alternating row coloring

07 April 2006 - 08:43 PM

For alternating row color, I use the following code:

CODE
procedure TNextGridFrame.dbgAddInCellColoring(Sender: TObject; ACol,

 ARow: Integer; var CellColor, GridColor: TColor; CellState: TCellState);

begin

 if (ACol > 1) then

 begin

   if (not (csSelected in CellState))

       and (ARow mod 2 = 0) then CellColor := RGB(245, 245, 245);

 end;

end;


However, this also colors rows where no data is available. So if you've a grid which displays an empty dataset, then you get alternating line coloring for the totality of the grid. This is confusing for the user. Is there a way to detect if the cell/row contains data.

Thanks.

Bug with empty database?

07 April 2006 - 12:25 PM

Hi,

(using a TClientDataSet)

I didn't noticed this before since I was using a test database. But now, when testing the application, I started with a clean database.

When inserting a row and using an AfterInsert Event to give some default values. The default values don't appear. When clicking on the row, the application freezes.

When not clicking on the row, but clicking cancel (to cancel the insert). And then re-insert a row, the default values appear...

If the database already contains data (even just one row) and then inserting a row, everything behaves normally.

Anybody experiecing the same?

Thanks

something similar as coDontHighLight

05 April 2006 - 04:44 PM

Hi,

Is there something similar as coDontHighLight, but that also doesn't shows the selection frame of the cell?

Thanks,
Tom.