Here is a little program that shows the problem. Calling oControl:showTooltip() does not force the tooltip to be displayed. If we can find a way to do this, the problem will be solved. I think this would be useful in other situations also. For instance, I would use it to force a tooltip to be displayed when the user makes an invalid entry.
James
- Code: Select all Expand view RUN
- include "fivewin.ch"
function main()
local oDlg, oGet, oBtn, cName:="James"
define dialog oDlg title "Test Tooltip"
@ 5,5 get oGet var cName of oDlg pixel
oGet:cTooltip:= "Test tooltip"
// Shows that you cannot force the tooltip to be displayed.
@ 20,5 button oBtn prompt "Show Tooltip" ;
action oGet:showToolTip() pixel
activate dialog oDlg
return nil