Re: [Lazarus] Setting a groupbox caption bold?

2019-04-01 Thread Werner Pamler via lazarus
You did not say that you want to have bold caption for several controls. In order to "bold" all controls on a form, I use another procedure which is called from the OnCreate event of a form and recursively iterates through all controls and their children, seeks for TCustomGroupBox controls and

Re: [Lazarus] Setting a groupbox caption bold?

2019-04-01 Thread Bo Berglund via lazarus
On Mon, 1 Apr 2019 00:42:45 +0200, Werner Pamler via lazarus wrote: >procedure BoldGroup(AControl: TWinControl); >var >   i: Integer; >   propinfo: PPropInfo; >   cntrl: TControl; >   fnt: TFont; >begin >   for i:=0 to AControl.ControlCount-1 do begin >     cntrl := AControl.Controls[i]; >    

Re: [Lazarus] Setting a groupbox caption bold?

2019-03-31 Thread Werner Pamler via lazarus
Am 01.04.2019 um 00:09 schrieb Bo Berglund via lazarus: I have a configuration setting form where I have used group boxes to collect properties that belong together. But the groupbox border is not really well defined so I would like to be able to augment the form visually by setting the caption

[Lazarus] Setting a groupbox caption bold?

2019-03-31 Thread Bo Berglund via lazarus
I have a configuration setting form where I have used group boxes to collect properties that belong together. But the groupbox border is not really well defined so I would like to be able to augment the form visually by setting the caption of the group boxes to bold. But I find no such property