Solved

TDHTMLEdit event problem

Posted on 2001-08-02
1
221 Views
Last Modified: 2010-04-06
TDHTMLEdit event problem

How to add Onmousemove event to TDHTMLEdit. It has just Ononmousemove event :

procedure TForm1.DHTMLEdit1onmousemove(Sender: TObject);

But I want that it is like that :

procedure TForm1.DHTMLEdit1MouseMove(Sender: TObject; Shift: TShiftState; X,  Y: Integer);
-----------------------------------------------
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;

type
  TForm1 = class(TForm)
    Panel1: TPanel;
    DHTMLEdit1: TDHTMLEdit;
    procedure DHTMLEdit1onmousemove(Sender: TObject);
    procedure Panel1MouseMove(Sender: TObject; Shift: TShiftState; X,
      Y: Integer);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.DHTMLEdit1onmousemove(Sender: TObject);
begin

end;

procedure TForm1.Panel1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin

end;

end.
0
Comment
Question by:gfdas
1 Comment
 
LVL 2

Accepted Solution

by:
vbmn earned 150 total points
ID: 6388335
try something like that :

type
 TMyEventProc = procedure(Sender: TObject; SomeString: String) of Object;

 TMyControl = class(TCustomControl)
 private
   FMyEvent: TMyEventProc;
 protected
   procedure MouseMove(Shift: TShiftState; X, Y: Integer); override;
 published
   property MyEvent: TMyEventProc read FMyEvent write FMyEvent;
 end;
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question