I am not able to use api tool tip for datawindow. Are there any special instruction when using with datawindow objects? Other objects on the window are working fine, but datawindow tooltip is not working. Please advise.
Baloon-Help works on DWs if you follow these steps:
window.Open! or dw.Constructor!
-------------------------------
// Save ID in an instance var to update text and rect (code in datawindow)
// .. and be able to remove the tooltip by calling of_RemoveTool
ii_dwID = inv_ToolTip.of_AddTool( dw, "" , 0 )
The Help text for each column/control is stored in the dw's Tag property. If you want line breaks in the baloon-help window, just place a ";" (DOS-style) in the baloon-help text in the Tag value, such as:
Status codes: ;; . Active; . On Leave; . Terminated
which displays as:
-----------------
Status codes:
. Active
. On Leave
. Terminated
-----------------
The Help-text for each control on the window can be broken into multiple lines by using "~r~n" (PowerScript-style). However, for tabular-style DWs, there is a Windows' glitch that does not display the baloon-help for the currently-focussed column and it displays baloon-help on moving the mouse over the column-headers. To tide over this, I'm registering my tabular-DWs with a generic text for all the columns:
ii_DW = inv_Tooltip.of_AddTool( dw, "Enter Amount/Hours/Comments here or for a Row-range from below. ~r~n Comments are REQUIRED for all 'modified' rows.", 0 ) ;
I coded exactly like that but some how tooltip is not working in my appplication. I tried to do the same thing with example application by adding new data window. It works but not consistent. Some times it is poping bubble help and some times it is not. Please advise
If your dw is Tabular-style, you may have some problems and may have to register it the way recommended above that always displays one baloon-help for all the columns in the dw. If not, check to see if you have placed the baloon-help text in the Tag properties of the columns.
I am sorry. I mean to say if ur header height(tabular style) is greater than zero the tool tip is not working as we expected. I am trying to create baloon help for all objects in my datawindow. My data window type is crosstab and i would like to generalize this code for all types of datawindows.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.