Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and row of column change
Message
De
22/07/2002 07:24:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/07/2002 11:13:01
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00680874
Message ID:
00681047
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform