- This topic has 10 replies, 2 voices, and was last updated 11 years ago by Pierrotsc.
-
AuthorPosts
-
November 26, 2013 at 5:51 pm #35940PierrotscParticipant
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
November 26, 2013 at 5:57 pm #51196SupportKeymasterCould you show a screenshot, please?
November 26, 2013 at 6:53 pm #51197PierrotscParticipant'Support' wrote:Could you show a screenshot, please?
Sure…here you go..[attachment=6565:groupbox.PNG]
November 26, 2013 at 6:59 pm #51198SupportKeymasterThanks. Parent of GroupBox is not skinned?
November 26, 2013 at 7:00 pm #51199SupportKeymasterMaybe you can show Dfm file for this form also? (as text)
November 26, 2013 at 7:32 pm #51200PierrotscParticipantI 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..
November 26, 2013 at 7:39 pm #51201PierrotscParticipantHere, 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.
November 26, 2013 at 8:16 pm #51202SupportKeymasterYou want have a fully transparent groupbox without borders?
November 26, 2013 at 8:47 pm #51203PierrotscParticipantNot 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
November 26, 2013 at 9:08 pm #51204SupportKeymasterYes, it's a normal behavior.
Why you don't want use a Panel instead this GroupBox?
November 27, 2013 at 2:12 am #51205PierrotscParticipantThat is indeed a very good suggestion. I did not think about it. Let me try that. Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.