1. Bernhard Giesriegl
  2. PowerBuilder
  3. Tuesday, 11 October 2022 14:44 PM UTC

Hi together,

a datawindow with several columns, tooltips are enabled.

On W10 all tooltips are shown on mousemove event.

On Windows Server 12 and Windows 7 (just testing there also) one controls tooltip is not displayed, other controls tooltips are working properly.

This behavior I can monitor on different datawindows.

Wonder why!

 

Any suggestions, help appreciated!

Thanks, Benrhard

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 18 October 2022 15:02 PM UTC
  2. PowerBuilder
  3. # 1

Windows actually displays tooltips, not PB - PB only calls the Windows API functions to set up and request a tooltip be displayed under the proper conditions. The primary mechanism Windows uses to provide tooltip functionality is the MouseMove event (and timers, of course).

It sounds to me like this is a Windows Server 2012 issue, not a PB issue. I understand that what you are wanting to do works under Windows 10, 7, etc., but the code base for multiple versions of Windows differs, just as the code base for  multiple versions of PB, or multiple versions of any application differs. By setting the tooltip text in PB via the MouseMove event, it appears that WS2012 manages tooltips a little differently than in other versions of Windows.

Therefore, if what you're doing does not work in WS2012 and it is important to resolve this issue, then you need to try to find an alternative approach, experimenting with changing additional tooltip settings when you are setting/clearing the tooltip text in order to try and "trick" WS2012 into displaying the tooltip, if possible.

For example, if I were in your situation, I would try: (1) Disabling the tooltip for this column DWObject in the DW Painter, then (2) Setting the tooltip text first, then enabling the tooltip in the MouseMove event when you are wanting to establish the tooltip. You might also try, as an experiment, supplying a generic, default tooltip text in the DW Painter and leaving the tooltip enabled, then simply setting/changing the text in the MouseMove event. I suppose other alternative scenarios are possible...you'll have to get creative and try to find a solution that works. You may eventually have to re-think/re-design this feature in your app.

Good luck!

Comment
  1. Bernhard Giesriegl
  2. Wednesday, 19 October 2022 06:00 AM UTC
Dear John,

many thanks for your searching and suggestions, I will try this out!
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 11 October 2022 15:30 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Bernhard -

Are you able to identify anything that is unique to the tooltip that is not working correctly? Such as...

Does the one tooltip that does not work use any properties that are different from the others (Bubble Style, for example)?

How much information (number of characters) is the tooltip being asked to display?

Is the tooltip for this DWObject being dynamically enabled/disabled via Modify or dot-notation? Are any other tooltip properties being dynamically changed? Are there expressions on any of the tooltip properties?

Comment
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Tuesday, 11 October 2022 15:49 PM UTC
  2. PowerBuilder
  3. # 3

Thanks for your help,

I checked exactly the difference between the working and not working columns in edit mode of the datawindow. All properties are the same.

It seems that the mousemove is not firing.

I tried a

this.Object.vokaageber.Tooltip.Tip=string(dwo.Name)

works great on win10 on everey column.

works not on one column on WinServer2021, columns beneath do so.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 12 October 2022 17:49 PM UTC
  2. PowerBuilder
  3. # 4

Hi Benrhard;

  Newer versions of PB like version 2022 no longer support W7. Also, make sure that you are running on W2012 R2.

FYI: https://docs.appeon.com/pb2022/installation_guide_for_pb/System_Requirements.html

Note that the IDE is also not supported on any MS-Windows "server" editions. Only App compiled EXE's.

Regards ... Chris

Comment
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Wednesday, 12 October 2022 18:54 PM UTC
  2. PowerBuilder
  3. # 5

Hi Chris, 

Thanks, and of course I know. 

Its Windows Server 2012 R2. 

W7 I was only testing and seeing the same. 

But the issue is not solvrd for me... 

Rgds

Bernhard 

 

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 13 October 2022 00:25 AM UTC
  2. PowerBuilder
  3. # 6

I have the exact same issue on a DW using PB 2019R3 on a Windows 10 platform.

I'll check to see if the non-functioning tooltip column differs in some way from the other tooltip columns that are functioning correctly.

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 13 October 2022 00:39 AM UTC
Hi Olan;

I wonder if yours & Benrhad's issue could be mouse driver related?

Regards ... Chris
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 13 October 2022 01:38 AM UTC
  2. PowerBuilder
  3. # 7

As a test, can you create a user event in the DW control mapped to pbm_dwnmousemove, and in the event script, populate a string with the values of the xpos, ypos, arguments and the name property of the dwo argument (dwo.name). In situations like this, I either display the string's contents in the MicroHelp (if available) or overwrite the window's title.

I'm curious if the mousemove event is being recognized and processed when the mouse is over the DWObject that is not displaying its tooltip, or if it is somehow being blocked or intercepted.

Comment
  1. Bernhard Giesriegl
  2. Thursday, 13 October 2022 06:20 AM UTC
Thanks, I tried this before - it seems mousemove is not firing on that column, while it does on other columns left of it.

In edit source mode there is no difference between the columns properties.
  1. Helpful 1
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Thursday, 13 October 2022 06:17 AM UTC
  2. PowerBuilder
  3. # 8

Thanks all for your help,

but for me it becomes stranger and stranger:

Playing and evaluating with the properties of the objects I found the property background.mode, which was set to 1, I changed it to 0 as the other objects have (where do I change this in painter??)

I deployed and tried, it worked, the tooltip on the special column was displayed!

After this, besides I have seen, the .exe file had no custom icon. So I checked the icon, changed absolutely nothing else and deployed again.

The tooltip did not work!

 

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 13 October 2022 06:57 AM UTC
  2. PowerBuilder
  3. # 9

Hi.

I believe that this specific property can be found in the designer here:

By the way this property isn't related to toolips... So if you are sure tooltips are affected by changing that property value you should open a case.

Andreas.

Comment
  1. Bernhard Giesriegl
  2. Thursday, 13 October 2022 07:32 AM UTC
Thanks, I thought this too.

But in painter my Mode says 0, in edit source I see 2. Strange?
  1. Helpful
  1. Andreas Mykonios
  2. Thursday, 13 October 2022 07:35 AM UTC
This is strange. For me the value I see in edit mode seems to be synchronized with what I see in the designer...

Andreas.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 13 October 2022 11:38 AM UTC
Hi Bernard & Andreas;

It sounds like you guys have reproducible test cases. Please open a Support Ticket for this weird anomaly.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Thursday, 13 October 2022 09:42 AM UTC
  2. PowerBuilder
  3. # 10

Hi all,

after long time of testing and searching these are my results:

- Windows Server 2012 R2

- 2 columns, in edit source same properties (same tooltips, are enabled, and so on)

- pbm_dwnmousemove is firing

- on mousemove I do 

    this.Object.column1.Tooltip.Tip= "Hi"
    this.Object.column2.Tooltip.Tip= "Hi"

- tooltip on column1 is displayed, on column2 not.

 

On W10: working fine.

 

Comment
  1. John Fauss
  2. Friday, 14 October 2022 19:37 PM UTC
Would you consider exporting the DW, zipping the .srd and attaching it to a new reply in this thread in order that I (and others) could examine the exported source for any irregularities? If so, please spell out the name(s) of the DWObject(s) that are NOT displaying a tooltip correctly.
  1. Helpful
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Monday, 17 October 2022 08:42 AM UTC
  2. PowerBuilder
  3. # 11

Hi John,

thanks, srd is uploaded, the not displaying tooltip is on column ID=13 name=auftragauflage

And, on another column id=11 name=auftragbez the tooltip is displayed fine.

Remember, its only on Windows Server 12

 

Rgds

Berngard

Attachments (1)
Comment
  1. Miguel Leeuwe
  2. Tuesday, 18 October 2022 10:52 AM UTC
I've seen some buggy behavior in the past with tooltips and having 2 monitors. Does your 2012 server have two monitors configured?
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 18 October 2022 10:52 AM UTC
*correction: "as a but" should be read as "as a bug"

:)
  1. Helpful
  1. Bernhard Giesriegl
  2. Tuesday, 18 October 2022 11:59 AM UTC
No, there is only one monitor.
  1. Helpful 1
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 17 October 2022 15:26 PM UTC
  2. PowerBuilder
  3. # 12

It's entirely possible that I'm overlooking something, but when examining the exported syntax for the column object that has id=13, no tooltip text (tooltip.tip="xxxxxx") is defined or present, as it is for other column objects.

Comment
  1. Bernhard Giesriegl
  2. Tuesday, 18 October 2022 06:21 AM UTC
Thats right, the tooltip is set programmatically in the pbm_dwnmousemove event:

this.Object.auftragauflage.Tooltip.Tip="Hi"

Please note that in W10 the tooltip is displayed.



  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.