Advanced ActiveX Edit Control | CodeGuru

Advanced ActiveX Edit Control

kSet ActiveX Edit Control For creation of the control the library ATL 3.0 and VC++ 6.0 (SP 3.0) was used. kSet Editor control don’t subclass an existing window. Properties Appearance: sets a appearance of control BackColor: the background color of the control BorderColor: the border color of the control. ForeColor: foreground color used to display […]

Written By
CodeGuru Staff
CodeGuru Staff
Dec 28, 1999
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

kSet ActiveX Edit Control

For creation of the control the library ATL 3.0 and VC++ 6.0 (SP 3.0) was used.
kSet Editor control don’t subclass an existing window.

Properties

Appearance: sets a appearance of control
BackColor: the background color of the control
BorderColor: the border color of the control.
ForeColor: foreground color used to display text
ContainerColor: the background color of the coneiner
Enabled: sets a value that determines if the control can receive user
input
Font: the font used for the text
MouseIcon: sets a custom mouse icon
MousePointer: sets a value indicating the type of mouse pointer displayed

Text: a value that determines the text displayed in the editor box
HideSelection: a value that determines whether selected text appears
highlighted when a control loses the focus.
CaretView: sets a type of caret
FontEffect:: sets a value that determines whether or not the 3d
text should be show.
UndoStackSize: sets a size of undo and redo stack
Alignment: sets the alignment of text in the editor box

Methods
AboutBox
: displays the about dialog containing the product name and version.

Events
Change: Indicates the text have changed
Click: Occurs when the user presses and releases the mouse button.
DblClick: Occurs when the user presses and releases a mouse button and
then presses and releases it again over an object
KeyDown: Occurs when the user presses or releases a key on the keyboard.
KeyPress: Occurs when the user presses and releases a key on the
keyboard.
KeyUp: Occurs when the user presses or releases a key on the keyboard.
MouseDown: Occurs when the user presses the mouse button on the control.
MouseUp: Occurs when the user releases the mouse button after pressing it
on the control.
MouseMove: Occurs when the user moves the mouse over the control.
MouseLeave: Occurs when the mouse left the client area of the
control

Downloads

Download demo project – 45 Kb
Download source – 204 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.