- This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by SzakiLaci.
-
AuthorPosts
-
July 1, 2019 at 3:04 pm #38306SzakiLaciParticipant
Dear Serge,
I've just replaced some TGroupBoxes and TSpeedButtons to Alpa-package ones.
The result is very bad, because
– it's not repainting the groupBox now with the right color, so it can mislead the user!
– Also I find it strange the Caption is painted. There was no such problems with normal TGroupBox.
– But the biggest problem is: sometimes (randomly) it is FORGETTING to draw the button at all !
The most important thing that you may haven't tested yet properly, if:
sGroupBox.SkinData.CustomColor = True;
TsSpeedButtons on a Normal TGroupBox on Win7:
[attachment=9396:TGroupBox_normal_win7.jpg]
(I don't understand, why it became round?) … but that's not important…
Non-skinned = OK 🙂
[attachment=9397:TsGroupBox_nonSkinned_XP.jpg]
MacMetal skin > TsSpeedButtons (CustomColors = False) on TsGroupBox (CustomColors = True)
[attachment=9398:TsGroupBox_MacMetal_XP.jpg]
Problem 1.: Non-transparent Title!
After changing Color:
[attachment=9399:TsGroupBox_MacMetal_XP_should_be_purple.jpg]
Problem 2.: it's not repainting the right new color!
(Only at the sSpeedButtons)
Code:procedure TFrm_EtelValaszto.Helyi_Elvit_GOMBOT_szinez(Sender: TObject); // Elvit kiszállít
begin
if Sender = nil then Exit;
TSpeedButton(Sender).Down := True;if Sender = SpeedButton4 then begin
if (chair_number = 0) then
GroupBox2.Color := purple_color
else
GroupBox2.Color := braun_color ;GroupBox2 .Invalidate; GroupBox2 .Repaint;
SpeedButton3.Invalidate; SpeedButton3.Repaint;
SpeedButton4.Invalidate; SpeedButton4.Repaint;
end;3.: Partial repainting problem of title, but not the surrounding box :
[attachment=9400:TsGroupBox_darkSkin_XP.jpg]
[attachment=9401:TsGroupBox_darkSkin_XP_should_be_purple.jpg]
Should be ALL purple colored! Not braun 🙁
4.) Biggest problem = NOT DRAWING at all:
[attachment=9402:sSpeedButton_on_TsGroupBox_not_painting.jpg]
(This occurs randomly, if I click the other, and do not pull mouse over it.)
…
I know what you will anwser: I should prepare a demo exe… >> if I have time, I'll do it. If you are faster than me >> please write on SkyPe >> so we don'T work on the same thing twice.
Laci
July 2, 2019 at 12:55 pm #59723SzakiLaciParticipantHere is a DEMO to simulate both cases:
[attachment=9403:TGroupBox_paint.zip]
July 4, 2019 at 5:02 am #59726SupportKeymasterThank you for the demo, the control will be repainted automatically in the nearest release.
July 15, 2019 at 11:20 am #59756SzakiLaciParticipant'Support' wrote:Thank you for the demo, the control will be repainted automatically in the nearest release.
Repainting problem fixed at version 14.28,
but there is still an ugly gray border around the title.
(See 2th picture at #1 post)
The problem with that is that it visually separates the Title from the things below it >> makes the whole concept of a “groupBox” pointless.
Users are totally confused by this.
____________
Anyway … I've tested to globally change style to gsCard. In this case the titlebar somehow gets much more thick (greater height) so it flows under other components.
-
AuthorPosts
- You must be logged in to reply to this topic.