InfoUser,
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 )
ue_MouseMove -> pbm_DwnMouseMove!
---------------------------------
inv_Tooltip.of_Tooltip( This, dwo, ii_DWID, is_Column ) ;
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 ) ;
Hope this helps...
---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group