HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Capturing Cursor Movement Within the Control
Posted by: Simon (---.adsl.xtra.co.nz)
Date: Thursday, 06-Jul-2006, 01:53:03

Hi There

I am attempting to use the control as part of an email form in a Windows appplication. What I would like to be able to do is to cpature whenedver the cursor moves within the control whilst in design and to use update a font list and font size list when a change occurs. I have been uable to capture the arrow keys at the control or form level. Does anyone have any suggestions as to how I night achieve a result.

Regards

Simon

Re: Capturing Cursor Movement Within the Control
Posted by: Tim (---.gotadsl.co.uk)
Date: Thursday, 06-Jul-2006, 07:25:48

You can get it in the PreProcessMessage for the control. Eg:

if (k== Keys.Right)
{
Debug.WriteLine("Right arrow");
}

Tim

Re: Capturing Cursor Movement Within the Control
Posted by: Simon (---.adsl.xtra.co.nz)
Date: Friday, 07-Jul-2006, 04:22:24

Thanks for your help. I couldn't get it to do what I wanted as I needed the method to run after the cursor had been moved by the arrow keys. I ended up using a timer control as a work around that upadtes my tool bar values to match the seelected font at regualr time intervals. Not ideal but it works.

Cheers

Simon

Re: Capturing Cursor Movement Within the Control
Posted by: ramida (---.cfr.ncsu.edu)
Date: Friday, 07-Jul-2006, 14:28:18

Use the control's UpdateUI event to update your toolbar. It catches both mouse and arrow key movements.

HTH, Audimar



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
pHE6w
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.