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
0006601 [JEDI VCL] 00 JVCL Components minor always 2017-10-25 20:39 2019-05-05 09:31
Reporter tetardd View Status public  
Assigned To
Priority normal Resolution open  
Status acknowledged   Product Version Daily / GIT
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.
Attached Files zip file icon Debug [^] (83,731 bytes) 2017-10-27 08:42
? file icon JvArrowButton.pas [^] (46,223 bytes) 2017-10-27 08:43

- Relationships
related to 0006600acknowledged Changed to TJvArrowButton to make it easy to ownerdraw 

-  Notes
tetardd (reporter)
2017-10-27 08:44

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.
mh (reporter)
2019-05-05 09:31

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?

- Issue History
Date Modified Username Field Change
2017-10-25 20:39 tetardd New Issue
2017-10-27 08:42 tetardd File Added: Debug
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

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