Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Picturebutton Powertiptext problem

86 views
Skip to first unread message

Martin

unread,
Nov 3, 2009, 3:28:39 PM11/3/09
to
I am using a Picturebutton to show up a text as a tooltip.
At runtime I set the Powertiptext property dynamically like this

pb_button.Powertiptext = "Description1"

... on mouseover "Description1" pops up

pb_button.Powertiptext = "Description2"

... on mouseover "Description2" pops up

In Powerbuilder 10.5.2. 7699 this works fine

But now we have an older project which is under PB 10.0. 5064.

In this version setting the Powertiptext-property at runtime seems to stop
the tooltip function of the picture button.
Only the tiptext set at design time will show up:

Designtime: Powertiptext in the Painter = "Description1"

Runtime:
... on mouseover "Description1" pops up

pb_button.Powertiptext = "Description2"

... on mouseover NOTHING pops up

Messagebox("", pb_button.Powertiptext) says "Description2"

That means that the property is set correctly, but tooltip function stops
working.

Is it a bug in 10.0. 5064?
Does anybody know how to work around this (Upgrading is not possible at this
time)

thank you


Martin

unread,
Nov 4, 2009, 1:50:46 AM11/4/09
to

Solved the problem! - a simple 'pb_button.enabled = true' in the
mousemove-event did it.

"Martin" <m.kalt...@powersoftware.at> schrieb im Newsbeitrag
news:4af09277@forums-1-dub...

Ivaylo Ivanov

unread,
Nov 4, 2009, 3:44:42 AM11/4/09
to
And have you tried with char(13) + char(10) ?
Like:

pb_button.PowerTipText = "Hello" + char(13) + char(10) + "There" + char(13)
+ char(10) + "Again"

BTW what OS are you using? WinXP had some general problem with the
tooltips - if you position on a control and stay upon it watching its
tooltip until it disappears, after that if you leave with the mouse (not
upon another tooltipped control) and return the mouse upon the same control,
no tooltip will be shown at all.

Regards,
Ivaylo

"Martin" <m.kalt...@powersoftware.at> wrote in message
news:4af12446$1@forums-1-dub...

Chris Pollach

unread,
Nov 4, 2009, 7:28:18 AM11/4/09
to

Yes .. that was a known bug in the early PB 10.0 series.

--
Regards ... Chris
ISUG - NA RUG Director
Blog: http://chrispollach.pbdjmagazine.com
SourceForge: http://sourceforge.net/projects/stdfndclass


"Martin" <m.kalt...@powersoftware.at> wrote in message

news:4af09277@forums-1-dub...

0 new messages