Set margin for close button of page control tab

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71367
    Saeidd2016
    Participant

    Hello, Is it possible to set left and right margin for close button of TsPageControl tab?

    #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 1 year 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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.