Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002938 [JEDI VCL] 00 JVCL Components minor always 2005-05-08 04:08 2005-05-09 03:37
Reporter ralf.kaiser View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version
Summary 0002938: TjvOfficeColorButton does not expose property ClickColorButton of the internal panel
Description When the user clicks on the "Automatic" button inside the color panel of a
TJvOfficeColorButton, the program is not able to change the "Automatic"
color. The button does not expose the property "ClickColorButton" of the
embedded TJvOfficeColorPanel, so the program cannot check which button was
clicked.
Additional Information The only way to do this would (currently) be the following hack (Delphi is
able to access protected properties of a class if it is defined in the same
unit) :

Somewhere in "interface":

type
  THackCustomOfficeColorButton = class(TJvCustomOfficeColorButton);

And in the "ColorButtonClick" event:

  case
THackCustomOfficeColorButton(JvOfficeColorButton).ColorsForm.ColorPanel.ClickColorButton
of
     cbctColorsButton: begin
     end;
     cbctAutoButton: begin
     end;
     cbctOtherButton: begin
     end;
     cbctNone: begin
     end;
  end;

That works but it cannot be a real solution, i think. It would be better to
expose the property ClickColorButton as public property of
TJvOfficeColorButton. Another way would be to add it as parameter to the
"ColorButtonClick" event but that may break existing code that is currently
working with this event.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007120)
AHUser (developer)
2005-05-09 03:37

I have introduced a new event: OnAdvColorButtonClick which is triggered before OnColorButtonClick and has a second parameter: Button: TJvClickColorButtonType.

In CVS.

- Issue History
Date Modified Username Field Change
2005-05-08 04:08 ralf.kaiser New Issue
2005-05-09 03:37 AHUser Status new => resolved
2005-05-09 03:37 AHUser Resolution open => fixed
2005-05-09 03:37 AHUser Assigned To => AHUser
2005-05-09 03:37 AHUser Note Added: 0007120


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker