View Issue Details

IDProjectCategoryView StatusLast Update
0001537JEDI VCL00 JVCL Componentspublic2004-04-03 01:08
ReporterFlyingAvatarAssigned Touser72 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001537: JvGradientHeaderPanel - Ignores input events, not a container
DescriptionNo input events for this component are triggered (ie. MouseDown, KeyPress, etc). And it is named Panel, yet is its not a container.
TagsNo tags attached.

Activities

user72

2004-03-29 11:19

  ~0003497

Probably should have csAcceptsControls in ControlStyle...

user72

2004-03-30 22:52

  ~0003530

I've added csAcceptsControls to ControlStyle but don't know why it doesn't react to mouse and key events

remkobonte

2004-03-31 06:58

developer   ~0003541

The complete control is filled by FGradient & FLabel, thus these controls catch all the events and TJvGradientHeaderPanel gets none.

Something like this has to be done:

in the create:
  FLabel.OnClick := HandleClick;
  FGradient.OnClick := HandleClick;

procedure TJvGradientHeaderPanel.HandleClick(Sender: TObject);
begin
  if Assigned(OnClick) then
    OnClick(Self);
end;

Or maybe you should call the Do.. procedures, DoClick, DoDblClick etc.

But don't know if this is enough, some stuff may be handled in the WM_.. events which TJvGradientHeaderPanel will not get.

user72

2004-03-31 08:30

  ~0003544

Well, maybe it should be rewritten to draw directly on the panel instead but, on the other hand, then we could just as well remove it and do that to the recently added TJvNavPanelHeader instead...

user72

2004-04-03 01:08

  ~0003621

Fixed in CVS (will probably not work with CLX)

Issue History

Date Modified Username Field Change
2004-03-28 09:27 FlyingAvatar New Issue
2004-03-29 11:19 user72 Note Added: 0003497
2004-03-30 22:52 user72 Note Added: 0003530
2004-03-30 22:53 user72 Status new => assigned
2004-03-30 22:53 user72 Assigned To => user72
2004-03-31 06:58 remkobonte Note Added: 0003541
2004-03-31 08:30 user72 Note Added: 0003544
2004-04-03 01:08 user72 Status assigned => resolved
2004-04-03 01:08 user72 Resolution open => fixed
2004-04-03 01:08 user72 Note Added: 0003621