Page 1 of 1

Tooltip

Posted: Mon Dec 03, 2007 1:33 pm
by demont frank
Hello,

I am trying to use tooltips in get's, and try to impliment :

1) When the get has focus , to show the tooltip with a key press , F1 as in clipper ?

2) Same , but edit the tooltip

So i can build a dbf with the tooltips . The user can make his own tooltips

Frank

Posted: Mon Dec 03, 2007 2:03 pm
by demont frank
First test :

oGet:bKeydown := {|nKey,bFlags|IIF(nKey==VK_F1 ,trace("F1"),)}

Gives first a alert dialog "Help file not available". Can it be avoided ?

Replacing VK_F1 with VK_F2 shows that bkeydown is executed twice. Maybe from loosing and regaining focus

oGet:bKeydown := {|nKey,bFlags|IIF(nKey==VK_F2 ,trace("F2"),)}

Second test :

oGet:bKeydown := {|nKey,bFlags|IIF(nKey==VK_F2 ,oGet:ShowToolTip(),)}

This has no result , no tooltip !