Advertisement
2_2002-2004 Custom Controls/ Forms/ Menus #118879

AutoText/Combo ActiveX Control

Autotext is an extended API implementation of Visual Basic's Combo Box. The control can be used as an autotype combobox or an autotype textbox. This code contains a proper implementation of an API timer class as well, using soft references to avoid GPFs. Allows custom context menus and allows the default context menus to be disabled. Raises a Menu_Click event which specifies which menu item was clicked. Has mouse down, mouse move and mouse up events. Code shows how to create a mouse hook. Switchboard code insures that the proper control recieves the right notifications. Has a SyncByItemData function to select an entry by an ItemData entry. Has a FillWithRecSet function to enable it to be filled directly with a recordset. You can specify the ordinal postion within the recordset that you want the drop-down list to be filled with. If you do not require the ItemData to be set, you must specify the optional default ordinal position of one to be zero. Implements an extended interface to make the control faster than the default implementation. eg. Dim eboName As IAutoText Set eboName = cboName.Object I have borrowed many snippets of code from this site an thought that it was my turn to share one of my gems with the people of Planet Source Code. This ActiveX is being used by many programs and has been thouroughly tested for flaws. My thanks to all the people who have contributed to Planet Source Code. PS. Vote if you want to.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
Upload
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine