Issue with HotmailRowSelect and Checkbox Alignment

I am using the AdvStringGrid with a CheckBoxColumn.
The Alignments (horizontal and vertical) are respected.
But when enabling RowSelectPersistent, the alignment is ignored and the checkboxes are placed on the top left border.

Testcode:

//  ScaleBy(2,1);
  grid1->WordWrap = false;
  grid1->Multilinecells = true;
  grid1->VAlignment = vtaCenter;
  grid1->DefaultAlignment = taCenter;

  grid1->RowCount = 15;
  grid1->ColCount = 3;
  grid1->FixedRows = 1;
  grid1->FixedCols = 0;

  grid1->RandomFill(true);
  grid1->InsertCols(0, 1);
  grid1->AddCheckBoxColumn(0);

  grid1->MouseActions->CheckAllCheck = true;
  grid1->MouseActions->DisjunctRowSelect = true;
  grid1->MouseActions->DisjunctRowSelectNoCtrl = true;
  grid1->MouseActions->HotmailRowSelect = true; // <<< bad boy
  grid1->MouseActions->RowSelect = true;
  grid1->MouseActions->RowSelectPersistent = true;
  grid1->Navigation->MoveRowOnSort = true;

Additionally, the checkbox are not scaled when the DPI of the monitor is increased. The font is scaled.

Help is appreciated.

Addition:

  • C++Builder 10.2.3
  • VCL UI Pack 13.0.9.0

We could reproduce this and we've applied a fix. Next update will address this.

Hello!

The horizontal alignment is correct now.

Issue 1)
The vertical alignment is still ignored, so the checkbox is on the top instead of being centered, as soon as HotmailRowSelect is enabled.

When this flag is not enabled, the checkbox is centered - although, compared to centered text, the checkbox is a bit too high.

Issue 2)
The checkbox doesnt get scaled, when the app is scaled (e.g. moved to a monitor with 200% scaling)

We could trace & fix both issues. The next update will address these.