View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006005 | JEDI VCL | 00 JVCL Components | public | 2012-10-05 15:27 | 2015-09-14 13:20 |
| Reporter | RHoek | Assigned To | obones | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | Daily / GIT | ||||
| Target Version | Fixed in Version | 3.48 | |||
| Summary | 0006005: When using TJvBalloonHint as application hint, the MaxWidth is not respected | ||||
| Description | When 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. | ||||
| Tags | No tags attached. | ||||
|
|
Please provide the zipped sources of a sample application showing this. |
|
2013-01-16 10:28
|
JVCL BUG - TJvBalloonHint MaxWidth.rar (91,352 bytes) |
|
|
Demo application supplied CheckBox activates the described workaround using ApplicationEvents object |
|
|
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. |
|
|
Using a private TApplicationEvent did the trick. |
| 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 |