Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with GotFocus and LostFocus !
Message
From
30/07/1998 15:34:26
 
 
To
30/07/1998 15:19:50
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00122769
Message ID:
00122833
Views:
17
Ooops....Use MCOL instead of MROW in second BETWEEN....

Also, thsi technique will allow you to selectively skip validation for other buttons, as appropriate.

Here's the amended code.
LOCAL nCancelTop,nCancelHeight,nCancelLeft,nCancelWidth
nCancelTop=THISFORM.cmdCancel.Top
nCancelBottom=nCancelTop+THISFORM.cmdCancel.Height
nCancelLeft=THISFORM.cmdCancel.Left
nCancelRight=nCancelLeft+THISFORM.cmdCancel.Width
IF BETWEEN(MROW("MyForm",3),nCancelTop,nCancelBottom) AND ;
   BETWEEN(MCOL("MyForm",3),nCancelLeft,nCancelRight) AND ;
   MDOWN()
    RETURN .T.
ENDIF
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform