Tooltip

Post Reply
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Tooltip

Post 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
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Post 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 !
Post Reply