This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Scaling in ElButtonEdit

edited September 2013 in LMD ElPack
Hi,

we change code in TCustomElButtonEdit.ChangeScale to avoid to small with of Drop-Down-Button (for older ElPack-Version) to

procedure TCustomElButtonEdit.ChangeScale(M, D: Integer);
begin
  inherited;

  if Assigned(FAltButton) then
  begin
    if FAltButtonPropHelper.FAltButtonWidth = -1 then
      FAltButton.Width := GetSystemMetrics(SM_CXVSCROLL)
    else
      FAltButton.Width := FAltButtonPropHelper.FAltButtonWidth;
  end;
  if FButtonWidth = -1 then
    FButton.Width := GetSystemMetrics(SM_CXVSCROLL)
  else
    FButton.Width := FButtonWidth;
end;

Please check if this is also needed for new version of ElPack

Comments

Sign In or Register to comment.