Solved

TDHTMLEdit event problem

Posted on 2001-08-02
1
219 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TVirtualStringTree  search using TEdit 7 106
FMX StringGrid1->Canvas->FillRect Problem 3 128
Delphi selector screen 2 70
Reconfigure Delphi Install? 2 46
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now