Morning, Philip

Katrin,

My last suggestions on problem #1:

1. When you noted your code as map1.object.convertcoord, is this a typo?
Should be just map1.convertcoord

Map1.object is the way of using OLECustomControl's properties in PowerBuilder. Without 
dealing with object property I have access only to properties and methods that are 
default in PB for OLEObjects. It's a feature :)


2. Are X1, Y1 locally declared or passed by reference? (you mentioned by
value).

These values are local variables. I only said I think that function ConvertCoord just 
can't change passed variables as if they sre passed by value, not by reference - it's 
my vision of the problem. Think it's a bug.

hth.
Phil.
----- Original Message -----
From: "Katrin" 
To: 
Sent: Thursday, November 27, 2003 8:02 PM
Subject: MI-L Problems with ConvertCoord


> Hope you'll help me to cope with this problem. I work with MapX 4.5 in
PowerBuilder 8. I want my program to highlight nodes in polylines, which are
the closest to mouse pointer. So that I could while drawing a new polyline
snap it's node to existing one and show to a user - to what point it's
snapped to.
>
> Problem #1
> I get mouse coordinates into ocx_x, ocx_y.
> Map1.Object.ConvertCoord (ocx_x, ocx_y, X1, Y1, miScreenToMap)
> As far as I see into X1,Y1 should be set into Map Coordinates. Ups... Why
zeros???? This function with parameter mimaptoscreen works the same. Is it a
bug or my hands?
>
> Problem #2
> Has anybody already worked with such a problem - highlighting nodes. My
realization works so slow - could anyone propose a decision.
>
> Thanks a lot
> I'll be your obligator if you help me
>
>
> Best Regards,
> Katerinka
>
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now




Best Regards,
Katerinka

---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Reply via email to