View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001686 | JEDI VCL | 00 JVCL Components | public | 2004-04-23 13:33 | 2004-05-14 11:45 |
Reporter | anonymous | Assigned To | user72 | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001686: TJvLookout sets hintcolor black on black | ||||
Description | if you click on a button in the same outlookbarpage after two button press hintcolor is resetted to black (0) instead of clInfoBk. If you change the outlook page everything is ok, but if you press more than one button on the same page hint is no more visible. | ||||
Additional Information | I've found a workaround, simply if you put the statement: application.hintcolor := clInfoBk in the Outlookbar.click event everything is fine | ||||
Tags | No tags attached. | ||||
|
I think the problem lies elsewhere because the proposed fix should *never* be necessary. I'll investigate further |
|
Can you reproduce it if you drop a JvOutlookBar on an empty form? If not, the problem lies elsewhere. |
|
Just to make it crystal clear: I can't reproduce your problem which to me indicates that the reason for black on black is caused by some other part of your code. |
|
Peter, I tried with a simple example and everything is fine. The problem manifest itself in a complex application (btw the only one that I ported to Jvcl3). When compiled with JVCL 2 everything is fine, when I use version 3beta(9/4/2004) the problem arise as in my earlier description. Nothing else has changed. As soon as I can I'll try to nail down the problem with a small example. Maurizio |
|
There was a problem with black on black for hints originating in JvExForms.pas. I've attached the latest version to this issue. Try it and check if that's the cause of the error. |
2004-04-28 04:33
|
JvExForms.zip (5,045 bytes) |
2004-04-28 07:20
|
Outlookbarerror.zip (243,415 bytes) |
|
Peter, I have uploaded a small sample (only two win with two components). The problem seem to happen when clicking on the outlookbutton you call a modal dialog or window. Take a look at the sample, I have uploaded the exe too. Simply click on button 1 or button 2 and check the hint color. I try with your patch but I don't use JvExForms in my applications. |
|
Removing the "if not MouseOver" in TJvCustomLookOutButton.MouseEnter seems to solve it: procedure TJvCustomLookOutButton.MouseEnter(Control: TControl); begin if csDesigning in ComponentState then Exit; // if not MouseOver then // begin inherited MouseEnter(Control); if FFillColor = clNone then PaintFrame else Invalidate; // end; end; Not sure why, though... BTW, this is not in JvOutlookBar - this is in JvLookout. I'll change the subject edited on: 04-28-04 07:48 |
|
I think the correct implementations of MouseEnter and MouseLeave should look like this: procedure TJvCustomLookOutButton.MouseEnter(Control: TControl); begin if csDesigning in ComponentState then Exit; if not MouseOver then begin if FFillColor = clNone then PaintFrame else Invalidate; end; inherited MouseEnter(Control); end; procedure TJvCustomLookOutButton.MouseLeave(Control: TControl); begin if MouseOver then begin if not FStayDown then Invalidate; end; inherited MouseLeave(Control); end; As it is now, the inherited call chain is interrupted and it risks getting out of sync. I'll update in in CVS |
|
No reply, so assuming it works |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-04-23 13:33 | anonymous | New Issue | |
2004-04-24 00:31 |
|
Note Added: 0004040 | |
2004-04-24 05:05 |
|
Status | new => acknowledged |
2004-04-26 05:30 |
|
Note Added: 0004078 | |
2004-04-26 05:31 |
|
Status | acknowledged => feedback |
2004-04-26 06:21 |
|
Note Added: 0004080 | |
2004-04-28 04:29 | anonymous | Note Added: 0004099 | |
2004-04-28 04:33 |
|
Note Added: 0004101 | |
2004-04-28 04:33 |
|
File Added: JvExForms.zip | |
2004-04-28 04:33 |
|
Status | feedback => assigned |
2004-04-28 04:33 |
|
Assigned To | => user72 |
2004-04-28 07:20 | anonymous | File Added: Outlookbarerror.zip | |
2004-04-28 07:20 | anonymous | Note Added: 0004107 | |
2004-04-28 07:45 |
|
Note Added: 0004110 | |
2004-04-28 07:46 |
|
Summary | tjvOutlookbar sets hintcolor black on black => TJvLookout sets hintcolor black on black |
2004-04-28 07:48 |
|
Note Edited: 0004110 | |
2004-04-28 08:48 |
|
Note Added: 0004112 | |
2004-05-14 11:45 |
|
Status | assigned => resolved |
2004-05-14 11:45 |
|
Resolution | open => fixed |
2004-05-14 11:45 |
|
Note Added: 0004283 |