FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Press F5 and show ToolTip
Posts: 130
Joined: Sun Mar 08, 2009 04:33 PM
Press F5 and show ToolTip
Posted: Mon Mar 09, 2009 08:57 AM

I' would like press F5, and this way show tooltip for oGet control

SetKey( VK_F5, { || (oGet:cToolTip:="Test")} )

not show ToolTip!

SetKey( VK_F5, { || (oGet:ShowToolTip(,,"Test"))} )

not show ToolTip!

Milos

Best regards

Milos



[ FWH 21.11 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603) ]
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Press F5 and show ToolTip
Posted: Mon Mar 09, 2009 11:23 AM

Hello Milos,

I think Tooltip works only, the Object got the FOCUS.

REDEFINE GET oGet ID 100 VAR cGET of oDlg
oGet:cTooltip := "Test"

What You can do : Set the Focus to the get
SetKey( VK_F5, { || oGet:SetFocus() } )

Regards
Uwe :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 130
Joined: Sun Mar 08, 2009 04:33 PM
Re: Press F5 and show ToolTip
Posted: Mon Mar 09, 2009 03:19 PM
Hi,

Tool tip of some control is appears when the mouse control pozition on it.
I want to show a toolTip of some control and I don't want position mouse on it

example:

function main()
.
.
.
REDEFINE GET oGet ID 100 VAR cGET of oDlg
oGet:cTooltip := "Error...."

REDEFINE BUTTON oTest ID 110 OF oDlg;
ACTION Test()
return nil

//------------------------------------------------------//

function Test()

if empty(cGet)

//Show ToolTip
oGet:ShowToolTip(,,oGet:cTooltip ) \\ not work
. ????


endif

return nil
Best regards

Milos



[ FWH 21.11 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603) ]

Continue the discussion