Article View: comp.windows.interviews
Article #1493Problems programming a small graph-editor
From: Uli Fraus
Date: Wed, 19 Jun 1991 17:23
Date: Wed, 19 Jun 1991 17:23
26 lines
1907 bytes
1907 bytes
Hello all InterViews 2.6 experts, I am trying to programm to program a small IV application for drawing simple graphs (nodes & edges). This application should come up with an empty GraphicBlock plus some Buttons and a Panner. I used the graphics demo as an example. So I have Tray with the GraphicBlock (containing an empty Graphic) and a VBox (containing Buttons and Panner). This seem ok to me. But I have to two nasty problems: - First my window is coming up at minimal size (0x0) if the Graphic is empty. (I found no possibility to use a predefined Canvas! like SetCanvas() ??? ) - Second: If I click inside the GraphicBlock to set a new node, the node appears about 2 inch left and up of the click-point. BUT if I click on a node for moving (function from graphics) it work quite well. So I think I have a problem with relative and absolute coordinates. If you have any solutions or hints for these problems please tell me. Thanks Uli Fraus. -- Ulrich Fraus, FORWISS Passau, University of Passau, Germany ||==== E-Mail: fraus@forwiss.uni-passau.de || || || () ||__ Phone : +49 851/509-496 || || || || || Fax : +49 851/509-497 \\==// ||=== || || o
Technical Details
Message-ID:
<1991Jun19.172322.27647@forwiss.uni-passau.de>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!sol.ctr.columbia.edu!ira.uka.de!fauern!forwiss.uni-passau.de!frausShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!sol.ctr.columbia.edu!ira.uka.de!fauern!forwiss.uni-passau.de!fraus From: fraus@forwiss.uni-passau.de (Uli Fraus) Newsgroups: comp.windows.interviews Subject: Problems programming a small graph-editor Message-ID: <1991Jun19.172322.27647@forwiss.uni-passau.de> Date: 19 Jun 91 17:23:22 GMT Sender: Uli Fraus (FORWISS Passau, Germany) Followup-To: comp.windows.interviews Organization: University of Passau, Germany Lines: 26 Nntp-Posting-Host: forwiss.uni-passau.de