View Single Post
  #1  
Old 30-12-2013, 09:56
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
no bro i need like this, but it not working.

procedure AboutButtonOnClick(Sender: TObject);
begin

If CurPageID=wpWelcome then
begin
MsgBox('Hello.', mbInformation, MB_OK);
end;

If CurPageID=wpSelectDir then
begin
MsgBox('Hello.', mbInformation, MB_OK);
end;

end;
Code:
[code]
var
  PageID: integer;

procedure CurPageChanged(CurPageID: integer);
begin
  PageID:=CurPageID;
end;

procedure AboutButtonOnClick(Sender: TObject);
begin
case PageID of
  wpWelcome: MsgBox('wpWelcome', mbInformation, MB_OK);
  wpLicense: MsgBox('wpLicense', mbInformation, MB_OK);
  wpPassword: MsgBox('wpPassword', mbInformation, MB_OK);
  wpInfoBefore: MsgBox('wpInfoBefore', mbInformation, MB_OK);
  wpUserInfo: MsgBox('wpUserInfo', mbInformation, MB_OK);
  wpSelectDir: MsgBox('wpSelectDir', mbInformation, MB_OK);
  wpSelectComponents: MsgBox('wpSelectComponents', mbInformation, MB_OK);
  wpSelectProgramGroup: MsgBox('wpSelectProgramGroup', mbInformation, MB_OK);
  wpSelectTasks: MsgBox('wpSelectTasks', mbInformation, MB_OK);
  wpReady: MsgBox('wpReady', mbInformation, MB_OK);
  wpPreparing: MsgBox('wpPreparing', mbInformation, MB_OK);
  wpInstalling: MsgBox('wpInstalling', mbInformation, MB_OK);
  wpInfoAfter: MsgBox('wpInfoAfter', mbInformation, MB_OK);
  wpFinished: MsgBox('wpFinished', mbInformation, MB_OK);
end;
end;
Reply With Quote
The Following 2 Users Say Thank You to altef_4 For This Useful Post:
papas (02-09-2016), y_thelastknight (30-12-2013)
Sponsored Links