C. Andrew Dunning Posted June 14, 2009 Share Posted June 14, 2009 I have what may seem like an odd question regarding the "Basic" Control Points / resize handles for Linear PIOs - the ones that define the end-points of the line: Is there a way to hide or, better-yet, keep them visible and simply disable them - given specific criteria? Thanks! Quote Link to comment
Miguel Barrera Posted June 14, 2009 Share Posted June 14, 2009 Once you have defined the length and/or direction reset the Linelength parameter (sets the length only) or use SetSegPt2 function (sets the length and direction) Quote Link to comment
C. Andrew Dunning Posted June 15, 2009 Author Share Posted June 15, 2009 Thanks... I've ended up resetting the length to a stored value if the user resizes the PIO instance. Works beautifully. FWIW, I had tried using GetSetPt2 and SetSegPt2 but wasn't having any luck. GetSegPt2 kept returning the same values as GetSetPt1. Quote Link to comment
Miguel Barrera Posted June 16, 2009 Share Posted June 16, 2009 Which handle are you passing to the procedures? You need to get the PIO handle from: FUNCTION GetCustomObjectInfo(VAR objectName:STRING; VAR objectHand:HANDLE; VAR recordHand:HANDLE; VAR wallHand:HANDLE): BOOLEAN; and use the handle returned to get and set the end points such as: GetSegPt2(objectHand,x,y); Quote Link to comment
C. Andrew Dunning Posted June 17, 2009 Author Share Posted June 17, 2009 Miguel - That's the handle I use. I was still getting the same values for Pt1 and Pt2. Not a big deal, though; I've gone a slightly different direction that is working as I need it to. Thanks. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.