T touchvip Member Licensed User Longtime User Mar 16, 2012 #1 Hello All, I create views (objects) such as Spinners, Panels, ListViews, Buttons, Labels, Edittexts at runtime. How to assign it Event Code
Hello All, I create views (objects) such as Spinners, Panels, ListViews, Buttons, Labels, Edittexts at runtime. How to assign it Event Code
NJDude Expert Licensed User Longtime User Mar 16, 2012 #2 You create the event when you initialize the view, for example: B4X: Dim MyButton As Button MyButton.Initialize("MyButton") '<-- This is the event name If you need examples and tutorials check THIS page. Upvote 0
You create the event when you initialize the view, for example: B4X: Dim MyButton As Button MyButton.Initialize("MyButton") '<-- This is the event name If you need examples and tutorials check THIS page.
T touchvip Member Licensed User Longtime User Mar 16, 2012 #3 Thanks ,I need dynamic control creation and Assign Event Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 16, 2012 #4 As NJDude answered, this is the way to assign events at runtime. See this tutorial: Tick-Tack-Toe: working with arrays of views Upvote 0
As NJDude answered, this is the way to assign events at runtime. See this tutorial: Tick-Tack-Toe: working with arrays of views
J Jost aus Soest Active Member Licensed User Longtime User Mar 16, 2012 #5 ...and you should read the informations about the Sender object: Basic4android - Core Upvote 0
J Jost aus Soest Active Member Licensed User Longtime User Mar 16, 2012 #7 touchvip said: Thanks, problem solving Click to expand... You're welcome! Upvote 0