View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002938 | JEDI VCL | 00 JVCL Components | public | 2005-05-08 04:08 | 2005-05-09 03:37 |
Reporter | ralf.kaiser | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | 3.10 | |||
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. | ||||
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 |