How to reduce the form border width

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37699
    HeDiBo
    Participant

    This is how the border of my application looks:

    [attachment=8580:BorderWide.jpg]

    I want those borders to be smaller:

    [attachment=8579:BorderSmall.jpg]

    This was accomplished by setting SkinProvider.DrawNonClientArea to false.

    How can I get these smaller borders with SkinProvider.DrawNonClientArea set to true (so I can still use the enhanced form title).

    #57464
    Support
    Keymaster

    If ExtBorders is False, then width of border received from windows system.

    Otherwise, this border must be changed in the skin directly.

    #57471
    HeDiBo
    Participant
    'Support' wrote:

    If ExtBorders is False, then width of border received from windows system.

    Otherwise, this border must be changed in the skin directly.

    To illustrate what I would like I have made a small test program:

    [attachment=8583:TestWindowBorders.zip]

    When started, it looks like this:

    [attachment=8584:BorderCurrent.jpg]

    When DrawNonClientArea is False, it looks like this:

    [attachment=8585:BorderNoExtBorder.jpg]

    What I'm looking for is this look:

    [attachment=8586:BorderIdeal.jpg]

    This does away with the overly wide borders but retains the title customization.

    The problem stems from the TsPageControl. Without it, the borders are small as preferred.

    #57472
    HeDiBo
    Participant

    Changing the TsPageControl in a TsPanel gives the same problem.

    #57493
    Support
    Keymaster

    I will try to improve it soon.

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