This library provides access to three Help facilities on the desktop. These are F1 control help, control popup ToolTips and the "What's This?" button for dialogues.
The zip includes library, help, demo and source code for merging.
Thanks Agrahan for your library, now, I can organise better my Hardware application: It's a sort of map with more than 1000 small control button linked to a data base, and I like this new feature to pass the mouse tip over the controls to know its name or other information.
Just a question: is there any possibility to pass the text of the tooltip to a string? I want to do this without click in the control where I am passing the tip of the mouse.
Thanks in advance
I'm trying to obtain the text inside the tooltip at the run time, so I don't know the name of the control: Something like that:
For ind=0 To table1.RowCount-1
one_function(x,y)
AddButton ("Form1", "But"&ind,x,y, 8,8,nombre_boton)
AddEvent ("But"&ind, Click, "MySub")
ToolTip.SetToolTip("But"&ind,table1.Cell("cod",ind ))
Next ind
Sub ToolTip_Popup
stringX=tooltip.GetToolTip ( control??????)
End Sub
You need to set a HelpID for each control using the control name and retrieve it in the event.
Code:
For ind=0To table1.RowCount-1 one_function(x,y) AddButton ("Form1", "But"&ind,x,y, 8,8,nombre_boton) AddEvent ("But"&ind, Click, "MySub") ToolTip.SetToolTip("But"&ind,table1.Cell("cod",ind)) Tooltip.SetID("But"&ind,"But"&ind) ' use the control name as an ID Next ind
Sub ToolTip_Popup stringX=toolTtip.GetToolTip (ToolTip.HelpID)) ' retrieve the control then its tool tip End Sub
I have begun 'playing' with the HelpDesktop and The ControlExDesktop libraries.
I am writing a desktop version of my DynSim program and have at the moment TollbarButtons and Imagebuttons. I would like to get TooltipTexts on these buttons and use only one type of buttons, either TollbarButtons or TollStripButtons.
How can I get TooltipTexts on these objects ?
I tried it with the Door library, but am I missing something.