sGroupBox.pas may have a test left-over in the code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59812
    Support
    Keymaster

      I'm not sure what you mean. If not ParentColor then filled by Color. This behavior is not correct?

      #59815
      dxMos
      Participant
        'Support' wrote:

        I'm not sure what you mean. If not ParentColor then filled by Color. This behavior is not correct?

        Correct but double 😉

        Code:
        if not ParentColor then
        FillDC(Handle, MkRect(Self), Color);
        ….
        ….
        if ParentColor then
        ….
        else
        FillDC(Handle, MkRect(Self), Color);

        Cheers

        Thomas

        #59816
        Support
        Keymaster

          Ahh, I see it now, thanks 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘sGroupBox.pas may have a test left-over in the code’ is closed to new replies.