Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to implement bubble help in pow 1

Status
Not open for further replies.

infouser

MIS
Sep 10, 2003
6
US
How to implement bubble help in powerbuilder? any utilities?
 
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.


 
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
 
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

 
InfoUser,

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.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
My datawindow is crosstab and it has 15 static columns. I have placed the tags for all columns.
 
Datawindow API tool tip is working only when the header band width is zero. Do u have any comments on this?

infouser
 
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.

The example provided has the header height zero.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top