Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Adustment of DropDown-Position

In TCustomElComboBox.DropDown (ELCombos.pas)

Uses
    if (P.X + FForm.Width > GetDesktopRight) then
    begin
      ...
    end;

to check if Dropdown must be moved to left
But GetDesktopRight  uses

function GetDesktopRect: TRect;
begin
  SystemParametersInfo(SPI_GETWORKAREA, 0, @result, 0);
end;

and SPI_GETWORKAREA gives only the area of the primary monitor.

This should be change to work with the Workarea of the used monitor where the combobox is located

Comments

Sign In or Register to comment.