addCheckBox(box, '~foreground', @g_rlayer_fore);
winLayers.appendChild(box);
+ winLayers.flMaxSize := TLaySize.Create(trunc(getScrWdt/gh_ui_scale), trunc(getScrHgt/gh_ui_scale));
uiLayoutCtl(winLayers);
end;
addCheckBox(box, 'con~tours', @g_ol_nice);
winOutlines.appendChild(box);
+ winOutlines.flMaxSize := TLaySize.Create(trunc(getScrWdt/gh_ui_scale), trunc(getScrHgt/gh_ui_scale));
uiLayoutCtl(winOutlines);
end;
box := TUIHBox.Create();
box.hasFrame := true;
box.caption := 'windows';
+ box.captionAlign := 0;
box.flAlign := 0;
addButton(box, '~layers', toggleLayersWindowCB);
span := TUISpan.Create();
addButton(box, '~outline', toggleOutlineWindowCB);
winOptions.appendChild(box);
+ winOptions.flMaxSize := TLaySize.Create(trunc(getScrWdt/gh_ui_scale), trunc(getScrHgt/gh_ui_scale));
uiLayoutCtl(winOptions);
winOptions.centerInScreen();
end;
public
property caption: AnsiString read mCaption write setCaption;
property hasFrame: Boolean read mHasFrame write setHasFrame;
+ property captionAlign: Integer read mHAlign write mHAlign;
end;
TUIHBox = class(TUIBox)