Antonio,need help!How to ShowToolTip without move the mouse

Antonio,need help!How to ShowToolTip without move the mouse

Postby sambomb » Fri Jun 04, 2010 1:05 pm

I have a tooltip in a get and in a MsgBar, and I need to show both when I show my dialog, my app is for markets, and the use of mouse is rare in my app

I already tryed the ShowToolTip() method but it didn't work

I searched in the forum but didn't found a solution, some topics like these simple go on unanswered....
Last edited by sambomb on Mon Jun 07, 2010 11:49 am, edited 1 time in total.
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: How to ShowToolTip without move the mouse

Postby James Bott » Fri Jun 04, 2010 1:56 pm

If I remember correctly, you need a tooltip class. There was one posted here some time ago.

The normal FW tooltip is not a class but rather some functions in TWindow (I think). This is why you need a Tooltip class.

Try searching again for "tooltip class."

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: How to ShowToolTip without move the mouse

Postby sambomb » Fri Jun 04, 2010 5:54 pm

I don't have the TTip class and don't like to use third code, Fivewin already have the code but it didn't work or I couldn't discover how to use because of the lack of comments...

But thanks for answer
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: How to ShowToolTip without move the mouse

Postby James Bott » Fri Jun 04, 2010 8:23 pm

>Fivewin already have the code but it didn't work or I couldn't discover how to use because of the lack of comments...

I am trying to tell you that you can't do what you want using only FW native code. The functions are STATIC functions inside one of the FW PRGs, and you cannot call a STATIC function outside the PRG.

I know this because I spent many hours on this issue years ago.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: How to ShowToolTip without move the mouse

Postby sambomb » Fri Jun 04, 2010 9:03 pm

So don't you think that Antonio should do something?
I really don't want to move the mouse via code and return to the original position just to show the tooltip...
I didn't find the TTip class
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: How to ShowToolTip without move the mouse

Postby James Bott » Fri Jun 04, 2010 9:31 pm

>So don't you think that Antonio should do something?

Antonio says that the tooltips are STATIC for speed reasons.

>I didn't find the TTip class

According to this thread:

http://forums.fivetechsupport.com/viewtopic.php?f=3&t=12412&hilit=+in+place+tooltips+

FW has a new TTooltip class as of version 8.09. I have not tried using it.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: How to ShowToolTip without move the mouse

Postby sambomb » Mon Jun 07, 2010 11:47 am

I can't find this class in my 9.06 version
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby James Bott » Mon Jun 07, 2010 3:02 pm

I don't see that class either. Antonio?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby sambomb » Tue Jun 08, 2010 12:13 pm

James Bott wrote:I don't see that class either. Antonio?

James


Antonio! Where are you?
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby Antonio Linares » Tue Jun 08, 2010 2:31 pm

I am out of the office until tomorrow, so I will check it as soon as I am back there where we have all our tools :-)

Please send me a reminder, if I don't answer by tomorrow, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby Antonio Linares » Tue Jun 08, 2010 3:30 pm

Samir,

This code shows how to create a standard WIndows tooltip, though it behaves standard, and I don't think thats the behavior that you want:
Code: Select all  Expand view  RUN

#include "FiveWin.ch"

function Main()

   local oWnd, hWndTooltip

   DEFINE WINDOW oWnd
   
   ACTIVATE WINDOW oWnd ;
      ON CLICK hWndTooltip := CreateTooltip( oWnd:hWnd, "Hello world" )

return nil
 

So I don't think we may be able to use a standard tooltip to create it and leave it fixed at a certain place. Please notice that as soon as the mouse leaves the window owner of the tooltip, it vanishes away.

Maybe we should create a small window that simulates a real tooltip
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby Antonio Linares » Tue Jun 08, 2010 3:40 pm

This info seems to provide the missing part:
http://msdn.microsoft.com/en-us/library/bb760252(VS.85).aspx#tooltip_sample_inplace

anyhow it seems as we can only change its location in response to a notification code (TTN_SHOW) and that means that the mouse is over the window. Not sure if this may be what you want.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby sambomb » Tue Jun 08, 2010 4:46 pm

I NEED to show the tooltip through a method or procedure...
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby Antonio Linares » Tue Jun 08, 2010 4:54 pm

Samir,

The question is: where the mouse will be ? If it goes out of the window then the tooltip will not be visible.

Is that fine for you ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio,need help!How to ShowToolTip without move the mouse

Postby sambomb » Tue Jun 08, 2010 5:12 pm

I need to show the tooltip in a Dialog, I have 4 places where I want to show the tooltip at the same time, there is a image of what I want to do

To make this image I overlaped 4 printscreens each one the mouse is over one position
Image


Antonio Linares wrote:Samir,

The question is: where the mouse will be ? If it goes out of the window then the tooltip will not be visible.

Is that fine for you ?


The mouse will not be moved.
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 42 guests