Tips and Frequently Asked Questions
Using the OnHoverButtonsShow event to configure different hover buttons for different columns
To do this, enable HoverButtons and implement the OnHoverButtonsRow event that is triggered when the mouse hovers a cell. Here it is possible to control whether hover buttons are shown with the Allow event parameter and from this event, the grid.HoverButtons property can be used to customize hover buttons per cell.
The code to show different hover buttons only for column 4 and 6 is therefore:
procedure TForm1.AdvStringGrid1HoverButtonsShow(Sender: TObject; X, Y: Integer; var Allow: Boolean); var c,r: integer; begin AdvStringGrid1.MouseToCell(x,y,c,r); if c = 4 then begin // configure hover buttons here for column 4 AdvStringGrid1.HoverButtons.Buttons[0].Caption := ''A''; AdvStringGrid1.HoverButtons.Buttons[1].Caption := ''B''; AdvStringGrid1.HoverButtons.Column := 4; end else if c = 6 then begin // configure hover buttons here for column 6 AdvStringGrid1.HoverButtons.Buttons[0].Caption := ''C''; AdvStringGrid1.HoverButtons.Buttons[1].Caption := ''D''; AdvStringGrid1.HoverButtons.Column := 6; end else Allow := false; end; procedure TForm1.FormCreate(Sender: TObject); begin AdvStringGrid1.HoverButtons.Enabled := true; AdvStringGrid1.HoverButtons.Buttons.Clear; AdvStringGrid1.HoverButtons.Buttons.Add.Caption := ''0''; AdvStringGrid1.HoverButtons.Buttons.Add.Caption := ''1''; AdvStringGrid1.AutoNumberRow(0); AdvStringGrid1.LinearFill(false); end;
Pricing
Single Developer License
Small Team License
Site License
TMS VCL UI Pack
€ 375
€
150
yearly renewal
license for 1 developer
MOST POPULAR
BEST VALUE
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.
Free Trial
Note that the TMS VCL UI Pack replaces the TMS Component Pack. Both products can't be installed simultaneously. Therefore TMS Component Pack must first be uninstalled before installing the TMS VCL UI Pack