P Pantelis Member Licensed User Longtime User Jun 22, 2013 #1 Is there any way to have edittext event from a label like visualbasic?
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2013 #2 Not sure that I understand. EditText is a view not an event. Upvote 0
P Pantelis Member Licensed User Longtime User Jun 23, 2013 #3 Oops, sorry Erel. I meant TextChanged Event. Is it possible to have a textchanged event from a label? Last edited: Jun 23, 2013 Upvote 0
Oops, sorry Erel. I meant TextChanged Event. Is it possible to have a textchanged event from a label?
mc73 Well-Known Member Licensed User Longtime User Jun 23, 2013 #4 Can you give an example? How is the text of the label supposed to be changed? Which ever way this is going to happen, it will surely be a result of your app, thus you can call a textChanged sub from the position at which you're changing this text. Upvote 0
Can you give an example? How is the text of the label supposed to be changed? Which ever way this is going to happen, it will surely be a result of your app, thus you can call a textChanged sub from the position at which you're changing this text.
P Pantelis Member Licensed User Longtime User Jun 23, 2013 #5 Hi mc73 I want to show some information in some Views. I don't want to let the user to change the information and I want these Views to be transparent to background. So I must use labels and not EditText Views. The information on these labels is going to be changed from the application of course but from more than one sub depending on some conditions. So I have two choices. Automatically execute some code if is it possible to raise an event when the values of those labels changed or to call the TextChange sub from every sub that is going to change the values of these labels. Upvote 0
Hi mc73 I want to show some information in some Views. I don't want to let the user to change the information and I want these Views to be transparent to background. So I must use labels and not EditText Views. The information on these labels is going to be changed from the application of course but from more than one sub depending on some conditions. So I have two choices. Automatically execute some code if is it possible to raise an event when the values of those labels changed or to call the TextChange sub from every sub that is going to change the values of these labels.
barx Well-Known Member Licensed User Longtime User Jun 23, 2013 #6 Create a sub, something like: Code: Copy Sub Label1_TextChanged Some Code End Sub Then in your code, whenever you change the Label1.Text, after put: Code: Copy Label1_TextChanged to call the sub Upvote 0
Create a sub, something like: Code: Copy Sub Label1_TextChanged Some Code End Sub Then in your code, whenever you change the Label1.Text, after put: Code: Copy Label1_TextChanged to call the sub