GUIKit and GraphEdit
- To: mathgroup at smc.vnet.net
- Subject: [mg50921] GUIKit and GraphEdit
- From: darkness_wizard at hotmail.com (Wishmaster7)
- Date: Tue, 28 Sep 2004 00:58:30 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
hi all. I am working with the graph edit and I add some actions to buttons, in order to apply changes to the graph. With this graph, you can select squares or arcs. Is there a way to know which is the selected arc? The idea is to select an arc, and then modify the value of the weight of this arc. I try to do this with a script added to a widget button. The code for the graph panel is the following : Widget["Graph/GraphPanel", {"preferredSize" -> Widget[ "Dimension", {"width" -> 600, "height " -> 400}]}, ExposeWidgetReferences -> {" graphModel"}, Name -> "graphPanel"] the button gets the PropertyValue[{"graphPanel", "expr"}] which is the representation of the graph. For example : {{1, 1} -> a, {1, 2} -> b, {2, 2} -> c, {2, 3} -> d, {_, _} -> 0} now if I know that the user has selected a particular arc, I can do some changes to the value of this arc and apply these changes to the graph. I hope this is something we can do. I search a way to do that, and if someone can help me saving time, I will be very thankful. Wishmaster7