Re: SetScrollPos
- Posted by Brian Broker <bkb at CNW.COM> May 30, 2000
- 435 views
On Tue, 30 May 2000 19:35:24 -0400, wolfgang fritz wrote: >I don't know if you're trying this with win32lib, but if function >GetScrollPosition() ended with: > >-- NEW! 0.50c > elsif window_type[ id ] = ProgressBar then > > return sendMessage( id, PBM_GETPOS, 0, 0 ) > > else return -1 ---*** added line here !!! > > end if > >end function > >... it should work OK. > >Wolf Thanks for the patch, Wolf. I was trying to do an example and just couldn't figure out what the heck was going on (I got different behavior from version .44, .45 and .50). Version .45r was giving me the divide by zero in getScrollPosition and version .50c was giving me a 'function must return a value' error. ...and you provided the example on top of it!!! Kudos... -- Brian