Solved TD-18647: SalTooltips: notification functionality

Missing or incomplete OpenText Gupta product features? Discuss it here!
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3384
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-18647: SalTooltips: notification functionality

Post by Dave Rabelink » 25 Oct 2012, 13:05

We have globally 3 ways to implement tooltips for GUI objects in TD:

- QckTips
- SalSetTooltip
- Attribute inspector tooltip

The advantage of the SAL tooltips is that it is compatible with .NET.
The QckTip is only available in Win32.

Furthermore, Sal tooltips can contain larger tiptexts and also supports multiline tips.

One disadvantage right now, the Sal tooltips does not have a notification feature like now available in QckTips !

In QckTips, when a tooltip is about to be displayed, a notification is send to the object.
Having this feature, you are able to:

1) Abort showing the tooltip dynamically without deleting the tooltip

Code: Select all

On TTM_DisplayToolTip
   If bShowTooltips
      Return TRUE
   Else
      Return FALSE

2) Set a new or changed tiptext dynamically (eg translations etc)

Code: Select all

On TTM_DisplayToolTip
   If sLanguage = "DUTCH"
      Call TTSetTipText( hWndItem, "Dit is een nieuwe tekst." )
   Else
      Call TTSetTipText( hWndItem, "This is a new text." )
   Return TRUE

3) Define an object to have a tooltip, but initially do not set a tiptext.
This is then combined with 2). So the notification is triggered, even when no text was assigned.

Code: Select all

On SAM_Create
   Call TTAddTool( hWndItem, STRING_Null , STRING_Null )

On TTM_DisplayToolTip
   Call TTSetTipText( hWndItem, sVariableHoldsText )
   Return TRUE


My enhancement request is to add notification features described in points 1,2 and 3 when using SalSetTooltip.


A small example is added as attachment.
It shows the QckTip notification features
You do not have the required permissions to view the files attached to this post.
Last edited by EwaldP on 13 Nov 2012, 13:01, edited 2 times in total.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 594
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: TD-18647: SalTooltips: notification functionality

Post by Uwe van der Horst » 26 Oct 2012, 08:26

I totally support this request. In 5.2 we used XSAL in combination with WM_MOUSEMOVE to do this. Dynamic tooltips are absolutely needed.

+1
Best regards,
Uwe van der Horst
Advo-web GmbH

didier

Re: TD-18647: SalTooltips: notification functionality

Post by didier » 26 Oct 2012, 08:37

+1

MSchmidt
Germany
Posts: 299
Joined: 03 Jul 2017, 09:28
Location: Germany

Re: TD-18647: SalTooltips: notification functionality

Post by MSchmidt » 26 Oct 2012, 10:03

+1

actually we use a self written dll for tooltips with notifications.
so we are able to make a translation....

but of course we need a solution for .net
and simpliest way for a dynamic change of the content of a tool tip is a notification.

static tool tips are senseless for us.

regards
M.Schmidt

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 1462
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

Re: TD-18647: SalTooltips: notification functionality

Post by Igor Ivanovic » 26 Oct 2012, 12:48

+1
Igor Ivanovic
Image

User avatar
markus.essmayr
Austria
Posts: 892
Joined: 06 Mar 2017, 06:07
Location: Austria

Re: TD-18647: SalTooltips: notification functionality

Post by markus.essmayr » 29 Oct 2012, 07:55

+1
Markus Eßmayr
teamdeveloper@t-mx.com

Clint C.

Re: TD-18647: SalTooltips: notification functionality

Post by Clint C. » 29 Oct 2012, 08:08

+1

Note: In example 2 I do think you shouldn't have If Else statements for translations. You should rather use a function that handles the translation for you.
On the other hand I'm guessing you only mentioned that to have just an example to prove your point ;-).

Good explanation, I learned something again!

lrcuand

Re: TD-18647: SalTooltips: notification functionality

Post by lrcuand » 31 Oct 2012, 13:11

+1

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3384
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18647: SalTooltips: notification functionality

Post by Dave Rabelink » 13 Nov 2012, 08:42

Gupta has assigned an enhancement number for this: TD-18647
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Georg Diczig
Germany
Posts: 175
Joined: 15 Mar 2017, 15:15
Location: Cologne Germany

Re: TD-18647: SalTooltips: notification functionality

Post by Georg Diczig » 23 Nov 2012, 09:26

+1
Best Regards
Georg Diczig

Jean-Marc Gemperle

Re: TD-18647: SalTooltips: notification functionality

Post by Jean-Marc Gemperle » 04 Jan 2016, 16:38

Hi,

FYI this got implemented since 6.2 SP1.
See
SAM_DisplayToolTip HLP

Cheers
JM

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Ccbot] and 3 guests