FormEx question

davelew1s

Active Member
Licensed User
Longtime User
I've recently started to update an app I wrote some time ago using FormEx, I found Erel's editable table which should be perfect for me, but it doesn't work with FormEx, I don't get any errors .... or combo boxes. I've searched the forum but didn't find any mention of this. Can anyone help?
Thanks Dave.
 

Cableguy

Expert
Licensed User
Longtime User
The comboboxes parents is NOT a normal form..
So when the parent must be redifined,,Using Formex.ref as the name for the parent...I hope to have been clear..if you can, and still cant make it work, post your code and "we" will have a look at it
 

davelew1s

Active Member
Licensed User
Longtime User
Hi!
Thanks for both replies I have included Erel's Editable table modified with FormEx it is not the code I'm using but it demonstrates my problem.
Dave.
p.s. this is the first time I have included a file so i hope it works.
 

Attachments

  • FormEx EditableTable.zip
    4.6 KB · Views: 205

agraham

Expert
Licensed User
Longtime User
The "AddXxxx" keywords don't work on a FormEx so you need to add to a normal Form then "steal" the resulting control and place it on the FormEx.
B4X:
AddTimer("Timer1")
AddPanel("Main.Form1","pnlEdit",20,20,110,26)
AddTextBox("pnlEdit","txtEdit",2,2,22,22,"")
AddImageButton("pnlEdit","btnAccept",2,2,25,20,"")
AddComboBox("pnlEdit","cmbEdit",2,2,22,22)
[COLOR="Red"]Main.FormEx1.AddControl("pnlEdit")[/COLOR]
 
Top