Win32Lib Error Fixes
- Posted by C Bouzy <CBouzy at Egisca.??m> May 01, 2008
- 712 views
Hello All, Today I began using the latest Win32Lib for Nexus Radio and I found two errors. Look for the procedure setScrollRange and find:
ctrl_Range[ id ][1] = { min, max }
Replace it with:
ctrl_Range[ id ][1] = { min, max } ctrl_Range[ id ][2] = { min, max }
Also replace the DefProcessing function with the follow code:
----------------------------------------------------------------------------- function DefProcessing(integer id, integer pSource, atom hWnd, atom iMsg, atom wParam, atom lParam) ----------------------------------------------------------------------------- atom lResult lResult = 0 if (id = 0) or (pSource = kMainMsg) then lResult = w32Func( xDefWindowProc, { hWnd, iMsg, wParam, lParam } ) else lResult = w32Func( xCallWindowProc, { ctrl_Function[id], hWnd, iMsg, wParam, lParam } ) end if if lResult = 0 then return 0 else return lResult end if end function r_defaultProcessing = routine_id("DefProcessing")
~ CBouzy "If you do what you have always done, you will get what you always got."