View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006601||JEDI VCL||00 JVCL Components||public||2017-10-25 20:39||2019-05-05 09:31|
|Product Version||Daily / GIT|
|Target Version||Fixed in Version|
|Summary||0006601: TJvArrowButton - Glyph and caption not properly drawn when using Margin|
|Description||If you specify a margin > 0 in the properties (note: not the VCL Margins, the controls margin property) with a glyph and caption (button layout = glyph left and vert. align = centre), the glyph and caption are not well centered vertically.|
|Additional Information||Add TJvArrowButton, set height to 45 pixels|
Set glyph to a 32 x 32 bitmap
Set a caption
Set margins to 10
Set layout to glyph left
Set vertical alignment to center
The glyph and text are clearly drawn too high.
|Tags||No tags attached.|
Debug JvArrowButton.zip (83,731 bytes)
JvArrowButton.pas (46,223 bytes)
||Attached is a test program to show the problem and my attempt at solving it. By the way, it also includes the changes proposed in issue 6600.|
I tried to implement your suggestions from JvArrowButton.pas, but then I saw that you changed the public Draw method completely from its parameters.
While I can follow the introduction of these parameters as properties changing such a public method in that way is not really approved by the maintainers, as it breaks existing code of JVCL users.
Can you implement a variant which keeps the old Draw method and implements e.g. an overloaded one?
|2017-10-25 20:39||tetardd||New Issue|
|2017-10-27 08:42||tetardd||File Added: Debug JvArrowButton.zip|
|2017-10-27 08:43||tetardd||File Added: JvArrowButton.pas|
|2017-10-27 08:44||tetardd||Note Added: 0021438|
|2018-07-18 15:59||obones||Status||new => acknowledged|
|2018-07-18 15:59||obones||Relationship added||related to 0006600|
|2019-05-05 09:31||mh||Note Added: 0021813|