Re: [Fxruby-users] FXGLViewer#translate
Status: Inactive
Brought to you by:
lyle
From: Joel V. <vj...@PA...> - 2003-06-17 01:49:58
|
Joel VanderWerf wrote: > > I want to change the viewer's position, and #translate is what seems to > do it in Fox. At least, that's how right-click-and-drag is implemented. > But calling translate thru the FXRuby interface doesn't seem to have any > effect. Anyone know how to do this? Just to be more precise, I applied the following patch to glviewer.rb. The zoom changes, but not the viewer position. --- glviewer.rb 2003-06-11 14:28:34.000000000 -0700 +++ glviewer-test.rb 2003-06-16 18:47:03.000000000 -0700 @@ -254,6 +254,9 @@ viewer = FXGLViewer.new(mdichild, @glvisual, self, ID_GLVIEWER, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT) + viewer.zoom = 2 + viewer.translate FXVec.new(100,100,100) + # Tab book with switchable panels panels = TabBook.new(frame, @mdiclient) |