View Issue Details

IDProjectCategoryView StatusLast Update
0001686JEDI VCL00 JVCL Componentspublic2004-05-14 11:45
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001686: TJvLookout sets hintcolor black on black
Descriptionif 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 InformationI've found a workaround, simply if you put the statement:
application.hintcolor := clInfoBk
in the Outlookbar.click event everything is fine
TagsNo tags attached.

Activities

user72

2004-04-24 00:31

  ~0004040

I think the problem lies elsewhere because the proposed fix should *never* be necessary. I'll investigate further

user72

2004-04-26 05:30

  ~0004078

Can you reproduce it if you drop a JvOutlookBar on an empty form? If not, the problem lies elsewhere.

user72

2004-04-26 06:21

  ~0004080

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.

anonymous

2004-04-28 04:29

viewer   ~0004099

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

user72

2004-04-28 04:33

  ~0004101

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)

anonymous

2004-04-28 07:20

viewer   ~0004107

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.

user72

2004-04-28 07:45

  ~0004110

Last edited: 2004-04-28 07:48

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

user72

2004-04-28 08:48

  ~0004112

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

user72

2004-05-14 11:45

  ~0004283

No reply, so assuming it works

Issue History

Date Modified Username Field Change
2004-04-23 13:33 anonymous New Issue
2004-04-24 00:31 user72 Note Added: 0004040
2004-04-24 05:05 user72 Status new => acknowledged
2004-04-26 05:30 user72 Note Added: 0004078
2004-04-26 05:31 user72 Status acknowledged => feedback
2004-04-26 06:21 user72 Note Added: 0004080
2004-04-28 04:29 anonymous Note Added: 0004099
2004-04-28 04:33 user72 Note Added: 0004101
2004-04-28 04:33 user72 File Added: JvExForms.zip
2004-04-28 04:33 user72 Status feedback => assigned
2004-04-28 04:33 user72 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 user72 Note Added: 0004110
2004-04-28 07:46 user72 Summary tjvOutlookbar sets hintcolor black on black => TJvLookout sets hintcolor black on black
2004-04-28 07:48 user72 Note Edited: 0004110
2004-04-28 08:48 user72 Note Added: 0004112
2004-05-14 11:45 user72 Status assigned => resolved
2004-05-14 11:45 user72 Resolution open => fixed
2004-05-14 11:45 user72 Note Added: 0004283