Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Removing the box border - GroupBox / RadioGroup


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Mar 22, 2017 2:21 PM Last Post By: Goran Ekstrom Threads: [ Previous | Next ]
Goran Ekstrom

Posts: 149
Registered: 1/10/04
Removing the box border - GroupBox / RadioGroup  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 22, 2017 1:54 PM
Hi,
is there any way to get rid of the thin box border lines of a TGroupBox/TRadioGroup? Unlike a TPanel, the Border properties are not available in the designer.

Regards
Goran
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Removing the box border - GroupBox / RadioGroup  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 22, 2017 2:18 PM   in response to: Goran Ekstrom in response to: Goran Ekstrom
Goran wrote:

is there any way to get rid of the thin box border lines
of a TGroupBox/TRadioGroup?

Not natively, no. You would have to subclass them to handle their painting
manually. The drawing of the border is hard-coded in TCustomGroupBox.Paint(),
there is no property to disable it.

Unlike a TPanel, the Border properties are not available
in the designer.

TGroupBox and TRadioGroup do not have Border properties. You will just have
to use a TPanel instead. The only real difference between TPanel and TGroupBox
is the caption drawing. And you can replace TRadioGroup with TRadioButton
controls dropped on a TPanel.

--
Remy Lebeau (TeamB)
Goran Ekstrom

Posts: 149
Registered: 1/10/04
Re: Removing the box border - GroupBox / RadioGroup  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 22, 2017 2:21 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
is there any way to get rid of the thin box border lines
of a TGroupBox/TRadioGroup?
Not natively, no...

OK.

Unlike a TPanel, the Border properties are not available
in the designer.
TGroupBox and TRadioGroup do not have Border properties. You will just have
to use a TPanel instead. The only real difference between TPanel and TGroupBox
is the caption drawing. And you can replace TRadioGroup with TRadioButton
controls dropped on a TPanel.

Trying that out right now.

Thanks Remy.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02