Hi Steven, Use this.setLayout(layout) instead of this.add(layout). Other than that your code should work. The embed.Canvas is a widget like any other so there are no extra rules that apply when using it.
Regards, Marc On 05/15/2011 11:54 AM, stevenv wrote: > Hi all > > I want to display an electronic map in a ui widget. I'm trying to add a > embed canvas object to a window but can seem to get it to work. > > var layout = new qx.ui.layout.VBox(); > this.add(layout); > > // add menu > var menu = new texviewer.AppMenubar(); > this.add(menu); > > var canvas = new qx.ui.embed.Canvas(500, 500); > this.add(canvas); > > Is the canvas the best solution for what I want to do? > Must the canvas first be added to a window like object before adding it to > the layout? I tried composite without any luck. > > Thanks > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/embed-canvas-issue-tp6365151p6365151.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
