ivanomonti Expert Licensed User Longtime User Nov 8, 2014 #1 How can I create a selection menu !!! Thank
Erel B4X founder Staff member Licensed User Longtime User Nov 9, 2014 #2 What do you mean with a selection menu? Upvote 0
ivanomonti Expert Licensed User Longtime User Nov 9, 2014 #3 hi Erel, classic menu selection or popupmenu or similar thank Upvote 0
ilan Expert Licensed User Longtime User Nov 9, 2014 #4 take a panel and put some buttons in it, or use the picker... Upvote 0
ivanomonti Expert Licensed User Longtime User Nov 9, 2014 #5 Hi Ian, but certainly the click event of textField is a disaster, I hand everything from corrections to the proposed ios, I wish I propose only the picker. Upvote 0
Hi Ian, but certainly the click event of textField is a disaster, I hand everything from corrections to the proposed ios, I wish I propose only the picker.
ilan Expert Licensed User Longtime User Nov 9, 2014 #6 why is the click event a disaster?? works very fine for me, you can create your menu in designer and but some buttons with the same clickevent, put a value to button.tag and get the value via Sender like this u got only 1 click event and should work very well i use it like this in my apps and the good thing is you can costumize it as you want not like picker where it is not costumizeable... Code: sub btn_click dim b as button = Sender if b.tag = "button1" then 'first button in Menu was clicked .... 'here what you want to do when button1 was clicked else if b.tag = "button2" then 'second button in Menu was clicked ... 'here what you want to do when button2 was clicked end if end sub example: Upvote 0
why is the click event a disaster?? works very fine for me, you can create your menu in designer and but some buttons with the same clickevent, put a value to button.tag and get the value via Sender like this u got only 1 click event and should work very well i use it like this in my apps and the good thing is you can costumize it as you want not like picker where it is not costumizeable... Code: sub btn_click dim b as button = Sender if b.tag = "button1" then 'first button in Menu was clicked .... 'here what you want to do when button1 was clicked else if b.tag = "button2" then 'second button in Menu was clicked ... 'here what you want to do when button2 was clicked end if end sub example:
ivanomonti Expert Licensed User Longtime User Nov 9, 2014 #7 Use the menu add voice to put in a textfield, the click and be the textfield not a button. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 9, 2014 #8 Check ActionSheet. It displays a popup menu. Upvote 0
ivanomonti Expert Licensed User Longtime User Nov 9, 2014 #9 hi Erel, I do not understand, I can take a trivial example Code: dim tx2 as TextField tx2.Initialize("tx2") tx2.Text = "Categoria" tx2.Tag = tx2.Text tx2.ShowClearButton = True pane.AddView(tx2,l,t,w,h) How can I disable all the controls of the object Upvote 0
hi Erel, I do not understand, I can take a trivial example Code: dim tx2 as TextField tx2.Initialize("tx2") tx2.Text = "Categoria" tx2.Tag = tx2.Text tx2.ShowClearButton = True pane.AddView(tx2,l,t,w,h) How can I disable all the controls of the object
ivanomonti Expert Licensed User Longtime User Nov 9, 2014 #10 I solved it by putting a button in the add textFied Code: tx2.Initialize("tx2") tx2.Text = "" tx2.HintText = "Categoria" tx2.Tag = tx2.HintText pane.AddView(tx2,l,t,w,h) Dim btx1 As Button btx1.Initialize("btx1",btx1.STYLE_CONTACT_ADD) btx1.Text = "" pane.AddView(btx1,(w-22),t,50,h) Upvote 0
I solved it by putting a button in the add textFied Code: tx2.Initialize("tx2") tx2.Text = "" tx2.HintText = "Categoria" tx2.Tag = tx2.HintText pane.AddView(tx2,l,t,w,h) Dim btx1 As Button btx1.Initialize("btx1",btx1.STYLE_CONTACT_ADD) btx1.Text = "" pane.AddView(btx1,(w-22),t,50,h)