Bug? Class initialize error

tremara1

Active Member
Licensed User
Longtime User
Bug maybe.......maybe me. I have included a project I did a while ago, I am sure it worked but in the current version of b4j I seem to have an issue with the initialization of a class. It is colorpicker class. In the initialize it needs 4 params
B4X:
Public Sub Initialize(Module As Object,EventName As String,Pane1 As Pane,Color As Paint)
I initialize in the appStart with
B4X:
CP.Initialize(Me,"CP",pnlCP,fx.Colors.Black) ' colorpicker
I am getting an error "too many parameters" as I said I am sure it worked before. Have I missed something in the updates?
 

Attachments

  • colors1.zip
    53.2 KB · Views: 206

Ed Brown

Active Member
Licensed User
Longtime User
Hello @tremara1

If you rename the class module 'ColorPicker' to something else it will work. There is a conflict with your Class Module and the ColorPicker control.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…