Hi,
Hi,
// begin
// BeginInternalUpdate;
// BeginUpdatePos;
// try
// for c:= 0 to DControlCount - 1 do
// if not DControls[c].IsMember then
// DControls[c].MovePosition(-MinLeft, -MinTop);
// finally
// EndUpdatePos;
// EndInternalUpdate;
// for c := 0 to DControlCount - 1 do
// DControls[c].NotifyAnchoreds(acPosition);
// end;
// end;
Seems its working after that.
This is by design indeed, to be honest I can't tell right now what are consequences of allowing this. I appreciate if you could give us some feedback!
Working perfectly!
No problems encountered. However, stumbled accross another one. (as you can see, I'm using it heavily for the moment).
I got some x,y coordinates that I saved in a db and now I want to get it showing on screen.
I'm using a polygon block (think its called tdiagrampolyblock?)
Anyway, I can't use the handles.orpoint there but I need to use polygon.add...
So far so good. The only problem is that I seem to need to define a width and a height. Also my polygon is drawn at top, left 0,0
I created the polygon with the startinsertingcontrol and I looped through the polygon points and saved them.
Would it be possible to tell me how I can automatically restore the polygon on the diagram where I drew it?
For now its drawing very small and in 0,0.
Thx
Geert
Can you please post the code you are using to build the polygon block for a better understanding?
begin
for f := 0 to high(numpoints) do
begin
pts := numpoints; Polygon.Add(pts.X ,pts.Y);
end;
Diagram := DrawLayer;
LayerName :='test';end;
Found it...
BoundsRect := Drawer.OriginalRect;
Hi Geert,
That's really a pitty. I want to use it as well for some intraweb projects...
Geert