You've already forked lazarus-ccr
mbColorLib: Scale height of RGB trackbars in OfficeMoreColorsDialog with current dpi.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5601 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -283,9 +283,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TOfficeMoreColorsWin.FormCreate(Sender: TObject);
|
procedure TOfficeMoreColorsWin.FormCreate(Sender: TObject);
|
||||||
|
const
|
||||||
|
DESIGN_DPI = 96;
|
||||||
begin
|
begin
|
||||||
Width := ScaleX(Width, 96);
|
Width := ScaleX(Width, DESIGN_DPI);
|
||||||
Height := ScaleY(Height, 96);
|
Height := ScaleY(Height, DESIGN_DPI);
|
||||||
|
RTrackbar.Height := ScaleY(RTrackbar.Height, DESIGN_DPI);
|
||||||
|
BTrackbar.Height := RTrackbar.Height;
|
||||||
|
GTrackbar.Height := RTrackbar.Height;
|
||||||
|
|
||||||
FBrightnessMode := bmLuminance;
|
FBrightnessMode := bmLuminance;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user