View Issue Details

IDProjectCategoryView StatusLast Update
0005443JEDI VCL00 JVCL Componentspublic2011-09-21 14:10
ReporterdzomlijaAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.39 
Target VersionFixed in Version3.45 
Summary0005443: TJvOfficeColorPanel does not properly update itself when SelectedColor property is set at runtime
DescriptionIf i've dropped a TJvOfficeColorPanel component onto a form, and set the "SelectedColor" property to clRed (for example), and then at runtime prior to calling form ShowModal, "SelectedColor" is changed to clGreen (for example), then the buttons for "clRed", "clGreen" and "clDefault". However, if a user subsequently clicks on another color, then the buttons continue to update normall, even if SelectedColor is changed by code, and even of the form is closed an re-displayed later.

The attached file is a screenshot of the TJvOfficeColorPanel showing how 3 colors are selected at the same time.

The code between lines 1246 and 1409 of "JvOfficeColorPanel.pas" can be modified to resolve this bug. More specifically by changing line 1298 from "Down := True;" to "Down := False;", this issue does not occur, and the visual display of selected colors occurs normally when changed at runtime by code.
Additional InformationI've just had a look at how TJvOfficeColorPanel performs regarding this issue in version 3.40 of the JVCL, and the problem remains the same. Changing line 1298 of "JvOfficeColorPanel.pas" resolves the issue.
TagsNo tags attached.

Activities

2010-12-15 16:49

 

obones

2011-02-15 13:47

administrator   ~0018347

Please provide the zipped sources of a sample application showing this.

2011-02-15 14:49

 

JvOfficePanel Bug Demo Source.zip (707,346 bytes)

dzomlija

2011-02-15 14:50

reporter   ~0018367

Sources upload as requested. ZIP file contains sources, compiled exe and additional screenshots.

AHUser

2011-02-15 18:45

developer   ~0018373

Fixed in svn revision 12980.

Issue History

Date Modified Username Field Change
2010-12-15 16:49 dzomlija New Issue
2010-12-15 16:49 dzomlija File Added: TJvOfficeColorPanel_SelectedColor.jpg
2011-02-15 13:47 obones Note Added: 0018347
2011-02-15 13:47 obones Status new => feedback
2011-02-15 14:49 dzomlija File Added: JvOfficePanel Bug Demo Source.zip
2011-02-15 14:50 dzomlija Note Added: 0018367
2011-02-15 18:45 AHUser Note Added: 0018373
2011-02-15 18:45 AHUser Status feedback => resolved
2011-02-15 18:45 AHUser Fixed in Version => Daily / SVN
2011-02-15 18:45 AHUser Resolution open => fixed
2011-02-15 18:45 AHUser Assigned To => AHUser
2011-09-21 14:10 obones Fixed in Version Daily / SVN => 3.45