|
@@ -100,22 +100,24 @@ begin
|
|
|
removeTempButton := False;
|
|
removeTempButton := False;
|
|
|
removeTempButtonFocus := False;
|
|
removeTempButtonFocus := False;
|
|
|
|
|
|
|
|
- if Assigned(FButton) then
|
|
|
|
|
|
|
+ if (Assigned(FButton)) and (FBCStyle = ssDefault) then
|
|
|
tempButton := FButton
|
|
tempButton := FButton
|
|
|
else
|
|
else
|
|
|
begin
|
|
begin
|
|
|
tempButton := TBCButton.Create(Self);
|
|
tempButton := TBCButton.Create(Self);
|
|
|
tempButton.Name := 'BCDefaultThemeManager_tempButton';
|
|
tempButton.Name := 'BCDefaultThemeManager_tempButton';
|
|
|
removeTempButton := True;
|
|
removeTempButton := True;
|
|
|
|
|
+ StyleButtonsSample(tempButton, FBCStyle);
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
- if Assigned(FButtonFocus) then
|
|
|
|
|
|
|
+ if (Assigned(FButton)) and (FBCStyle = ssDefault) then
|
|
|
tempButtonFocus := FButtonFocus
|
|
tempButtonFocus := FButtonFocus
|
|
|
else
|
|
else
|
|
|
begin
|
|
begin
|
|
|
tempButtonFocus := TBCButtonFocus.Create(Self);
|
|
tempButtonFocus := TBCButtonFocus.Create(Self);
|
|
|
tempButtonFocus.Name := 'BCDefaultThemeManager_tempButtonFocus';
|
|
tempButtonFocus.Name := 'BCDefaultThemeManager_tempButtonFocus';
|
|
|
removeTempButtonFocus := True;
|
|
removeTempButtonFocus := True;
|
|
|
|
|
+ StyleButtonsFocusSample(tempButtonFocus, FBCStyle);
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
{ Controls }
|
|
{ Controls }
|
|
@@ -128,10 +130,7 @@ begin
|
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
|
(tempButton.Name <> AControl.Controls[i].Name) then
|
|
(tempButton.Name <> AControl.Controls[i].Name) then
|
|
|
begin
|
|
begin
|
|
|
- if FBCStyle = ssDefault then
|
|
|
|
|
- Assign(tempButton)
|
|
|
|
|
- else
|
|
|
|
|
- StyleButtonsSample(AControl.Controls[i], FBCStyle);
|
|
|
|
|
|
|
+ Assign(tempButton);
|
|
|
end;
|
|
end;
|
|
|
{ BCButtonFocus }
|
|
{ BCButtonFocus }
|
|
|
if (AControl.Controls[i] is TBCButtonFocus) then
|
|
if (AControl.Controls[i] is TBCButtonFocus) then
|
|
@@ -140,10 +139,7 @@ begin
|
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
|
(tempButtonFocus.Name <> AControl.Controls[i].Name) then
|
|
(tempButtonFocus.Name <> AControl.Controls[i].Name) then
|
|
|
begin
|
|
begin
|
|
|
- if FBCStyle = ssDefault then
|
|
|
|
|
- Assign(tempButtonFocus)
|
|
|
|
|
- else
|
|
|
|
|
- StyleButtonsFocusSample(AControl.Controls[i], FBCStyle);
|
|
|
|
|
|
|
+ Assign(tempButtonFocus);
|
|
|
end;
|
|
end;
|
|
|
{ Custom Drawn }
|
|
{ Custom Drawn }
|
|
|
// implement it
|
|
// implement it
|
|
@@ -158,10 +154,7 @@ begin
|
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
|
(tempButton.Name <> TBCNumericKeyboard(AControl.Components[i]).ButtonStyle.Name) then
|
|
(tempButton.Name <> TBCNumericKeyboard(AControl.Components[i]).ButtonStyle.Name) then
|
|
|
begin
|
|
begin
|
|
|
- if FBCStyle = ssDefault then
|
|
|
|
|
- ButtonStyle.Assign(tempButton)
|
|
|
|
|
- else
|
|
|
|
|
- StyleButtonsSample(ButtonStyle, FBCStyle);
|
|
|
|
|
|
|
+ ButtonStyle.Assign(tempButton);
|
|
|
UpdateButtonStyle;
|
|
UpdateButtonStyle;
|
|
|
end;
|
|
end;
|
|
|
{ BCRealNumericKeyboard }
|
|
{ BCRealNumericKeyboard }
|
|
@@ -171,10 +164,7 @@ begin
|
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
(TBCDefaultThemeManager(ThemeManager).Name = Self.Name) and
|
|
|
(tempButton.Name <> TBCRealNumericKeyboard(AControl.Components[i]).ButtonStyle.Name) then
|
|
(tempButton.Name <> TBCRealNumericKeyboard(AControl.Components[i]).ButtonStyle.Name) then
|
|
|
begin
|
|
begin
|
|
|
- if FBCStyle = ssDefault then
|
|
|
|
|
- ButtonStyle.Assign(tempButton)
|
|
|
|
|
- else
|
|
|
|
|
- StyleButtonsSample(ButtonStyle, FBCStyle);
|
|
|
|
|
|
|
+ ButtonStyle.Assign(tempButton);
|
|
|
UpdateButtonStyle;
|
|
UpdateButtonStyle;
|
|
|
end;
|
|
end;
|
|
|
end;
|
|
end;
|