mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:39:18 +02:00
fix removing all panels from statusbar (last one was not removed)
git-svn-id: trunk@6904 -
This commit is contained in:
parent
59ed770461
commit
c55ae368e5
@ -264,7 +264,9 @@ var
|
||||
CurrentRight: integer;
|
||||
begin
|
||||
if StatusBar.Panels.Count=0 then begin
|
||||
Windows.SendMessage(StatusBar.Handle, SB_SETPARTS, 0, 0);
|
||||
// SETPARTS 0,0 does not work :S
|
||||
Windows.SendMessage(StatusBar.Handle, SB_SIMPLE, 1, 0);
|
||||
Windows.SendMessage(StatusBar.Handle, SB_SETTEXT, 255, WPARAM(''));
|
||||
exit;
|
||||
end;
|
||||
Getmem(Rights, StatusBar.Panels.Count * sizeof(integer));
|
||||
|
Loading…
Reference in New Issue
Block a user