|
Re: Seaside 2.6 Example?: msg#00208lang.smalltalk.squeak.seaside
Below, I use WAComponent>>rendererClass and WAComponent>>renderContentOn:. To be absolutely clear, I mean MyWAComponentSubclass>>rendererClass, and MyWAComponentSubclass>>renderContentOn:. Jeremy > It isn't just simpler to use, it's vastly preferable because it has a much > cleaner interface. Too bad no one can figure out how to use it without > referring to Pier... (I had to use Pier, myself, in order to figure this > out.) > > Essentially the steps are: > > 1. Augment your WAComponent to declare that it's rendered with a > different class: > > WAComponent>>rendererClass > ^ WARenderCanvas > > ...notice it's "rendererClass", not "renderClass", which had me kicking my > computer for a good 10 minutes. > > 2. Augment your WAComponent>>renderContentOn: method to actually use the > canvas... > > WAComponent>>renderContentOn: html > (html div) with: [ > html text: 'Hello World!' > ] > > Remember that the "with:" message "paints" the brush (chain all > modifications before it, otherwise they won't appear), and go tromping > through the Seaside-Canvas and Seaside-Canvas-Tags categories to figure > out what's supported... > > Good luck, > > Jeremy > > > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Rick Zaccone a écrit : >>> I'm looking for a Seaside 2.6 example that uses a Canvas? Any >>> example, >>> regardless of the size, would be useful. Would someone please supply >>> a >>> pointer? I didn't see anything on <http://seaside.st/>. >> >> Have a look at Pier and Magritte, both available on SqueakMap. Canvas is >> very simple to use. You can have a look at this post from Avi : >> http://lists.squeakfoundation.org/pipermail/seaside/2005-June/005260.html >> >> - -- >> Damien Cassou >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.1 (GNU/Linux) >> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org >> >> iD8DBQFD1oX63hhx1vOEX5sRAiOfAKCM6kfiqFPuC7kYy+rWUe4JjBG9iACfe2YG >> 5jg6e0/ayKyAYgLKm4P6J5I= >> =cYsl >> -----END PGP SIGNATURE----- >> _______________________________________________ >> Seaside mailing list >> Seaside@xxxxxxxxxxxxxxxxxxxxxxxxxx >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > > GPG PUBLIC KEY: 0xA2B36CE5 > GPG PUBLIC KEY: 0xA2B36CE5 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Seaside 2.6 Example?: 00208, Jeremy Shute |
|---|---|
| Next by Date: | Re: Seaside 2.6 Example?: 00208, Rick Zaccone |
| Previous by Thread: | Re: Seaside 2.6 Example?i: 00208, Jeremy Shute |
| Next by Thread: | Re: Seaside 2.6 Example?: 00208, Wilkes Joiner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |