Solved

TDHTMLEdit event problem

Posted on 2001-08-02
1
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

624 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