R ronell Well-Known Member Licensed User Longtime User Dec 19, 2016 #1 how do i create a spinner with 3 items, if i select 1 of the item , display a msgbox with label of the current item selected, can someone show some sample codes? sorry for my bad english
how do i create a spinner with 3 items, if i select 1 of the item , display a msgbox with label of the current item selected, can someone show some sample codes? sorry for my bad english
mangojack Expert Licensed User Longtime User Dec 19, 2016 #2 In Designer place 3 Labels with Text on a Panel.and set the Event Name the same ... ie MenuLabel. Generate a Click event for only 1 label. Set Panel.Visible property to hide and show menu. then in the MenuLabel_Click event ... Code: Dim lbl as Label = Sender Log (lbl.Text) 'or use in message box If you nee further assistance maybe refer to beginners guide ... https://www.b4x.com/android/files/guide.zip Upvote 0
In Designer place 3 Labels with Text on a Panel.and set the Event Name the same ... ie MenuLabel. Generate a Click event for only 1 label. Set Panel.Visible property to hide and show menu. then in the MenuLabel_Click event ... Code: Dim lbl as Label = Sender Log (lbl.Text) 'or use in message box If you nee further assistance maybe refer to beginners guide ... https://www.b4x.com/android/files/guide.zip
R ronell Well-Known Member Licensed User Longtime User Dec 19, 2016 #3 tnx for the help! i'l try that code Upvote 0