Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Picturebutton Powertiptext problem

4 posts in Objects Last posting was on 2009-11-04 12:28:18.0Z
Martin Posted on 2009-11-03 20:28:39.0Z
From: "Martin" <m.kaltenboeck@powersoftware.at>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Picturebutton Powertiptext problem
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af09277@forums-1-dub>
Date: 3 Nov 2009 12:28:39 -0800
X-Trace: forums-1-dub 1257280119 10.22.241.152 (3 Nov 2009 12:28:39 -0800)
X-Original-Trace: 3 Nov 2009 12:28:39 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9942
Article PK: 737079

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 Posted on 2009-11-04 06:50:46.0Z
From: "Martin" <m.kaltenboeck@powersoftware.at>
Newsgroups: sybase.public.powerbuilder.objects
References: <4af09277@forums-1-dub>
Subject: Re: Picturebutton Powertiptext problem
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af12446$1@forums-1-dub>
Date: 3 Nov 2009 22:50:46 -0800
X-Trace: forums-1-dub 1257317446 10.22.241.152 (3 Nov 2009 22:50:46 -0800)
X-Original-Trace: 3 Nov 2009 22:50:46 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9944
Article PK: 737069

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







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

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


Ivaylo Ivanov Posted on 2009-11-04 08:44:42.0Z
From: "Ivaylo Ivanov" <n0_S_p_a_m_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4af09277@forums-1-dub> <4af12446$1@forums-1-dub>
Subject: Re: Picturebutton Powertiptext problem
Lines: 76
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af13efa$1@forums-1-dub>
Date: 4 Nov 2009 00:44:42 -0800
X-Trace: forums-1-dub 1257324282 10.22.241.152 (4 Nov 2009 00:44:42 -0800)
X-Original-Trace: 4 Nov 2009 00:44:42 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9945
Article PK: 737071

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.kaltenboeck@powersoftware.at> wrote in message
news:4af12446$1@forums-1-dub...
>
>
>
>
> Solved the problem! - a simple 'pb_button.enabled = true' in the
> mousemove-event did it.
>
>
>
>
>
>
>
> "Martin" <m.kaltenboeck@powersoftware.at> schrieb im Newsbeitrag
> news:4af09277@forums-1-dub...
>>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
>>
>>
>
>


Chris Pollach Posted on 2009-11-04 12:28:18.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4af09277@forums-1-dub>
Subject: Re: Picturebutton Powertiptext problem
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af17362$1@forums-1-dub>
Date: 4 Nov 2009 04:28:18 -0800
X-Trace: forums-1-dub 1257337698 10.22.241.152 (4 Nov 2009 04:28:18 -0800)
X-Original-Trace: 4 Nov 2009 04:28:18 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9946
Article PK: 737072

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.kaltenboeck@powersoftware.at> wrote in message
news:4af09277@forums-1-dub...
>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
>
>