Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - row and column information about active cell
Message
From
30/10/2003 06:16:02
 
 
To
30/10/2003 05:48:24
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00843489
Message ID:
00844440
Views:
20
>Thanks Gregory...

You're welcome.
LPARAMETERS ncolindex

=DoDefault(ncolindex)

local ac
ac = thisform.GetACtiveControl()

do case
case isnull(ac)

otherwise
	acti screen
	?sys(1272, ac)
	local x, y, w, h
	
	y = objtoclient(ac, 1)
	x = objtoclient(ac, 2)
	w = ac.Width
	h = ac.Height
		
	do case
	case type('thisform.ShapeObj') = T_UNDEFINED
		=thisform.AddObject('ShapeObj', 'Shape')
		thisform.ShapeObj.BackColor = rgb(255,0,0)
		thisform.ShapeObj.Visible = TRUE
	
	endcase
	thisform.ShapeObj.Left = x
	thisform.ShapeObj.Top = y
	thisform.ShapeObj.Width = w
	thisform.ShapeObj.height = h
	
endcase
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform