propgrid.bmx error

BlitzMax Forums/Brucey's Modules/propgrid.bmx error

rs22(Posted 2008) [#1]
When I try to run the propgrid.bmx sample, it gives me the following error (line 609):

"Unable to convert from 'String Array' to 'Int Array'"

If I comment out that line (probably a bad idea ;p), it gives me more errors.

EDIT: Also, in the mdi.bmx sample, the child windows open in separate windows, not as children of the main window.


Brucey(Posted 2008) [#2]
I think there's a bug in the mdi example...

On line 194(ish), try changing :
		Local subframe:MyChild = MyChild(New MyChild.Create(frame, -1, "Canvas Frame"))

to...
		Local subframe:MyChild = MyChild(New MyChild.CreateCF(frame, -1, "Canvas Frame"))

(note that is CreateCF !!).
The problem we have with BlitzMax is a lack of overloading of methods, so instead of Create() we need to call CreateCF() instead, which is specific for a wxMDIChildFrame.

Lemme know if that works!


Brucey(Posted 2008) [#3]
For the propgrid sample, check you have the latest module code, and also that you've built it.


rs22(Posted 2008) [#4]
Both work now. Thanks! :) I -always- forget to build modules.