Multi column list box error

BlitzMax Forums/MaxGUI Module/Multi column list box error

Ghost Dancer(Posted 2008) [#1]
I am modifying Ziltches code (which is the only multi column list code I could find) to make it more OO and I'm also planning to add a sort facility to it. Most of it works ok, but I'm having problems getting the clicks from the column headings.



This code gives the following errror:
Compile Error: Unable to convert from 'Int(Int,Int,Int,Int)' to 'Byte Ptr'
(line 31)

However, if I make oldListProc a global (line 19) and NewListProc a function (line 194) then it runs, but obviously that will not work for each object created. So it's obviously something to do with it being a method in the type, but I have no idea why. Any ideas?


SebHoll(Posted 2008) [#2]
Please use the [ codebox ] tags instead of [ code ] for large code snippets. What are the forum codes?


Ghost Dancer(Posted 2008) [#3]
I've managed to do a workaround for this. See http://www.blitzmax.com/Community/posts.php?topic=79559