TRzToolButton.DoDropDown on dual monitor not well

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

TRzToolButton.DoDropDown on dual monitor not well

Postby Marek » Thu Nov 13, 2014 8:56 am

Hi,

ToolButton with DropDownMenu does not work well on dual monitor system.
If you try to open drop down menu on the right edge of the left monitor then the menu will be displayed on the right monitor. The following change works fine:
Code: Select all
case FDropDownMenu.Alignment of
      paLeft:
      begin
        if Assigned( Monitor ) then
          FarRightEdge := GetMonitorWorkArea( Monitor ).Right
        else
          FarRightEdge := GetActiveWorkAreaWidth( Parent );

        if P.X + MenuWidth > FarRightEdge then
          //-----> false   P.X := FarRightEdge;
          P.X := FarRightEdge - MenuWidth;
      end;
Thanks,
Marek
Marek
 
Posts: 44
Joined:
Wed Apr 13, 2011 7:09 am

Re: TRzToolButton.DoDropDown on dual monitor not well

Postby Raize Support » Thu Nov 20, 2014 3:50 am

Thanks for the report.

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


Return to Panels

Who is online

Users browsing this forum: No registered users and 2 guests