View Issue Details

IDProjectCategoryView StatusLast Update
0004927JEDI VCL00 JVCL Componentspublic2010-06-07 17:57
ReporterKonchulioAssigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version3.37 
Target VersionFixed in Version 
Summary0004927: [TJvPageControl] - TabSheet wrong backgroundcolor
DescriptionMy system environment:
- WinXP Pro (SP3),
- Delphi 2010 (D14),
- JVCL Version 3.38

TJVpageControl Settings:
- Style = tsTabs
- ParentColor = False
- Color = clBtnFace

Repo-Step's:
- I open the same project (form with pagecontrol) in Delphi 2009 and in Delphi 2010. (look at screenshots in the attachments)
- when I change the Color in Delphi 2009 the backroundcolor change
- But when I change the Color in Delphi 2010 it doesn't change the backroundcolor!

Additional InformationIt seems to be a bug in the Delphi 2010 VCL?!

Unit ComCtrls;
......
procedure TCustomTabControl.SetStyle(Value: TTabStyle);
begin
  if FStyle <> Value then
  begin
    if (Value <> tsTabs) and (TabPosition <> tpTop) then
      raise EInvalidOperation.Create(SInvalidTabStyle);
    ParentBackground := Value = tsTabs; ---> is that correct??
    FStyle := Value;
    RecreateWnd;
  end;
end;
.......

procedure TPageControl.WMEraseBkGnd(var Message: TWMEraseBkGnd);
begin
  if (not ThemeServices.ThemesEnabled) or
     (not ParentBackground) then --> (ParentBackground := Value = tsTabs;)
    inherited
  else
    Message.Result := 1;
end;
TagsNo tags attached.

Activities

2009-09-07 17:26

 

PageControl-D12-D14.zip (84,857 bytes)

AHUser

2010-06-07 17:57

developer   ~0017470

VCL bug. Please open a QualityCentral report (Embarcadero) for this.

Issue History

Date Modified Username Field Change
2009-09-07 17:26 Konchulio New Issue
2009-09-07 17:26 Konchulio File Added: PageControl-D12-D14.zip
2009-09-09 19:38 obones Status new => acknowledged
2010-06-07 17:57 AHUser Note Added: 0017470
2010-06-07 17:57 AHUser Status acknowledged => closed
2010-06-07 17:57 AHUser Resolution open => fixed