Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2014, 12:06
by_pbh by_pbh is offline
Registered User
 
Join Date: Dec 2008
Location: Romania
Posts: 4
Thanks: 4
Thanked 13 Times in 3 Posts
by_pbh is on a distinguished road
Post Example DirEdit and GroupEdit to text

diredit.jpg

Code:
code
#ifdef UNICODE
    #define A "W"
#else
    #define A "A"
#endif

const
  MAX_PATH = 260;
  MAX_PATH_LEN = 55;

var
  PathLabel: TLabel;

function PathCompactPathEx(pszOut: String; pszSrc: String; cchMax: UINT; dwFlags: DWORD): BOOL; external 'PathCompactPathEx{#A}@shlwapi.dll stdcall';

function ShortPath(Input: String; Length: Integer): String;
begin
  Result := StringOfChar(#32, MAX_PATH);
  PathCompactPathEx(Result, Input, Length, 0);
end;

procedure DirEditOnChange(Sender: TObject);
begin
  PathLabel.Caption := ShortPath('Install Path:' + #32 + TEdit(Sender).Text, MAX_PATH_LEN);
end;

procedure InitializeWizard();
begin
  with WizardForm do
  begin
    PathLabel := TLabel.Create(WizardForm)
    with PathLabel do
    begin
      Parent := DirEdit.Parent;
      Caption := ShortPath('Install Path:' + #32 + DirEdit.Text, MAX_PATH_LEN);
      Transparent := True;
      Font.Size := 10;
      Left := DirEdit.Left;
      Top := DirEdit.Top + Round((DirEdit.Height - Height) div 2);
    end;
    DirEdit.OnChange := @DirEditOnChange;
    DirEdit.Hide;
  end;
end;
groupedit.jpg

Code:
code
#ifdef UNICODE
    #define A "W"
#else
    #define A "A"
#endif

const
  MAX_PATH = 260;
  MAX_PATH_LEN = 55;

var
  PathLabel: TLabel;

function PathCompactPathEx(pszOut: String; pszSrc: String; cchMax: UINT; dwFlags: DWORD): BOOL; external 'PathCompactPathEx{#A}@shlwapi.dll stdcall';

function ShortPath(Input: String; Length: Integer): String;
begin
  Result := StringOfChar(#32, 260);
  PathCompactPathEx(Result, Input, Length, 0);
end;

procedure GroupEditOnChange(Sender: TObject);
begin
  PathLabel.Caption := ShortPath(#32 + TEdit(Sender).Text, 55);
end;

procedure InitializeWizard();
begin
  PathLabel := TLabel.Create(nil);
  with PathLabel do
  begin
    Parent:= WizardForm.SelectProgramGroupPage;
    Caption := ShortPath(#32 + WizardForm.GroupEdit.Text, 55);
    Transparent := True;
    Font.Size := 9;
    Left := WizardForm.GroupEdit.Left;
    Top := WizardForm.GroupEdit.Top + Round((WizardForm.GroupEdit.Height - Height) div 2);
  end;
  WizardForm.GroupEdit.OnChange := @GroupEditOnChange;
  WizardForm.GroupEdit.Hide;
end;
Reply With Quote
The Following 9 Users Say Thank You to by_pbh For This Useful Post:
ADMIRAL (21-02-2020), arkantos7 (11-11-2014), buttignol (08-06-2016), mausschieber (11-11-2014), oltjon (16-11-2016), Razor12911 (10-11-2014), sbalykov (04-03-2016), yasserdivar (04-10-2021), _EZEKiEL_ (19-11-2014)
Sponsored Links
  #2  
Old 11-11-2014, 00:36
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 479 Times in 162 Posts
Dante1995 is on a distinguished road
path edit
Reply With Quote
The Following User Says Thank You to Dante1995 For This Useful Post:
Razor12911 (11-11-2014)
  #3  
Old 08-05-2016, 09:21
zaniyah zaniyah is offline
Registered User
 
Join Date: May 2016
Location: earth
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
zaniyah is on a distinguished road
I use. Masked Compression with this its not working. i use optimal on arc.ini
Reply With Quote
  #4  
Old 08-05-2016, 12:00
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,092 Times in 2,295 Posts
Razor12911 is on a distinguished road
you need to get back to the drawing board, in order to use the compressor you used, you need a specific script to make it unpack.
Reply With Quote
  #5  
Old 08-06-2016, 16:58
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 126
Thanks: 101
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
Games with long names like leaving the letter of the installation site

Example C: \ Program Files (x86) \ Rockstar Games \ NARUTO SHIPPUDEN Ultimate Ninja STORM 3 Full Burst
Attached Images
File Type: jpg ex.jpg (84.1 KB, 449 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 02:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com