reset message horz scrollbar on new item

This commit is contained in:
Basile Burg 2015-06-20 11:41:23 +02:00
parent b996a2852f
commit d071bc31f6
1 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,9 @@ type
procedure AssignTo(Dest: TPersistent); override;
end;
TTreeHack = class(TTreeView)
end;
{ TCEMessagesWidget }
TCEMessagesWidget = class(TCEWidget, ICEEditableOptions, ICEMultiDocObserver, ICEProjectObserver, ICEMessagesDisplay)
@ -585,8 +588,8 @@ begin
item.SelectedIndex := item.ImageIndex;
if not fastDisplay then
begin
//TODO-cfeature: reset horz scroll bar to the left
clearOutOfRangeMessg;
TTreeHack(list).scrolledLeft := 0;
scrollToBack;
Application.ProcessMessages;
filterMessages(fCtxt);