Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20-07-2014, 02:51
Andrey167's Avatar
Andrey167 Andrey167 is offline
Registered User
 
Join Date: Nov 2013
Location: Azerbaycan
Posts: 134
Thanks: 208
Thanked 124 Times in 46 Posts
Andrey167 is on a distinguished road
Help

Hello!
I apologize in advance for my English!
I need your help.
I would like to create a form with information as to repack Black Box
but I can not impose on the form of pictures and text to create one change depending on the language setting.
Here is my code

Quote:
[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application

[Files]
Source: "ReadMeRu.rtf"; DestDir: "{tmp}"; Flags: ignoreversion

[code]
var
InfoForm: TSetupForm;
Info, Ok: TButton;
InfoBefore: TRichEditViewer;
ReadmeRu,ReadmeEn: AnsiString;

procedure Okclick(Sender: TObject);
begin
InfoForm.Close;
WizardForm.Enabled:=True;
end;

procedure FormClose(Sender: TObject; var Action: TCloseAction);
begin
WizardForm.Enabled:=true;
end;

procedure InfoClick(Sender: TObject);
begin
InfoForm:= CreateCustomForm();
with InfoForm do begin
ClientWidth := ScaleX(350);
ClientHeight := ScaleY(250);
CenterInsideControl(WizardForm, False);
Caption:='';
onClose:=@FormClose;
Ok:=tbutton.create(InfoForm)
with Ok do begin
SetBounds(ScaleX(290),ScaleY(210),ScaleX(50),Scale Y(30));
parent:=InfoForm;
Caption:='OK';
onclick:=@OKclick;
end;
InfoBefore:= TRichEditViewer.Create(InfoForm);
with InfoBefore do begin
SetBounds(ScaleX(10),ScaleY(10),ScaleX(330),ScaleY (180));
Parent:= InfoForm;
// ParentColor := True;
// Color:= WizardForm.Color;
// BorderStyle:= bsNone;
ScrollBars:= ssVertical;
ReadOnly:= true;
RTFText:= ReadmeRu
end;
InfoForm.Show;
WizardForm.Enabled:=false;
end;
end;

procedure InitializeWizard;
begin
ExtractTemporaryFile('ReadMeRu.rtf');
LoadStringFromFile(ExpandConstant('{tmp}')+'\ReadM eRu.rtf', ReadmeRu);
Info:=tbutton.create(WizardForm);
with Info do begin
Parent:=WizardForm;
SetBounds(ScaleX(20),ScaleY(325),ScaleX(45),ScaleY (30));
Caption:='x';
OnClick:=@InfoClick;
end;
end;
Reply With Quote
Sponsored Links
  #2  
Old 20-07-2014, 06:43
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
I do not see images
Reply With Quote
  #3  
Old 20-07-2014, 08:06
Andrey167's Avatar
Andrey167 Andrey167 is offline
Registered User
 
Join Date: Nov 2013
Location: Azerbaycan
Posts: 134
Thanks: 208
Thanked 124 Times in 46 Posts
Andrey167 is on a distinguished road
Quote:
Originally Posted by Dante1995 View Post
I do not see images
Reply With Quote
  #4  
Old 20-07-2014, 08:49
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
is a simple text .RTF, all you need to view a file ReadMe.rtf
Reply With Quote
  #5  
Old 20-07-2014, 09:01
Andrey167's Avatar
Andrey167 Andrey167 is offline
Registered User
 
Join Date: Nov 2013
Location: Azerbaycan
Posts: 134
Thanks: 208
Thanked 124 Times in 46 Posts
Andrey167 is on a distinguished road
Quote:
Originally Posted by Dante1995 View Post
is a simple text .RTF, all you need to view a file ReadMe.rtf
yes I know but I do not know how to make 2 Dunn lingual text
Reply With Quote
  #6  
Old 20-07-2014, 14:36
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Ok, I don't think there is something wrong with your English but now that you mentioned that your English might not seem good it tricked my brain into opening suggestions on what you are trying to ask even though that is not necessary. So anyways. If you want something multi language, it can be done in two ways. It either from the language select dialog or from inside the application itself. Just pick one option.
Just take note, language select dialog is simple and from the application is hard.
Reply With Quote
  #7  
Old 21-07-2014, 00:07
Andrey167's Avatar
Andrey167 Andrey167 is offline
Registered User
 
Join Date: Nov 2013
Location: Azerbaycan
Posts: 134
Thanks: 208
Thanked 124 Times in 46 Posts
Andrey167 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Ok, I don't think there is something wrong with your English but now that you mentioned that your English might not seem good it tricked my brain into opening suggestions on what you are trying to ask even though that is not necessary. So anyways. If you want something multi language, it can be done in two ways. It either from the language select dialog or from inside the application itself. Just pick one option.
Just take note, language select dialog is simple and from the application is hard.
I would like at least one example for 2 languages
Sorry for my english
Reply With Quote
  #8  
Old 25-07-2014, 05:56
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
perhaps better to duplicate a lot of math



Last edited by Dante1995; 28-12-2014 at 20:54.
Reply With Quote
  #9  
Old 25-07-2014, 06:46
Andrey167's Avatar
Andrey167 Andrey167 is offline
Registered User
 
Join Date: Nov 2013
Location: Azerbaycan
Posts: 134
Thanks: 208
Thanked 124 Times in 46 Posts
Andrey167 is on a distinguished road
Quote:
Originally Posted by Dante1995 View Post
perhaps better to duplicate a lot of math
A great example can throw?
Reply With Quote
Reply


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 10:13.


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