|
#1
|
||||
|
||||
|
Add icon ready page
Friends adding the menu icon in the start ready page
I do not know how to add the function UpdateReadyMemo Could someone for an example of how to add Example below as I use IconCB := TNewCheckBox.Create(WizardForm); with IconCB do begin Parent := WizardForm.SelectTasksPage; SetBounds(0,215,300,20); Caption := ExpandConstant('{cm:CreateDesktopIcon}'); Checked:=True; end; imagem.jpg Thank you |
| Sponsored Links |
|
#2
|
||||
|
||||
|
If you want just "Create a desktop icon" in the Ready Memo with your personal IconCB:
Code:
[Tasks]
//Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:Icons}";
Name: "groupicon" ; Description: "{cm:CreateGroupIcon}"; GroupDescription: "{cm:Icons}";
[CustomMessages]
Icons=Icons:
CreateDesktopIcon=Create a desktop icon
CreateGroupIcon=Create a startmenu icon
[#Code]
var
IconCB: TNewCheckBox;
function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo,
MemoComponentsInfo, MemoGroupInfo, MemoTasksInfo: String): String;
var
S1, S2: String;
begin
S1 := '';
S2 := '';
S1 := S1 + MemoDirInfo + NewLine + NewLine;
if IconCB.Checked then
S2 := #32#32#32#32#32#32#32#32#32+CustomMessage('CreateDesktopIcon');
S1 := S1 + MemoTasksInfo + NewLine + S2 + NewLine;
Result := S1;
end;
Code:
[#Code] Procedure CurPageChanged(CurPageID: Integer); begin if CurPageID = wpReady then IconCB.Show else IconCB.Hide; end; Code:
Procedure InitializeWizard();
begin
IconCB := TNewCheckBox.Create(WizardForm);
with IconCB do
begin
Parent := WizardForm.ReadyMemo;
SetBounds(25,150,150,15);
Caption:=CustomMessage('CreateDesktopIcon');
Checked:=True;
end;
end;
|
| The Following User Says Thank You to JRD! For This Useful Post: | ||
buttignol (01-09-2016) | ||
|
#3
|
||||
|
||||
|
Thank JRD! but it is to appear "Create an icon on the Desktop" on UpdateReadyMemo
Example: Image Capturar3.jpg Create an icon on the Desktop. together with Start Menu folder destination and additional tasks Last edited by buttignol; 01-09-2016 at 16:06. |
|
#4
|
||||
|
||||
|
Just add:
Code:
[CustomMessages]
Icons=Icons:
[#Code]
function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo,
MemoComponentsInfo, MemoGroupInfo, MemoTasksInfo: String): String;
var
S1, S2: String;
begin
S1 := '';
S2 := '';
S1 := S1 + MemoDirInfo + NewLine + NewLine;
if IconCB.Checked then
S2 := #32#32#32#32#32#32+CustomMessage('Icons')+ NewLine + #32#32#32#32#32#32#32#32#32+CustomMessage('CreateDesktopIcon');
S1 := S1 + MemoTasksInfo + NewLine + S2 + NewLine;
Result := S1;
end;
|
|
#5
|
||||
|
||||
|
|
#6
|
||||
|
||||
|
Resolved That's what I wanted
Thank JRD! for their work to help |
|
#7
|
||||
|
||||
|
You're welcome.
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Transformers: Rise of the Dark Spark 2xDVD5 *GBB+srep+FreeArc lzma* | ahmetbtmn | PC Games - CD/DVD Conversions | 6 | 02-07-2014 13:46 |
| Anyone know why some PS2 games waste memorycard space needlessly? | Cyber Akuma | PS2 Games | 8 | 09-11-2006 16:54 |
| Icon is always the same | _SpRoKaT_ | CD/DVD Copy Protections & Utilities | 1 | 04-07-2001 09:07 |
| I have read page by page.... but 1 more question... thanks! | Ryu1 | DC Games | 2 | 19-12-2000 09:04 |