View Issue Details

IDProjectCategoryView StatusLast Update
0006005JEDI VCL00 JVCL Componentspublic2015-09-14 13:20
ReporterRHoekAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.48 
Summary0006005: When using TJvBalloonHint as application hint, the MaxWidth is not respected
DescriptionWhen setting the property 'TJvBalloonHint.UseBalloonAsApplicationHint' the actual hint window will not respect the 'MaxWidth' property of TJvBalloonHint.

As workaround you can place a 'TApplicationEvent' component on the form a supply the maxwidth using the 'OnShowHint' event (pointing to the TJvBalloonHint Instance).

But this should be read by the TJvBallonHintWindow itself, through the GlobalCtrl in the JvBalloonHint unit.
TagsNo tags attached.

Activities

obones

2013-01-15 15:43

administrator   ~0020363

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

2013-01-16 10:28

 

JVCL BUG - TJvBalloonHint MaxWidth.rar (91,352 bytes)

RHoek

2013-01-16 10:30

reporter   ~0020397

Demo application supplied

CheckBox activates the described workaround using ApplicationEvents object

obones

2013-12-13 17:03

administrator   ~0020839

Inside VCL.Forms.pas, have a look at TApplication.ActivateHint
You'll see that it initializes the maxwidth like this:

HintInfo.HintMaxWidth := Screen.Width

but the HintInfo structure is never given to FHintWindow before it gets a chance to be displayed. The only chance anyone has to change the HintMaxWidth property is via the OnShowHint event handler.

obones

2013-12-13 17:08

administrator   ~0020840

Using a private TApplicationEvent did the trick.

Issue History

Date Modified Username Field Change
2012-10-05 15:27 RHoek New Issue
2013-01-15 15:43 obones Note Added: 0020363
2013-01-15 15:43 obones Status new => feedback
2013-01-16 10:28 RHoek File Added: JVCL BUG - TJvBalloonHint MaxWidth.rar
2013-01-16 10:30 RHoek Note Added: 0020397
2013-12-13 11:39 obones Status feedback => acknowledged
2013-12-13 17:03 obones Note Added: 0020839
2013-12-13 17:03 obones Status acknowledged => feedback
2013-12-13 17:08 obones Note Added: 0020840
2013-12-13 17:08 obones Status feedback => resolved
2013-12-13 17:08 obones Fixed in Version => Daily / GIT
2013-12-13 17:08 obones Resolution open => fixed
2013-12-13 17:08 obones Assigned To => obones
2015-09-14 13:20 obones Fixed in Version Daily / GIT => 3.48