Search found 24 matches
- 27 Jun 2010, 10:56
- Forum: CAD VCL
- Topic: How can I make screen scroll when mouse reach the top of scr
- Replies: 1
- Views: 13598
How can I make screen scroll when mouse reach the top of scr
HI, I have write code to moe a selected entity with mouse. My problem is when the cursor reaches the edge of the screen it does not zoom automatically. the image is currently show in FitToSize and the scrollbars are show. Only it does not scroll. Please guide how I should code to make it happen? I a...
- 27 Jun 2010, 02:21
- Forum: CAD VCL
- Topic: How to handle Onclick event
- Replies: 1
- Views: 13482
How to handle Onclick event
Hi,
I have noticed that you use to point to the event handler. But I can not use the same way for OnClick. Compiler error. Please guide what is the difference between the two events and how to write the handler for OnClick event.
I have noticed that you use
Code: Select all
sgPaintBox->OnMouseUp = sgPaintBoxMouseUp;
- 16 Jun 2010, 13:23
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
PointDisplayMode and PointDisplaySize should be used as properties of TsgDXFConverter: FImg->Converter->PointDisplayMode FImg->Converter->PointDisplayMode without "->HeadVarStruct." and please call Im->GetExtents after adding or changing the point. Still not working. the line FImg->Converter->Point...
- 11 Jun 2010, 18:25
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
Hi Alexander, You can use TsgDXFPoint objects instead the "." texts. TsgDXFPoint doesn't zoomed. I have taken your advice and changed to use TsgDXFPoint to draw the 8 points on the selected entity box. The problem is no mater what value I set for PointDisplayMode and PointDisplaySize, it always only...
- 11 Jun 2010, 13:07
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
The modification to access TFPoint field directly is incorrect. Please use the MakeFPoint method from sgConsts unit: Code: Select all var ins: TsgDXFInsert; begin ... ins.Point := MakeFPoint(x, y, z); THis probblly does not solve my problem. My code is as follows, vPt = (TFPoint *)(&(Ent->Point)); ...
- 11 Jun 2010, 13:01
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
Hi Alexander, TsgDXFPolyline.Entities does not work in C++. The following code does not pass the compiler, for( int i=Ent->Entities->Count-1; i>=0; i--) I have checked the DXFConv.hpp. In the definition of TsgDXFPolyline, Entities is not defined anywhere. There is only this line: protected: . . __pr...
- 11 Jun 2010, 09:13
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
Hi, Alexander, I tried to change the Point property to move a TsgDXFInsert on the screen. I found the Point property can not be changed. By checking DXFConv.hpp I found the Point is defined in TsgDXFCustomVertex public section as follows, __property Sgconsts::TFPoint Point = {read=GetPoint, write=Se...
- 11 Jun 2010, 01:25
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
Hi Alexander, When using TsgDXFPolyline, I tried to use PolyFaceVertexIndexes to access the CHild Entities but always get a "Access Violation" error. The definition of PolyFaceVertexIndexes in DXFConv.hpp is, __property Classes::TList* PolyLineEntities = {read=FPolyLineEntities} So I tried both, for...
- 10 Jun 2010, 18:48
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
Re: How to transform Polyline and Ellipse?
HI Alexander, Thanks for the tips. I have done the Ellipse transform. But for the LwPolyline or Polyline, I donot know how to get the vertecis as you mentioned. I noticed in CADImage.pas, the code for drawing polyline first check the child entities for type Line and Arc and draw respectively, for I ...
- 08 Jun 2010, 16:38
- Forum: CAD VCL
- Topic: How to transform Polyline and Ellipse?
- Replies: 15
- Views: 78843
How to transform Polyline and Ellipse?
Hi, I am writing codes for moving a SPline, Polyline and Ellipse. I have successful with Spline by recalculate the Fits anf Controls with Matrix. But Do not know what points should be calculated with the other two. I have tried the following code on both PolyPoints and the DottedPoints, for(int i=En...
- 27 May 2010, 12:49
- Forum: CAD VCL
- Topic: Build with BCB2009, get link error"unresolved external'_fast
- Replies: 3
- Views: 19934
Re: Build with BCB2009, get link error"unresolved external'_fast
Thanks for the reply. I suppose the libery path is not the issue as in the error message it is indicated that the external was refered by ....\lib2009win32\SHX.OBJ, which means the linker has found the right path for the lib files. I will try the BCB update3. This is the only error message, so I won...
- 27 May 2010, 02:38
- Forum: CAD VCL
- Topic: Build with BCB2009, get link error"unresolved external'_fast
- Replies: 3
- Views: 19934
Build with BCB2009, get link error"unresolved external'_fast
Hi guys, I am using C++ builder 2009 and CADImportVCL_CADExportVCL_7.2.5_demo_builder . When I try to build any of your sample projects, always get the link error "unresolved external'_fastcall System::SetCodePage(........) from \lib2009win32\SHX.OBJ ". I guess it may be caused by some setting in BC...
- 19 Jun 2006, 20:00
- Forum: CAD VCL
- Topic: Copying sgDXFLine?
- Replies: 3
- Views: 15960
- 18 Jun 2006, 01:08
- Forum: CAD VCL
- Topic: Copying sgDXFLine?
- Replies: 3
- Views: 15960
Copying sgDXFLine?
Hi Sergey, I have tried to copy a Line Entity using the copy constructor: TsgDXFLine *TheEnt; TheEnt = new TsgDXFLine(*((TsgDXFLine *)FImg->Entities )); It gave me a new Line entity, except with DottedSingPts pointing to the DottedSingPts of the old Line entity. That is, the DottedSingPts of both en...
- 19 May 2006, 07:24
- Forum: CAD VCL
- Topic: GetExtents() Can not reduce the pic size?
- Replies: 1
- Views: 9877
GetExtents() Can not reduce the pic size?
Hi Sergey, I have two questions. Please help. First, I did some Entity moveing and rotate and use GetExtents() to adjust the pic size so the whole picture is visible. But I found the GetExtents() can only expand the Pic size, but does not reduce the size when the picture gets smaler. Is there somewh...