TRzToolbar in TControlBar - hide the toolbar grip

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

TRzToolbar in TControlBar - hide the toolbar grip

Postby Marek » Sat May 26, 2012 11:15 am

Hello,

I use many TRzToolbar's on one TControlBar.
Is it possible to show/hide the toolbar grips?

Regards
Marek
Thanks,
Marek
Marek
 
Posts: 35
Joined:
Wed Apr 13, 2011 7:09 am

Re: TRzToolbar in TControlBar - hide the toolbar grip

Postby Raize Support » Sun May 27, 2012 9:55 pm

Hi Marek,

I don't really use the TControlBar, but I took a look at the TControlBar source and found that you can remove the grabber by handling the TControlBar.OnBandPaint event as shown below:

Code: Select all
procedure TForm1.ControlBar1BandPaint(Sender: TObject; Control: TControl; Canvas: TCanvas; var ARect: TRect;
  var Options: TBandPaintOptions);
begin
  Options := Options - [ bpoGrabber ];
end;


Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 445
Joined:
Fri Mar 25, 2011 9:04 pm

Re: TRzToolbar in TControlBar - hide the toolbar grip

Postby Marek » Mon May 28, 2012 8:11 am

Hi Ray,

thanks for your help, it works great.
Thanks,
Marek
Marek
 
Posts: 35
Joined:
Wed Apr 13, 2011 7:09 am


Return to Panels

Who is online

Users browsing this forum: No registered users and 1 guest

cron