Groupbox with panel

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #35940
    Pierrotsc
    Participant

    I am dropping a groupbox in a form. I am putting a panel with alclient align.

    The panel does not fill the whole groupbox. I can see a line on top of it.

    I changed the skin section to checkbox in groupbox to make it transparent. The line goes away but i still have a border that is sticking outside the panel on the top.

    How can i make the groupbox not to bleed on top of the panel?

    thanks.

    P

    #51196
    Support
    Keymaster

    Could you show a screenshot, please?

    #51197
    Pierrotsc
    Participant
    'Support' wrote:

    Could you show a screenshot, please?

    Sure…here you go..[attachment=6565:groupbox.PNG]

    #51198
    Support
    Keymaster

    Thanks. Parent of GroupBox is not skinned?

    #51199
    Support
    Keymaster

    Maybe you can show Dfm file for this form also? (as text)

    #51200
    Pierrotsc
    Participant

    I may remove some components before I give you the dfm as it is pretty large.

    I have a snotebook.

    Inside the snotebook page, I have a devexpress layoutcontrol form to keep the component groupbox centered in the middle of the page.

    the snotebook is skinned, so is the groupbox.

    Let me try to see what happen without the devexpress layoutcontrol.

    I'll get back in a few..

    #51201
    Pierrotsc
    Participant

    Here, i just created a new form, dropped a groupbox and a panel inside. You can see it in the design that it does not fill the whole groupbox.

    here's the text:

    object Form1: TForm1

    Left = 0

    Top = 0

    Caption = 'Form1'

    ClientHeight = 347

    ClientWidth = 535

    Color = clBtnFace

    Font.Charset = DEFAULT_CHARSET

    Font.Color = clWindowText

    Font.Height = -11

    Font.Name = 'Tahoma'

    Font.Style = []

    OldCreateOrder = False

    PixelsPerInch = 96

    TextHeight = 13

    object sGroupBox1: TsGroupBox

    Left = 128

    Top = 104

    Width = 185

    Height = 177

    TabOrder = 0

    SkinData.SkinSection = 'GROUPBOX'

    object sPanel1: TsPanel

    Left = 2

    Top = 15

    Width = 181

    Height = 160

    Align = alClient

    Caption = 'sPanel1'

    TabOrder = 0

    SkinData.SkinSection = 'PANEL'

    ExplicitLeft = 40

    ExplicitTop = 88

    ExplicitWidth = 185

    ExplicitHeight = 41

    end

    end

    object sSkinProvider: TsSkinProvider

    AddedTitle.Font.Charset = DEFAULT_CHARSET

    AddedTitle.Font.Color = clNone

    AddedTitle.Font.Height = -11

    AddedTitle.Font.Name = 'Tahoma'

    AddedTitle.Font.Style = []

    DrawNonClientArea = False

    SkinData.SkinSection = 'FORM'

    TitleButtons =

    Left = 136

    Top = 40

    end

    end

    Thanks.

    #51202
    Support
    Keymaster

    You want have a fully transparent groupbox without borders?

    #51203
    Pierrotsc
    Participant

    Not really. If i change the skin to checkbox, the groupbox has no border but you can still see its background sticking out on the top of the panel. I do not mind having the groupbox borders, i just want the panel to fill it completely.

    Right now, it does not look “Clean”. The border only shows on the top and not on all around.

    Do you see what I mean? Can you duplicate it?

    Maybe it is intended to be like that 🙂

    P

    #51204
    Support
    Keymaster

    Yes, it's a normal behavior.

    Why you don't want use a Panel instead this GroupBox?

    #51205
    Pierrotsc
    Participant

    That is indeed a very good suggestion. I did not think about it. Let me try that. Thanks

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