Set margin for close button of page control tab

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #71368
    Lasse
    Participant

      Reading the code reveals that there is no property for this. But in TsPageControl.InitTabContentData you see that there is BtnOffsX which is constant. That procedure will initialize the dContent parameter for TsPageControl.PaintButton.

      const
        BtnOffsX = 4; // Offset of the Close button from right border

      You need to fix the original code to move it. However, I think that close button is exactly in the right place. Or maybe you are using some skin which is not ok.

      • This reply was modified 2 years, 3 months ago by Lasse.
      #71377
      Saeidd2016
      Participant

        Reading the code reveals that there is no property for this. But in TsPageControl.InitTabContentData you see that there is BtnOffsX which is constant. That procedure will initialize the dContent parameter for TsPageControl.PaintButton.

        const
          BtnOffsX = 4; // Offset of the Close button from right border

        You need to fix the original code to move it. However, I think that close button is exactly in the right place. Or maybe you are using some skin which is not ok.

        The BtnOffsX is a constant and in high dpi screens it doesn’t change to greater value.

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