From: <sgs...@ni...> - 2003-09-24 16:20:43
|
On Thu, 25 Sep 2003 00:20:39 +0900 Masao Mutoh <mu...@hi...> wrote: > むとうです。 > > よくわかってないのですが、 > Gnome::Canvas#set_scroll_region()を指定すると > うまくいくようです。 ありがとうございます。確かにうまくいきました。 libgnomecanvas の API で調べると、 http://developer.gnome.org/doc/API/2.0/libgnomecanvas/libgnomecanvas-gnomecanvas.html#GNOME-CANVAS-SET-SCROLL-REGION gnome_canvas_set_scroll_region () Sets the scrolling region of a canvas to the specified rectangle. The canvas will then be able to scroll only within this region. The view of the canvas is adjusted as appropriate to display as much of the new region as possible. Excite の翻訳 指定された長方形にキャンバスのスクロールする地域をセットします。 その後、キャンバスはこの地域内にのみスクロールすることができるでしょう。新しい地域に できるだけ表示することが適切なように、キャンバスの視界が調節されます。 う〜む、判ったような判らないような。「調節」されて左上が (0.0, 0.0)になるってことか? -- たむら (http://www.rubyist.net/~tamura/d/) |