Tim_Smith
(Tim Smith)
1
When I add my own glyph it does not show up on the button until I click on the button.
In the GetEditorType I have this
sgQuoteDetail.BtnEdit.Glyph := tCL;
tCL is a bitmap previously defined.
Everything works OK. It just doesn't show the glyph until you actually click the button.
AdvStringGrid.Version 7,2,3,2
Was retested here on a default grid on the form with code:
procedure TForm1.AdvStringGrid1GetEditorProp(Sender: TObject; ACol,
ARow: Integer; AEditLink: TEditLink);
begin
advstringgrid1.BtnEdit.Glyph := tbmp;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
advstringgrid1.DefaultEditor := edEditBtn;
advstringgrid1.Options := advstringgrid1.Options + [goEditing];
tbmp := TBitmap.Create;
tbmp.LoadFromFile('c:\glyphs_earth.bmp');
end;
and I cannot reproduce this issue.