Stephen,
I think I figured out the problem. I was able to get Check Boxes and Option
Buttons to work on my form by TURNING OFF RECORD SELECTORS on the form. Not
sure why this would make a difference. Perhaps Access attributes the hWnd
of the form to the Record Selector if these are turned on.
In any case, I ran some tests on your Customers form and sure enough, a
Check Box or Option Button will work fine until you turn on Record
Selectors, at which point it stops working.
Also, now that I have these control types working, I notice that your class
walks through all controls on the form, even if they are inside an option
group.
Thanks for your help.
Robert
----------ORIGINAL MESSAGE FOLLOWS-----------
Hello.
I have been trying out the Lebans ToolTip Classes at
http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a
form. The classes I am using are located at
http://www.lebans.com/DownloadFiles/A2kTooltip.zip
So far the classes work perfectly, except that now I need to extend it to
support other controls besides the ones given in the example form. I have
gotten it to work with some controls, but not others. I have noticed that
Stephen is using some control-type specific classes to handle text boxes,
combo boxes, and list boxes, but some controls do not appear to require
these extra classes at all to work properly with the main ToolTip class, and
I can't figure out what the differences are between the control types.
Has anyone tried to extend these classes to work with other control types
such as Option Buttons, Check Boxes, and the like? If so, could you shed
some light on how to approach this?
Also, what am I in for if I try to use these classes with Container
controls, such as an Option Group. Do I need to change the Lebans code to
walk through the sub-controls in the container?
Thanks in advance.
Robert
ro**********@nospam-unforgettable.com
NOTE: If you are not a spammer, you are welcome to remove the "nospam" in my
email address to send me an email. Spammers, don't bother.