Hi everybody,
I have some trouble embedding an Eyesee diagram in an application
window. Right now, I basically put a VisualisationUI as a subcanvas.
The code snippets that illustrate the essential parts of that process
are below.
However, this does not seem to be an ideal solution. The diagram is
not scaled to the subcanvas (there are scrollbars) and I don't see how
to accomplish that. Maybe I'm doing something wrong and I should not
use the VisualisationUI as the subcanvas? Or maybe I can easily scale
the diagram to the size of the subcanvas? I only found a way to change
the zoom level.
Any help would be appreciated.
Thanks!
---- code snippets ----
....
theCanvas := Graphics.VisualizationUI new
....
diagramrenderer diagram gcWrapper:
EyeSee.DiagramGraphicsContextWrapper new.
diagramrenderer diagram setup.
...
postBuildWith: aBuilder
theCanvas visualization model: diagramrenderer.
----------------------------
Johan Brichau
johan.brichau(a)uclouvain.be
Show replies by date