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. 6 2579
Look through the code and you will see that there are two different
types of Tooltip objects.
1) For controls that have a permanent hWnd(Window handle). These include
List, Combo and TextBox controls.
2) For all other controls that do not have a permanent hWnd and are
therefore lightweight controls.
For all other control's we are really simply using the position and
dimensions of the control(s) to tell the ToolTip object when and what
control we are current hovering over.
So for the types of controls you mentioned, Option Buttons, CheckBox's
etc. they are already supported.. Have you even tried to see if these
controls are supported? I just did and they are.
--
HTH
Stephen Lebans http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message
news:Mr******************@nwrddc01.gnilink.net... 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.
Stephen,
Thanks for getting back to me so quickly.
Hmm... What am I doing wrong? It works for all control types EXCEPT check
boxes and option buttons (radio buttons). Originally I thought it was
because the option buttons were in an option group, but I put one option
button directly on the form, and it doesn't work either. Even tab controls
work (although I haven't figured out yet how to get a separate balloon for
each tab.)
Is there something in the code I need to switch on to enable option buttons
and check boxes? I noticed some SELECT CASE statements in there. Do I need
to add some cases?
Robert
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:83*********************@ursa-nb00s0.nbnet.nb.ca... Look through the code and you will see that there are two different types of Tooltip objects. 1) For controls that have a permanent hWnd(Window handle). These include List, Combo and TextBox controls. 2) For all other controls that do not have a permanent hWnd and are therefore lightweight controls.
For all other control's we are really simply using the position and dimensions of the control(s) to tell the ToolTip object when and what control we are current hovering over. So for the types of controls you mentioned, Option Buttons, CheckBox's etc. they are already supported.. Have you even tried to see if these controls are supported? I just did and they are.
--
HTH Stephen Lebans http://www.lebans.com Access Code, Tips and Tricks Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message news:Mr******************@nwrddc01.gnilink.net... 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.
Stephen,
Thanks for getting back to me so quickly.
Hmm... What am I doing wrong? It works for all control types EXCEPT check
boxes and option buttons (radio buttons). Originally I thought it was
because the option buttons were in an option group, but I put one option
button directly on the form, and it doesn't work either. Even tab controls
work (although I haven't figured out yet how to get a separate balloon for
each tab.)
Is there something in the code I need to switch on to enable option buttons
and check boxes? I noticed some SELECT CASE statements in there. Do I need
to add some cases?
Robert
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:83*********************@ursa-nb00s0.nbnet.nb.ca... Look through the code and you will see that there are two different types of Tooltip objects. 1) For controls that have a permanent hWnd(Window handle). These include List, Combo and TextBox controls. 2) For all other controls that do not have a permanent hWnd and are therefore lightweight controls.
For all other control's we are really simply using the position and dimensions of the control(s) to tell the ToolTip object when and what control we are current hovering over. So for the types of controls you mentioned, Option Buttons, CheckBox's etc. they are already supported.. Have you even tried to see if these controls are supported? I just did and they are.
--
HTH Stephen Lebans http://www.lebans.com Access Code, Tips and Tricks Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message news:Mr******************@nwrddc01.gnilink.net... 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.
You do not need to modify the ToolTips class at all. I mentioned in my
original post that I had tested for CheckBox, Option and ToogleButton
controls. They all worked the very first time.
Are you placing code behind the form's Load event as is shown in the
sample Form in order to initit the desired Tooltips?
' Set the text for the Notes label.
.SetToolText Me.Lablel_Notes, "I am the Notes Label." & vbCrLf &
"This is the second line!"
' Set the text for the CheckBox control.
.SetToolText Me.CheckBox99, "I am the CheckBox control." & vbCrLf &
"This is the second line!"
Have you perhaps made some changes to my code?
--
HTH
Stephen Lebans http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message
news:VH******************@nwrddc01.gnilink.net... Stephen,
Thanks for getting back to me so quickly.
Hmm... What am I doing wrong? It works for all control types EXCEPT
check boxes and option buttons (radio buttons). Originally I thought it was because the option buttons were in an option group, but I put one
option button directly on the form, and it doesn't work either. Even tab
controls work (although I haven't figured out yet how to get a separate balloon
for each tab.)
Is there something in the code I need to switch on to enable option
buttons and check boxes? I noticed some SELECT CASE statements in there. Do
I need to add some cases?
Robert "Stephen Lebans"
<Fo****************************************@linval id.com> wrote in message
news:83*********************@ursa-nb00s0.nbnet.nb.ca... Look through the code and you will see that there are two different types of Tooltip objects. 1) For controls that have a permanent hWnd(Window handle). These
include List, Combo and TextBox controls. 2) For all other controls that do not have a permanent hWnd and are therefore lightweight controls.
For all other control's we are really simply using the position and dimensions of the control(s) to tell the ToolTip object when and
what control we are current hovering over. So for the types of controls you mentioned, Option Buttons,
CheckBox's etc. they are already supported.. Have you even tried to see if
these controls are supported? I just did and they are.
--
HTH Stephen Lebans http://www.lebans.com Access Code, Tips and Tricks Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message news:Mr******************@nwrddc01.gnilink.net... 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.
Stephen,
To answer your question, yes I am using modified code. I wrote a procedure
in a standard module that walks through all of the controls on the form,
extracts the ControlTipText from each control, sets the ToolTipText in your
ToolTip class, and then clears the ControlTipText from the control. I
didn't want to have to write code for every form in my application. I also
added a property to the ToolTip class that allows me to override your
ListBox behaviour with a ControlTip string.
To make sure that the problem wasn't in my code, I retrieved your original
Zip file from your website, created a new form, dropped various controls on
it, and coded it in the manner you use in your Customers form. The problem
persisted; every control type on the form worked EXCEPT Option Buttons and
Check Boxes. So I dropped an Option Button and a Check Box onto your
Customers form and, sure enough, they work.
So I began comparing your form with mine, and finally figured out that if I
turned off Record Selectors in my form, the problem goes away! I can also
reproduce the problem in your Customers form by turning Record Selectors on.
I hope you find this useful.
Robert
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:db*********************@ursa-nb00s0.nbnet.nb.ca... You do not need to modify the ToolTips class at all. I mentioned in my original post that I had tested for CheckBox, Option and ToogleButton controls. They all worked the very first time. Are you placing code behind the form's Load event as is shown in the sample Form in order to initit the desired Tooltips?
' Set the text for the Notes label. .SetToolText Me.Lablel_Notes, "I am the Notes Label." & vbCrLf & "This is the second line!"
' Set the text for the CheckBox control. .SetToolText Me.CheckBox99, "I am the CheckBox control." & vbCrLf & "This is the second line!"
Have you perhaps made some changes to my code?
--
HTH Stephen Lebans http://www.lebans.com Access Code, Tips and Tricks Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message news:VH******************@nwrddc01.gnilink.net... Stephen,
Thanks for getting back to me so quickly.
Hmm... What am I doing wrong? It works for all control types EXCEPT check boxes and option buttons (radio buttons). Originally I thought it was because the option buttons were in an option group, but I put one option button directly on the form, and it doesn't work either. Even tab controls work (although I haven't figured out yet how to get a separate balloon for each tab.)
Is there something in the code I need to switch on to enable option buttons and check boxes? I noticed some SELECT CASE statements in there. Do I need to add some cases?
Robert "Stephen Lebans" <Fo****************************************@linval id.com> wrote in message news:83*********************@ursa-nb00s0.nbnet.nb.ca... Look through the code and you will see that there are two different types of Tooltip objects. 1) For controls that have a permanent hWnd(Window handle). These include List, Combo and TextBox controls. 2) For all other controls that do not have a permanent hWnd and are therefore lightweight controls.
For all other control's we are really simply using the position and dimensions of the control(s) to tell the ToolTip object when and what control we are current hovering over. So for the types of controls you mentioned, Option Buttons, CheckBox's etc. they are already supported.. Have you even tried to see if these controls are supported? I just did and they are.
--
HTH Stephen Lebans http://www.lebans.com Access Code, Tips and Tricks Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message news:Mr******************@nwrddc01.gnilink.net... > 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. > >
Thanks for figuring this out Robert. I will place your findings on the
ToolTip Web page.
When I get a chance I will go back and see where the code is failing due
to the RecordSelector prop being enabled.
:-)
--
HTH
Stephen Lebans http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message
news:_o******************@nwrddc02.gnilink.net... Stephen,
To answer your question, yes I am using modified code. I wrote a
procedure in a standard module that walks through all of the controls on the
form, extracts the ControlTipText from each control, sets the ToolTipText in
your ToolTip class, and then clears the ControlTipText from the control. I didn't want to have to write code for every form in my application. I
also added a property to the ToolTip class that allows me to override your ListBox behaviour with a ControlTip string.
To make sure that the problem wasn't in my code, I retrieved your
original Zip file from your website, created a new form, dropped various
controls on it, and coded it in the manner you use in your Customers form. The
problem persisted; every control type on the form worked EXCEPT Option Buttons
and Check Boxes. So I dropped an Option Button and a Check Box onto your Customers form and, sure enough, they work.
So I began comparing your form with mine, and finally figured out that
if I turned off Record Selectors in my form, the problem goes away! I can
also reproduce the problem in your Customers form by turning Record
Selectors on. I hope you find this useful.
Robert
"Stephen Lebans"
<Fo****************************************@linval id.com> wrote in message
news:db*********************@ursa-nb00s0.nbnet.nb.ca... You do not need to modify the ToolTips class at all. I mentioned in
my original post that I had tested for CheckBox, Option and
ToogleButton controls. They all worked the very first time. Are you placing code behind the form's Load event as is shown in the sample Form in order to initit the desired Tooltips?
' Set the text for the Notes label. .SetToolText Me.Lablel_Notes, "I am the Notes Label." & vbCrLf & "This is the second line!"
' Set the text for the CheckBox control. .SetToolText Me.CheckBox99, "I am the CheckBox control." &
vbCrLf & "This is the second line!"
Have you perhaps made some changes to my code?
--
HTH Stephen Lebans http://www.lebans.com Access Code, Tips and Tricks Please respond only to the newsgroups so everyone can benefit.
"Robert" <ro**********@nospam-unforgettable.com> wrote in message news:VH******************@nwrddc01.gnilink.net... Stephen,
Thanks for getting back to me so quickly.
Hmm... What am I doing wrong? It works for all control types
EXCEPT check boxes and option buttons (radio buttons). Originally I thought it
was because the option buttons were in an option group, but I put one option button directly on the form, and it doesn't work either. Even tab controls work (although I haven't figured out yet how to get a separate
balloon for each tab.)
Is there something in the code I need to switch on to enable
option buttons and check boxes? I noticed some SELECT CASE statements in there.
Do I need to add some cases?
Robert "Stephen Lebans" <Fo****************************************@linval id.com> wrote in message news:83*********************@ursa-nb00s0.nbnet.nb.ca... > Look through the code and you will see that there are two
different > types of Tooltip objects. > 1) For controls that have a permanent hWnd(Window handle). These include > List, Combo and TextBox controls. > 2) For all other controls that do not have a permanent hWnd and
are > therefore lightweight controls. > > For all other control's we are really simply using the position
and > dimensions of the control(s) to tell the ToolTip object when and what > control we are current hovering over. > So for the types of controls you mentioned, Option Buttons, CheckBox's > etc. they are already supported.. Have you even tried to see if these > controls are supported? I just did and they are. > > > -- > > HTH > Stephen Lebans > http://www.lebans.com > Access Code, Tips and Tricks > Please respond only to the newsgroups so everyone can benefit. > > > "Robert" <ro**********@nospam-unforgettable.com> wrote in
message > news:Mr******************@nwrddc01.gnilink.net... > > 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. > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Carlos Ribeiro |
last post by:
Hello all,
I'm posting this to the list with the intention to form a group of
people interested in this type of solution. I'm not going to spam the
list with it, unless for occasional and...
|
by: Stephen |
last post by:
Is it possible to add a tooltip in the column of a Datagrid. Can someone
please show me how I would do this for the datagrid column below. Thanks for
any help anyone can give me.
Here is the...
|
by: Robert |
last post by:
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...
|
by: Alex Wisnoski |
last post by:
I am trying to adapt Lebans' ReportUtilities to export reports (to
preserve formatting) from an Access 97 application. I have made the
reference to his mde and copied the modules into my db. I...
|
by: Mark Thomas |
last post by:
Delighted to find Lebans textbox justification but...
....after you have downloaded the sample database, with its module,
what do you do to make your own text boxes in your own database have...
|
by: Bob Quintal |
last post by:
Hi,
I have an application where I need to show detailed information
about items in a dropped-down combobox.
I have been studying Mr Lebans' examples called Tooltip.mdb and...
|
by: Craig G |
last post by:
what way do you code it? i tried the following but it wouldnt display it
lblAdd_info is a hidden field in the cell itself that contains the data i
want to display in the tooltip text. i added the...
|
by: Hexman |
last post by:
Hello All,
I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm
using some VB6 code, .Net2003 code,...
|
by: walve_wei |
last post by:
<1>use the D3D control panel, enable the debug DLL and maximum
validation,for D3D control panel ,you need to install the directx sdk.
<2>Start up the debug monitor (<MSVC install...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
| | |