View Issue Details

IDProjectCategoryView StatusLast Update
0024435LazarusLCLpublic2013-06-10 21:38
ReporterVojtech CihakAssigned ToPaul Ishenin 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1 (SVN)Product Build41148 
Target Version1.2.0Fixed in Version1.1 (SVN) 
Summary0024435: Action.Checked is not propagated to TCheckbox.
DescriptionSee demo. There is an action and the action is linked with TMenuItem, TToolButton and TCheckBox. When Action.Checked is changed via TMenuItem or via TToolButton, the change is not propagated to TCheckbox. When Action.Checked is changed via TCheckbox, the change is propagated correctly to TMenuItem and TToolButton.

I tested on Qt and GTK2.
TagsNo tags attached.
Fixed in Revision41648
LazTarget1.2
WidgetsetGTK 2, QT
Attached Files

Activities

Vojtech Cihak

2013-05-15 18:57

reporter  

CheckBoxAction.zip (6,798 bytes)

Paul Ishenin

2013-06-10 08:44

manager   ~0068172

Please test and close if ok.

Vojtech Cihak

2013-06-10 21:38

reporter   ~0068194

I tested. Works well. Thanks.

I have to write here only a one note: There were some changes in trunk, see: http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#LCL_TAction.OnExecute_no_longer_sets_TControl.2FTMenuItem.OnClick

If you have the same methods for Action and OnClick (CheckBox.Action.OnExecute = CheckBox.OnClick) then this will not work. OnClick must be different or nil.

Issue History

Date Modified Username Field Change
2013-05-15 18:57 Vojtech Cihak New Issue
2013-05-15 18:57 Vojtech Cihak File Added: CheckBoxAction.zip
2013-06-10 08:44 Paul Ishenin Fixed in Revision => 41648
2013-06-10 08:44 Paul Ishenin LazTarget => 1.2
2013-06-10 08:44 Paul Ishenin Note Added: 0068172
2013-06-10 08:44 Paul Ishenin Status new => resolved
2013-06-10 08:44 Paul Ishenin Fixed in Version => 1.1 (SVN)
2013-06-10 08:44 Paul Ishenin Resolution open => fixed
2013-06-10 08:44 Paul Ishenin Assigned To => Paul Ishenin
2013-06-10 08:44 Paul Ishenin Target Version => 1.2.0
2013-06-10 21:38 Vojtech Cihak Note Added: 0068194
2013-06-10 21:38 Vojtech Cihak Status resolved => closed