FormLib and modules

Discussion in 'Questions (Windows Mobile)' started by Cableguy, Oct 22, 2008.

  1. Cableguy

    Cableguy Expert Licensed 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:

    Code:
    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: Oct 22, 2008
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload your complete code?
    I made a small program with ChangeParent and it worked fine.
     
  3. Cableguy

    Cableguy Expert Licensed User

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

    Attached Files:

    • xxx.sbp
      File size:
      571 bytes
      Views:
      30
  4. Erel

    Erel Administrator Staff Member Licensed User

    You forgot the module file...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice