Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and row of column change
Message
From
22/07/2002 07:24:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/07/2002 11:13:01
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Netherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00680874
Message ID:
00681047
Views:
19
>In a grid I want the user only to change the row. Except when the user presses the INS key (edit the line).
>I use the NODEFAULT entry to prevent the COLUMN change. The problem is the users cannot change the row also. So is there any way to figure out within the BeforeRowColChange event whether the user is changing the row or column. The nColIndex parameter in that event is supposed to indicate the new row/column according to VFP help description. But it is indicating only the current column.

Yes nColindex returns the current column's index.
*BRCC
If mdown()
	lnBottom = .top+.headerheight+.relativerow * .rowheight
	lnTop    = lnBottom - this.rowheight
	lnMouseRowPos = mrow(wontop(),3)
	lnMouseColPos = mcol(wontop(),3)
	llChangingRow = !(between(lnMouseRowPos,lnTop, lnBottom) ;
		and between(lnMouseColPos,.left,.left+.width))
Else
	llChangingRow = inlist(lastkey(),24,5,18,3,145,148)
Endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform