Astan Chee wrote: > Anyway, is there a demo or example of putting scrollbars on the > NavCanvas (or any FloatCanvas)?
I'm pretty sure someone has done this, but I never got a demo -- anyone know? In any case, what it would be is a different NavCanvas (maybe call it ScrollCanvas). It should be pretty straightforward to catch the scroll events and call FloatCanvas.MoveImage. The only tricky bit I foresee is that the total "size" of a FloatCanvas is undefined -- however, there is a total BoundingBox that is defined when objects are on the Canvas. You may need to catch when the BoundingBox changes, so you can adjust the scroll bars appropriately. I'm not sure how to do that off the top of my head, but if you can't figure it out, I'll look into it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
