Hi there!
I've got a Delphi7 and i wanna to start with a small project. However I can't do that, so I need help
I've got two sources:
Unit1.pas
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw_TLB, StdCtrls;
type
TForm1 = class(TForm)
WebBrowser1: TWebBrowser;
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
and
Unit1.dfm
object Form1: TForm1
Left = 294
Top = 226
Width = 696
Height = 376
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object WebBrowser1: TWebBrowser
Left = 160
Top = 136
Width = 300
Height = 160
TabOrder = 0
ControlData = {
4C000000021F0000891000000000000000000000000000000000000000000000
000000004C000000000000000000000001000000E0D057007335CF11AE690800
2B2E126208000000000000004C0000000114020000000000C000000000000046
8000000000000000000000000000000000000000000000000000000000000000
00000000000000000100000000000000000000000000000000000000}
end
object Button1: TButton
Left = 80
Top = 64
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 1
end
end
I need only this:
1. When I click on Button1 it must close my application
2. The TWebBrowser:
- it's url must be page.htm located in the same folder where application is located
- it can't has a context menu
- i need to deny drag/drop on this object
- and i need to deny keyboard shortcuts like F5, Alt + arrow etc.
Please, can you do this for me.
It will really help me.
Thanx