trzGroupBar Scrolling with Mouse wheel

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

trzGroupBar Scrolling with Mouse wheel

Postby glarson » Mon Oct 19, 2015 10:37 am

I need to scroll the items in a rzGroupBar with the mouse wheel. How do I enable scrolling with the wheel?
glarson
 
Posts: 4
Joined:
Fri May 29, 2015 1:06 pm

Re: trzGroupBar Scrolling with Mouse wheel

Postby Raize Support » Tue Nov 03, 2015 3:07 am

Hi,

The TRzGroupBar does handle the mouse wheel when a group in the group bar has the focus. However, by default, clicking on a TRzGroupItem item in a group does not focus the group. This is similar behavior to a tool button on a toolbar (i.e. no focus change). However, if you click on the caption of a TRzGroup (to collapse or expand the group), the focus does change. Then the mouse wheel will work. In the OnClick event handlers for the items, you could change the focus to the group so that each time an item was clicked, the focus would change to the group and the mouse wheel would work. For example,

Code: Select all
procedure TForm1.RzGroup1Items0Click(Sender: TObject);
begin
  RzGroup1.SetFocus;
end;


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


Return to Panels

Who is online

Users browsing this forum: No registered users and 1 guest

cron