Hi, I have a very tiny yet very annoying problem. I'm sure I'm doing something wrong as the behaviour is identical when working on (grid) datawindows between PB 11.5 and PB 2017 R2.
I am setting up several Tooltips on a few fields on the datawindow, however no matter what properties I set for their Text Color and Background Color, those colours at run-time are always the same:
As it can be seen from the screenshot above, I am setting the Text Color property to anything - "Link Hover", "Red", I even click on the little customise-"equals" button next to it and I put in a boolean condition if(1=1, RGB(255,0,0), RGB(255,0,0)) to make sure that PB always takes red. Nothing. No matter how I try it, at runtime, tooltip's background is always of grey-yellow-ish default (that "Tooltip default background Color", 134217752, is).
I tried adding these lines of code to the window's open event to see if I can catch what is being passed:
ls_data = dw_browser.Describe("fieldname.Tooltip.Backcolor")
dw_browser.Object.fieldname.Tooltip.Backcolor = "Yellow" (or RGB(255,255,0) )
First line returns correctly what was the background colour set to anyway. Explicit re-setting in second line makes no difference.
I even tried changing the DW at the source level. To start with, we have default values in the line for that field are
... tooltip.backcolor="134217752" ... tooltip.textcolor="0"...
OK, so I manually change that to
... tooltip.backcolor="65535" ... tooltip.textcolor="255"...
Ran it - the same.
I notice the property
Even though I can't find this property from the interface, just for a laugh I change it to 0 rather than 1 - no change.
But this is curious. I go (via PB) to datawindow and Tooltip properties, I set the Text Color manually to "Red", and I add condition if(1=1, "Red", "Red"), and I do the same for Background Color, only if(1=1, "Yellow", "Yellow"), it makes no difference at the runtime, but in the DW source:
... tooltip.backcolor="65535~tif(1=1, ~"Yellow~", ~"Yellow~")" ... tooltip.textcolor="255~tif(1=1, ~"Red~", ~"Red~")"... tooltip.transparency="1~tif(1=1, ~"Yellow~", ~"Yellow~")"...
What the heck is this tooltip.transparency and why is it taking the condition of Background Color property?
Anyway, I'm probably doing or not seeing something incredibly simple and stupid - I'd appreciate if anyone can draw it on the blackboard for me.