Home > database >  Pb in linear problems and coordinate in the figure
Pb in linear problems and coordinate in the figure

Time:09-19

Everybody is good, again to you to ask questions, hope you continue to give the younger brother to support!

After I made in using PB to user objects (mainly is used for displaying map coordinates), later found out that although able to display graphics, but because is not very intuitive, cannot be directly observed coordinate position, therefore, I want to pass on the mouse position to add two vertical rubber dotted lines, enables the dotted line to the extension of the up and down or so on the axis, so that you can effectively make more intuitive observation... , like in the picture here shows,

.
.
.
.
.
.
.
.
.
Rough sketch is such that can help me to achieve this, thank you very much! Very urgent things, I groped for a long time didn't succeed! I thanked the...

CodePudding user response:

No, not to force, is not my results, hehe!
//////////?/////////////
//////////?/////////////
//////////?/////////////
????????????????????????????????????????
//////////?/////////////
//////////?/////////////
//////////?/////////////
//////////?/////////////
//////////?/////////////
This will see! Just like a question mark!

CodePudding user response:

In detail before you draw lines, l_x l_y or this is automatically created in the
Dw
Adding custom event event id pbm_dwnmousemove
Long ll_x_pb ll_y_pb, ll_PointX, ll_PointY
Ll_PointX=dw_1. PointerX ()
Ll_PointY=dw_1. PointerY ()
Ll_x_pb=PixelsToUnits (xpos, XPixelsToUnits!
Ll_y_pb=PixelsToUnits (ypos YPixelsToUnits!)
Enclosing setredraw (false)
Enclosing the modify (" l_x. Visible=1 l_x. X1=0 l_x. X2="+ string (ll_x_pb) +" l_x. Y1="+ string (ll_y_pb) +" l_x. Y2="+ string (ll_y_pb))
Enclosing the modify (" l_y. Visible=1 l_y. X1="+ string (ll_x_pb) +" l_y. X2="+ string (ll_x_pb) +" l_y. Y1=0 l_y. Y2="+ string (ll_y_pb))
Enclosing setredraw (true)

CodePudding user response:

How to write the user object (mainly is used for displaying map coordinates)?
  • Related