Press F5 and show ToolTip

Press F5 and show ToolTip

Postby mtajkov » Mon Mar 09, 2009 8: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) ]
mtajkov
 
Posts: 130
Joined: Sun Mar 08, 2009 4:33 pm

Re: Press F5 and show ToolTip

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Press F5 and show ToolTip

Postby mtajkov » Mon Mar 09, 2009 3: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) ]
mtajkov
 
Posts: 130
Joined: Sun Mar 08, 2009 4:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests