mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 23:00:15 +02:00
Merged revision(s) 48871-48872 #4ec7f482b1-#4ec7f482b1 from trunk:
LCL, grids: make sure the grid is notified about text is changed on pressing the first char, issue #27955 ........ LCL, grids: modified previous patch, the text should be the text value not the pressed key ........ git-svn-id: branches/fixes_1_4@48947 -
This commit is contained in:
parent
c6edc599a2
commit
fef115d67d
@ -61,6 +61,10 @@ implementation
|
||||
uses
|
||||
LCLIntf, LCLProc;
|
||||
|
||||
type
|
||||
TCustomGridAccess=class(TCustomGrid)
|
||||
end;
|
||||
|
||||
{ TWSCustomGrid }
|
||||
|
||||
class procedure TWSCustomGrid.SendCharToEditor(AEditor:TWinControl;
|
||||
@ -94,6 +98,12 @@ begin
|
||||
TCustomCombobox(AEditor).SelStart:=UTF8Length(GMsg.Value);
|
||||
end;
|
||||
end;
|
||||
|
||||
// make sure the grid is notified that some text is changed, some
|
||||
// widgets do not notify when they are modified programmatically.
|
||||
if GMsg.Grid<>nil then
|
||||
with TCustomGridAccess(GMsg.Grid) do
|
||||
EditorTextChanged(Col, Row, GMsg.Value);
|
||||
end;
|
||||
|
||||
class function TWSCustomGrid.InvalidateStartY(const FixedHeight, RowOffset: Integer): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user