FormLib and modules

Cableguy

Expert
Licensed User
Longtime User
While trying to make a Numeric panel module, that could change its parent, using the FormLib's Changeparent method....I just can't....
Is the current FormLib dll fully compatible with modules?
Here's part of my code:

B4X:
Public Sub NUMPanelShow(x,y,PanelParent) '-PanelParent will hold the parent names to hange the panel to
ErrorLabel (Continue) '-Tese 3 lnes re sed to chek if the formlib object has already been added, if exists, continue
FL.New1("NUMPanelForm",B4PObject(1))
Continue:
NumPanel.Top=y
NumPanel.Left=x
For a=1 To 12 '-ties the button click events to one sub
AddEvent("Button"&a,Click,"CheckButton")
Next
FL.ChangeParent("NumKeyPanel.NUMPanel","form1") '-should change the parent, but even forcing the new parents name won't work
End Sub
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
There may be some diferences in my actual coe as it has passed throught a few testings...and fail...
 

Attachments

  • xxx.sbp
    571 bytes · Views: 132
Top