Hi Richard, On Thu, 8 Aug 2013, Richard Sternagel wrote:
> for me finding the right widget is like finding the appropriate HTML-Element > for marking up information when developing HTML. It's always content driven > ... ok. > With the different nature of the widgets you listed I would propose > "qx.ui.embed.Html" if it's a larger amount of HTML and "qx.ui.basic.Label > with setRich(true)" if it's just a couple of words. To be honest, choosing between these two seemed the most difficult. I was using Label so far, but as the HTML text could become quite long, I had to put the label inside a ScrollContainer. embed.Html() takes care of that. > "qx.ui.embed.HtmlArea with setEditable(false)" seems like a workaround, > because it's meant to be a rich text editor widget and disabling it > instantly feels wrong. Yes, I just added it for "completeness". > "qx.ui.basic.Atom with setRich(true)" seems also wrong because you don't > have an image you want to group the text with, do you? Right, I had overlooked that. I had just searched for setRich() in the API viewer ... > Read on for advantages/disadvantages: > - http://manual.qooxdoo.org/3.0/pages/widget/html.html > - http://manual.qooxdoo.org/3.0/pages/widget/label.html > - http://manual.qooxdoo.org/3.0/pages/widget/atom.html > - http://demo.qooxdoo.org/3.0/apiviewer/#qx.ui.embed.HtmlArea That was most helpful, I had forgotten about the manual pages completely (as most of the time the API viewer is enough). Thanks, Fritz > Am 08.08.13 12:16, schrieb Fritz Zaucker: >> Hi, >> >> I want to display some HTML-formatted "text" in a Qooxdoo desktop >> application. I see at least the following variants: >> >> - qx.ui.basic.Atom with setRich(true) >> - qx.ui.basic.Label with setRich(true) >> - qx.ui.embed.Html >> - qx.ui.embed.HtmlArea with setEditable(false) >> >> How do I choose which to use? Advantages/disadvantages? >> >> Cheers, >> Fritz -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
