Home Search AAA
Number of visits:
Repository is empty

>> / All discussion groups / Nastava

Number of posts:    View: (1 - 50)  Total: 50

Sort by: title | last reply time | author
Title Replies Author Last reply
I need! 1 ebjork 2005-12-05 at 13:39
Omg first post 4 ehugne 2005-12-05 at 17:46

* - new messages

Published: 2006-01-03 at 09:25
Edited: 2006-01-03 at 10:08
Quaiser wrote:
1. I could not found the location of XML file from where I will get the images descriptions.

2. I am not able to get a way to code the second requirement because there is no component there in workspace area.

Eric Please provide some hints to solve the problems.

In reply to 1:
You should not need to know about the specific path etc to the graphics used to render the ports.
All component types/assemblies have a specific draw-behaviour defined in the onDraw method.
Use that instead, keep a reference to the "clicked component" in the repository, and update this by using your event.
Then you can set the location of the component type to 0-0, and add it as a control to the preview form.
(in the delegate method in the preview form that handles the "clicked repository" event)
Where 'e' is the reference to the clicked component type.

2. If by 'the second requirement' you are referring to the XML generation, this is handled internally by each type, and you do not need to worry about this.

I noticed you've updated the /prototype tree, this is an old build, and you should work with RC3 instead, which is the latest.
Although it shouldnt matter much to the preview window implementation as noone except you have been working with that form.

News list