Re: Anchors and Objects

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Hi Webbiz,

"Webbiz" <nospam@xxxxxxxxxxxxxxx> wrote in message news:K7F%k.4652$uS1.133@xxxxxxxxxxxxxxx
Well, I read this a few times and I have to admit it flew right over my head.

I suppose that means there are no "Object Select and Modify/Move for Dummies" book available.

Thanks. :)

Webbiz

It's not really that hard. I know I wrote a flow diagram tool some dozen or more years ago now. You can do it a variety of ways. I think I used windowed controls as it made it easy to use an object orientated approach, where each part of the diagram could respond to mouse clicks directly, draw glyphs at it's corners and move as you held the mouse down. Joining lines are more difficult. You can use windows for them, but you need to set the window region. They also need to respond to the movement of the two objects they connect. Alternatively you can have connecting lines as just an arrays of structures telling you from what object to what object and redraw them all when items get moved. The difficulty there is responding to a user trying to select a line and that requires a bit of maths or creating of regions and examine with PtInRgn etc.

The first thing to do is decide exactly what it is you are doing. Is it a flow diagram, a random drawing program, etc ?

.