Re: AW: [Fxruby-users] ScrollArea#positon
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-09-24 15:30:59
|
Recheis Meinrad wrote: > as posted before i think, > something is fishy with ScrollArea#positon > i'm getting the error > `position': wrong # of arguments(0 for 4) (ArgumentError) > while trying to access my (FXScrollWindow) scrollwindow.position. > i wonder, because fox C++ documentation does not contain this method. This sounds like a bug. The position() method is overloaded in the C++ FOX library. If you look at the FXWindow class (an ancestor of FXScrollWindow) you'll see one version of position that takes four arguments (x, y, w, h). That version is for setting the window's position and dimensions inside its parent window. The other version of position, as you have noted, is found in the FXScrollArea class, and takes zero arguments. It should return the current position of the scroll window's contents. My intention was that if you call FXScrollWindow#position with four arguments, you get the first version; if you call it with zero arguments, you get the second version. Obviously, something is broken and so I'll try to get this fixed promptly. Thanks, Lyle |