diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2013-03-17 12:18:55 +0000 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2013-03-17 12:18:55 +0000 |
commit | 08ef76a72589a985b33fd010058f74879ae4f736 (patch) | |
tree | 478cb2d3755d7ad7bbcc4f0bc06870258e431a54 /examples/apps/ide/src | |
parent | e3ed1e992eda0b4cdff876d7762803932f30aa1b (diff) | |
download | fpGUI-08ef76a72589a985b33fd010058f74879ae4f736.tar.xz |
textedit: temporary work-around to update scrollbars when setting caret position
Diffstat (limited to 'examples/apps/ide/src')
-rw-r--r-- | examples/apps/ide/src/fpg_textedit.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/apps/ide/src/fpg_textedit.pas b/examples/apps/ide/src/fpg_textedit.pas index c69ca907..013ad86b 100644 --- a/examples/apps/ide/src/fpg_textedit.pas +++ b/examples/apps/ide/src/fpg_textedit.pas @@ -138,7 +138,6 @@ type procedure SetVScrollPos(const AValue: Integer); procedure UpdateCharBounds; procedure GetSelBounds(var AStartNo, AEndNo, AStartOffs, AEndOffs: Integer); - procedure UpdateScrollBars; procedure VScrollBarMove(Sender: TObject; position: integer); procedure HScrollBarMove(Sender: TObject; position: integer); procedure SetVPos(p: Integer); @@ -185,6 +184,7 @@ type public constructor Create(AOwner: TComponent); override; destructor Destroy; override; + procedure UpdateScrollBars; function GetClientRect: TfpgRect; override; function GetWordAtPos(const X, Y: Integer; out XBegin: Integer): TfpgString; procedure GetRowColAtPos(const X, Y: Integer; out Row, Col: Integer); |