Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit HelpView;
- interface
- uses
- Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
- Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
- Vcl.Imaging.pngimage, Vcl.ExtCtrls;
- type
- THelpFrame = class(TFrame)
- GroupBox1: TGroupBox;
- GroupBox2: TGroupBox;
- GroupBox3: TGroupBox;
- PageControl1: TPageControl;
- Image1: TImage;
- Label1: TLabel;
- Image2: TImage;
- Label2: TLabel;
- Label3: TLabel;
- Image3: TImage;
- Image4: TImage;
- Label4: TLabel;
- Image5: TImage;
- Label5: TLabel;
- Image6: TImage;
- Label6: TLabel;
- Label7: TLabel;
- Image7: TImage;
- Shape1: TShape;
- TabSheet1: TTabSheet;
- TabSheet2: TTabSheet;
- TabSheet3: TTabSheet;
- TabSheet4: TTabSheet;
- TabSheet5: TTabSheet;
- TabSheet6: TTabSheet;
- TabSheet7: TTabSheet;
- Label8: TLabel;
- Label9: TLabel;
- Label10: TLabel;
- Label11: TLabel;
- Label12: TLabel;
- Label13: TLabel;
- Label14: TLabel;
- procedure Label1Click(Sender: TObject);
- procedure Label2Click(Sender: TObject);
- procedure Label3Click(Sender: TObject);
- procedure Label4Click(Sender: TObject);
- procedure Label5Click(Sender: TObject);
- procedure Label6Click(Sender: TObject);
- procedure Label7Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- implementation
- {$R *.dfm}
- Procedure FillShape(Shape : TShape; Sender : TObject);
- begin
- Shape.Visible := True;
- Shape.Top := (Sender as TLabel).Top + 50;
- Shape.Width := (Sender as TLabel).Width;
- end;
- procedure THelpFrame.Label1Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 0;
- end;
- procedure THelpFrame.Label2Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 1;
- end;
- procedure THelpFrame.Label3Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 2;
- end;
- procedure THelpFrame.Label4Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 3;
- end;
- procedure THelpFrame.Label5Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 4;
- end;
- procedure THelpFrame.Label6Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 5;
- end;
- procedure THelpFrame.Label7Click(Sender: TObject);
- begin
- FillShape(Shape1, Sender);
- PageControl1.ActivePageIndex := 6;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement