View Single Post
  #1  
Old 21-09-2019, 17:21
MaXun MaXun is offline
Registered User
 
Join Date: Sep 2019
Location: London
Posts: 4
Thanks: 3
Thanked 2 Times in 2 Posts
MaXun is on a distinguished road
Quote:
Originally Posted by Carldric Clement View Post
Mini Compressor AIO v20.6 - Updated

Changelog was moved: here

Fixed:

Tweaks:

Go check it out.

EDIT:
It does not correctly determine the volume of the hard drive and the weight of the game.
Code:
function DelSp(s: string): string;
begin
  while Pos('  ',s)>0 do StringChange(s,'  ',' ');
  Result:=Trim(s);
end;

procedure GroupChange(Sender: TObject);
begin
  GroupEditLabel.Caption := MinimizePathName(WizardForm.GroupEdit.Text, GroupEditLabel.Font, GroupEditLabel.Width);
end;

function NumToStr(Float: Extended): string;
begin
  Result:=Format('%.2n', [Float]);
  StringChange(Result, ',', '.');
  while ((Result[Length(Result)]='0') or (Result[Length(Result)]='.')) and (Pos('.',Result)>0) do SetLength(Result,Length(Result)-1);
end;

function MbOrGb(Float: extended): ansistring;
begin
  if Float >= (1024*1024*1024) then
    result:=format('%.2n',[Float/(1024*1024*1024)])+' Gb'
  else
    result:= format('%.2n',[Float/(1024*1024)])+' Mb';
end;

function GetElementIndex(a:TALabel; lbl:TLabel):integer;
var
  i:integer;
  f:boolean;
begin
  Result:=-1;
  f:=False;
  for i:=0 to GetArrayLength(a)-1 do
    if a[i]=lbl then begin
      f:=True;
      Break;
    end;
  if f then Result:=i;
end;

function NoIcons: Boolean;
begin
  Result:= BtnGetEnabled(hGroupBrowseBtn);
end;

function Desktop: Boolean;
begin
  Result:= BtnGetChecked(DesktopCheck);
end;

function QuickLaunch: Boolean;
begin
  Result:= BtnGetChecked(QuickLaunchCheck);
end;

procedure HideControls;
begin
  LabelPct1.Hide;
end;
What is wrong here?
Reply With Quote
Sponsored Links