mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 00:11:51 +02:00
* Modified patch #9491 to allow button grouping cross separator
git-svn-id: trunk@11909 -
This commit is contained in:
parent
5b520c85fe
commit
658e9a848c
@ -537,7 +537,7 @@ begin
|
||||
if (Style<>tbsCheck) or (not Grouped) then exit;
|
||||
while (StartIndex>0) do begin
|
||||
CurButton:=FToolBar.Buttons[StartIndex-1];
|
||||
if (CurButton<>nil) and (CurButton.Style=tbsCheck) and (CurButton.Grouped)
|
||||
if (CurButton<>nil) and CurButton.Grouped and (CurButton.Style in [tbsCheck, tbsSeparator, tbsDivider])
|
||||
then
|
||||
dec(StartIndex)
|
||||
else
|
||||
@ -545,7 +545,7 @@ begin
|
||||
end;
|
||||
while (EndIndex<FToolBar.FButtons.Count-1) do begin
|
||||
CurButton:=FToolBar.Buttons[EndIndex+1];
|
||||
if (CurButton<>nil) and (CurButton.Style=tbsCheck) and (CurButton.Grouped)
|
||||
if (CurButton<>nil) and CurButton.Grouped and (CurButton.Style in [tbsCheck, tbsSeparator, tbsDivider])
|
||||
then
|
||||
inc(EndIndex)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user