mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 03:48:27 +02:00
LCL: Fix also the order of the 3 states of CheckBox. Issue #19980, patch from August Klein
git-svn-id: trunk@33754 -
This commit is contained in:
parent
1d0d47a59b
commit
dfbf4c2aec
@ -207,9 +207,9 @@ procedure TCustomCheckListBox.Toggle(AIndex: Integer);
|
||||
const
|
||||
NextStateMap: array[TCheckBoxState] of array[Boolean] of TCheckBoxState =
|
||||
(
|
||||
{cbUnchecked} (cbChecked, cbChecked),
|
||||
{cbChecked } (cbUnChecked, cbGrayed),
|
||||
{cbGrayed } (cbUnChecked, cbUnChecked)
|
||||
{cbUnchecked} (cbChecked, cbGrayed),
|
||||
{cbChecked } (cbUnChecked, cbUnChecked),
|
||||
{cbGrayed } (cbChecked, cbChecked)
|
||||
);
|
||||
begin
|
||||
State[AIndex] := NextStateMap[State[AIndex]][AllowGrayed];
|
||||
|
Loading…
Reference in New Issue
Block a user