Tooltip in cWebColumnImage
Dear all
I would like to define an tooltip for a cWebColumnImage via
Procedure OnDefineTooltip String ByRef sTooltip
such that every row has a different tooltip. However, if I hover over the <image> element, the tooltip does not appear. If I hover over the <td> element where there is no <image> element below, the tooltip appears. I assume the <image> element overrides events of the <td> element.
Best
Marco
BlackBurn Group
Re: Tooltip in cWebColumnImage
If you set pbDynamic to true on your cWebColumnImage and implement OnDefineImages you can provide a tooltip for each image.
Re: Tooltip in cWebColumnImage
Is this approach just an workaround for the issue he have posted , and you have aknowledge the issue to be fixed later ?
Or is this the proper way ? and [B]OnDefineTooltip [/B]should not be used for this class ?
If the later, documentation should reflect that.
It would be nice if both methods could work.
Re: Tooltip in cWebColumnImage
For now this is [I]the [/I]way to do it. I have logged it to look into later, but it might very well end up being a DOC thing...
Re: Tooltip in cWebColumnImage
Re: Tooltip in cWebColumnImage
I have implemented OnDefineImages, but the onmouseover event in the <img> element does not trigger the appearance of the tooltip.
Re: Tooltip in cWebColumnImage
Did you also set pbDynamic to true on the column? I just tested by altering DemoColumnTypes example of the 19.1 WebOrder like below and I do see the tooltip (in FireFox):
[code]
Object oDynamicImageCol is a cWebColumnImage
Set piWidth to 20
Set pbDynamic to True
Set psCaption to "Icons"
Set pbServerOnClick to True
Procedure OnDefineImages
Forward Send OnDefineImages
Send AddImage "Images/Order.png" ("Order.." + Trim(Customer.Name))
If (Customer.Balance > 4000) Begin
Send AddImage "Images/CDRom.png" "CD-Rom.."
End
End_Procedure
Procedure OnClick String sImage String sRowId
Forward Send OnClick sImage sRowId
Send ShowInfoBox ("You've clicked on image '" + sImage + "'!")
End_Procedure
End_Object
[/code]
Re: Tooltip in cWebColumnImage
I see, the Image has its own tooltip which can be defined for every <img> element and OnDefineTooltip defines the tooltip for the rest of the <td> element. Everything works as it should.
I just don't really see the purpose of the OnDefineTooltip for cWebColumnImage if the images also have a separate tooltip, especially if the <img> is as large as the <td> element.
Many thanks
Re: Tooltip in cWebColumnImage
I believe onDefineTooltip is for general usage.. it's defined in base cWebColumn class..
But when working with images.. (cWebColumnImage) sub-class,,, this property should not be used, but instead the specific funcionlity provided by it under DefineImage method.
The help just not let this clear.. which harm said they are going to review...