Jump to content


DelphiToday

Member Since 01 Jun 2013
Offline Last Active Private
-----

Topics I've Started

SelectionTextColor for Cell

14 May 2020 - 09:27 PM

 Hi Bojan,

I can't adjust the selection color for each line. As an example I use 'SelectionTextColor := clGreen' if Played is True but that gives wrong colors.

Is it possible to add:
Cell.SelectionTextColor ?
Or something I can use?

procedure TForm3.NxVirtualCellSource61GetCell(Sender: TObject; ACol,
  ARow: Integer; Cell: INxCell);
begin
  case ACol of
    0: Cell.AsString := GlobalRec.CurrentFile;
  end;

  { Default }
  Cell.Font.Color := clBlue;
  NextGrid.SelectionTextColor := clBlue;

  { Change }
  if (GlobalRec.Played) then
  begin
    NextGrid.SelectionTextColor := clGreen; // Color Problems
    Cell.Font.Color := clGreen;
  end;
end;

Kind regards,

Eduard.

 


FirstVisibleCol

16 April 2020 - 05:47 AM

Hi Bojan,

 

Can you add FirstVisibleCol ?

 

This is to be used in:

SelectCell(FirstVisibleCol, FirstVisibleRow, Shift);

 

You can also change it in CustomGrid6:

(But happy with only: FirstVisibleCol)

 

procedure TNxCustomGrid6.SelectFirst(Shift: TShiftState = []);

procedure TNxCustomGrid6.SelectLast(Shift: TShiftState = []);

 

Why?

When the first column is not Visible (VirtualGrid) and SelectFullRow = True when calling SelectFirst() the SelectionBar is not visible!

 

Regards,

Ed.

 

 

 

 


HideWhenEmpty

09 April 2020 - 08:04 AM

Hello,

 

HideWhenEmpty is not working with VirtualGrid. Is this correct?

(The previous field become longer)

 

Or I don't know what the function is exactly. Please tell me.

 

Regards.


Bugreport

04 January 2020 - 08:01 AM

Hi. Can you do something about this?

 

exception number   : 1
exception class    : EAccessViolation
exception message  : Cell (1, 1) out of bounds.

main thread ($144c):
00840298 +040 FinalPlayer.exe NxCustomGrid6         921   +6 TNxCustomGrid6.CheckCell
008434df +087 FinalPlayer.exe NxCustomGrid6        2387  +18 TNxCustomGrid6.InternalEditCell
008413e3 +033 FinalPlayer.exe NxCustomGrid6        1457   +1 TNxCustomGrid6.EditCell
00843b0b +213 FinalPlayer.exe NxCustomGrid6        2543  +32 TNxCustomGrid6.KeyDown
005d141a +08a FinalPlayer.exe Vcl.Controls        11232  +23 TWinControl.DoKeyDown
005d144a +00a FinalPlayer.exe Vcl.Controls        11242   +1 TWinControl.WMKeyDown
005cade6 +2be FinalPlayer.exe Vcl.Controls         7338  +91 TControl.WndProc
005cf9cb +63b FinalPlayer.exe Vcl.Controls        10209 +166 TWinControl.WndProc
005cef98 +02c FinalPlayer.exe Vcl.Controls         9908   +3 TWinControl.MainWndProc
0054b904 +014 FinalPlayer.exe System.Classes      17405   +8 StdWndProc
75554fcb +00b USER32.dll                                     DispatchMessageW


Add Text between "VirtualGrid"

03 September 2019 - 11:18 AM

Hi,

 

Is it possible or is there an option to add your own text or separator in the VirtualGrid?

 

Like this for 10 records:

 

0

1

2

3

4

Separator

5

6

7

8

9

 

I know about horizontal grid line but that is not what i am looking for.

 

Regards,

Eduard.