View Issue Details

IDProjectCategoryView StatusLast Update
0004874JEDI VCL00 JVCL Componentspublic2009-08-23 12:43
ReporterOnjahyrAssigned ToAHUser 
Status resolvedResolutionfixed 
Product Version3.37 
Target VersionFixed in Version3.38 
Summary0004874: I found a bug in TJvXPButton. I noticed a interesting detail.
Description1. Create a new project;
2. Place a TJvXPButton (Jv XP Controls pallete) in the form;
3. If needed, set AutoGray property to False;
4. Type the following code for OnClick event:
     if( ( Sender as TJvXPButton ).isLocked = False ) then
       ( Sender as TJvXPButton).isLocked := True;
   [ END ]
5. Run the application;
6. Minimize the application form or switch to other window;
7. Restore or switch to the application form;
8. BUG! TJvXPButton has not "Down" appearence.

The bug can be related to component repainting, causing this "lack" in the appearance.
TagsNo tags attached.



2009-08-04 09:39

administrator   ~0015908

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

2009-08-18 15:37


Bug in (5,454 bytes)


2009-08-18 15:38

reporter   ~0016002

Add zipped source


2009-08-23 11:51

developer   ~0016007

IsLocked := True disables the repainting of the button. I don't know why this property has write access. It is controlled by BeginUpdate/EndUpdate. I will remove the write access.


2009-08-23 12:43

developer   ~0016008

This is by design. The purpose of IsLocked is to disable repainting and not to keep the button in down state. I have now removed the write access to IsLocked with the hint that BeginUpdate/EndUpdate should be used instead.
And I have added a new property "Down: Boolean" that keeps the button pressed.

Issue History

Date Modified Username Field Change
2009-07-23 19:11 Onjahyr New Issue
2009-08-04 09:39 obones Note Added: 0015908
2009-08-04 09:39 obones Status new => feedback
2009-08-18 15:37 Onjahyr File Added: Bug in
2009-08-18 15:38 Onjahyr Note Added: 0016002
2009-08-23 11:51 AHUser Note Added: 0016007
2009-08-23 12:43 AHUser Note Added: 0016008
2009-08-23 12:43 AHUser Status feedback => resolved
2009-08-23 12:43 AHUser Fixed in Version => Daily / SVN
2009-08-23 12:43 AHUser Resolution open => fixed
2009-08-23 12:43 AHUser Assigned To => AHUser