TsGroupBox painting problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38306
    SzakiLaci
    Participant

    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

    #59723
    SzakiLaci
    Participant

    Here is a DEMO to simulate both cases:

    [attachment=9403:TGroupBox_paint.zip]

    #59726
    Support
    Keymaster

    Thank you for the demo, the control will be repainted automatically in the nearest release.

    #59756
    SzakiLaci
    Participant
    '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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.