Antonio,need help!How to ShowToolTip without move the mouse
Antonio,need help!How to ShowToolTip without move the mouse
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....
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
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: How to ShowToolTip without move the mouse
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
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
Re: How to ShowToolTip without move the mouse
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
But thanks for answer
Email: SamirSSabreu@gmail.com
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: How to ShowToolTip without move the mouse
>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
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
Re: How to ShowToolTip without move the mouse
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
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
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: How to ShowToolTip without move the mouse
>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/viewt ... +tooltips+
FW has a new TTooltip class as of version 8.09. I have not tried using it.
James
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/viewt ... +tooltips+
FW has a new TTooltip class as of version 8.09. I have not tried using it.
James
Re: How to ShowToolTip without move the mouse
I can't find this class in my 9.06 version
Email: SamirSSabreu@gmail.com
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Antonio,need help!How to ShowToolTip without move the mouse
I don't see that class either. Antonio?
James
James
Re: Antonio,need help!How to ShowToolTip without move the mouse
Antonio! Where are you?James Bott wrote:I don't see that class either. Antonio?
James
Email: SamirSSabreu@gmail.com
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio,need help!How to ShowToolTip without move the mouse
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
Please send me a reminder, if I don't answer by tomorrow, thanks
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio,need help!How to ShowToolTip without move the mouse
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:
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
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
#include "FiveWin.ch"
function Main()
local oWnd, hWndTooltip
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd ;
ON CLICK hWndTooltip := CreateTooltip( oWnd:hWnd, "Hello world" )
return nil
Maybe we should create a small window that simulates a real tooltip
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio,need help!How to ShowToolTip without move the mouse
This info seems to provide the missing part:
http://msdn.microsoft.com/en-us/library ... le_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.
http://msdn.microsoft.com/en-us/library ... le_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.
Re: Antonio,need help!How to ShowToolTip without move the mouse
I NEED to show the tooltip through a method or procedure...
Email: SamirSSabreu@gmail.com
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio,need help!How to ShowToolTip without move the mouse
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 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 ?
Re: Antonio,need help!How to ShowToolTip without move the mouse
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
To make this image I overlaped 4 printscreens each one the mouse is over one position
The mouse will not be moved.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 ?
Email: SamirSSabreu@gmail.com
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6