Laurent Veilleux wrote: > A pin has to belong to an object ?? A parent wxCanvasObject, have you read any (doxygen) documentation on a2dPin and a2dCanvasObject?
> > how to use a2dCommand_NewPin::Do() what's its purpose This adds pin to the ShowObject. And when you go one level higher in document hierarchy that same object becomes connectable. This is for drawing new object, which should become connectable. But maybe it is better to use a2dCommand_AddObject() here also, and have the view its ShowObject be the parent. Or the above command should call a2dCommand_AddObject() in its Do(). I would go for the first. > So if i don't have to use it I have have to make something like > making an Hit test => find the object and create the pin ? > and then call > GetCanvasCommandProcessor()->Submit( new a2dCommand_AddObject( > pin->GetParent(), pin ), true ); Right, a pin by itself is nothing. > > > In fact I want to create components which have input pin and output > pin Oke, this is like creating libraries. But do you want to create those components by hand interactive? If yes, study the documentation/code first, else you will have more questions then i am prepared to answers :-) Else go to the wires example and in there elements.cpp, this shows you how to do it in C++ code. than save each one as a doc and then load them to build a scheme > where components are linked with wires I understand, and this is the most difficult stuff in wxArt2D, so you must understand the structure of documents, pins and a2dCanvasObject, a2dConnectionGenerator etc. Klaas -- Unclassified ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Wxart2d-users_dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
