|
Home > Archive > dBASE Questions and Answers > February 2006 > Getting pixel position
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Getting pixel position
|
|
| Pieter van Heerden 2006-02-07, 7:24 am |
| I have a map in a container on a form and need to link information to specific points on the map. For that I need to get pixel(col, row) position as reference point. I have tried different formats of the following, on the assumption that the "col" and "
row" parameters pick up the pixel position, but I get only blanks.
function IMAGE1_onLeftMouseUp
(flags, col, row)
? flags, col, row
return
How do I get a specific pixel position out of the "system" and store it to a variable?
| |
| Jean-Pierre Martel 2006-02-07, 8:24 pm |
| In article <o$ZCJZ9KGHA.1984@news-server>, psvh@mweb.co.za says...
> I have a map in a container on a form and need to link information
> to specific points on the map. For that I need to get pixel(col, row)
> position as reference point.
> function IMAGE1_onLeftMouseUp
(flags, col, row)
> ? flags, col, row
> return
Try the form below.
Jean-Pierre Martel, editor
The dBASE Developers Bulletin
Blue Star dBASE Plus Core Concepts Graduate
** END HEADER -- do not remove this line
//
// Generated on 07/02/06
//
parameter bModal
local f
f = new Pieter_van_HeerdenFo
rm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class Pieter_van_HeerdenFo
rm of FORM
with (this)
onLeftMouseUp = class::FORM_ONLEFTMO
USEUP
metric = 6 // Pixels
height = 352.0
left = 371.0
top = 0.0
width = 280.0
text = ""
endwith
function form_onLeftMouseUp(f
lags, col, row)
? "X position = " + col
? "Y position = " + row
return
endclass
| |
|
|
|
|
|