M Malky Active Member Licensed User Longtime User Jan 27, 2013 #1 I need to change the layout values, image, texts and button names etc depending on a previous selection. How do I access these values to change them? i.e. Activity.LoadLayout("details") I need to change the image which has an imageview name of imgProperty. Malky
I need to change the layout values, image, texts and button names etc depending on a previous selection. How do I access these values to change them? i.e. Activity.LoadLayout("details") I need to change the image which has an imageview name of imgProperty. Malky
JonPM Well-Known Member Licensed User Longtime User Jan 27, 2013 #2 Did you select Generate Members in the designer? This will add the code to your activity so you can modify views Upvote 0
Did you select Generate Members in the designer? This will add the code to your activity so you can modify views
M madSac Active Member Licensed User Longtime User Jan 27, 2013 #3 Malky said: I need to change the layout values, image, texts and button names etc depending on a previous selection. How do I access these values to change them? i.e. Activity.LoadLayout("details") I need to change the image which has an imageview name of imgProperty. Malky Click to expand... ".......change......button names......." , What you actually want to do ? Upvote 0
Malky said: I need to change the layout values, image, texts and button names etc depending on a previous selection. How do I access these values to change them? i.e. Activity.LoadLayout("details") I need to change the image which has an imageview name of imgProperty. Malky Click to expand... ".......change......button names......." , What you actually want to do ?
M Malky Active Member Licensed User Longtime User Jan 27, 2013 #4 I have a layout with components, (just cut it to a label for now). I need to change that label text dynamically. Malky Upvote 0
I have a layout with components, (just cut it to a label for now). I need to change that label text dynamically. Malky
mc73 Well-Known Member Licensed User Longtime User Jan 27, 2013 #5 B4X: yourLabel.text="your text" As JonPM already said, firstly you should generate members from the designer ('dim yourLabel' would show up in the globals sub). Upvote 0
B4X: yourLabel.text="your text" As JonPM already said, firstly you should generate members from the designer ('dim yourLabel' would show up in the globals sub).
M Malky Active Member Licensed User Longtime User Jan 27, 2013 #6 Ah, I see now. I thought I only had to generate items with an associated event, button.click etc! Will try that now. Many thanks guys, Malky Upvote 0
Ah, I see now. I thought I only had to generate items with an associated event, button.click etc! Will try that now. Many thanks guys, Malky
M madSac Active Member Licensed User Longtime User Jan 29, 2013 #7 Don't use word 'name' in place of 'caption' it can create confusion. Upvote 0