U unba1300 Guest Jan 16, 2014 #1 Hi. I have a panel with some radio buttons which is the child of a larger panel and this larger panel is loaded as a panel layout into a scrollview on the main activity layout. But I get a initialization error when first getting to the code to make the radiobutton checked or not. I didn't think we had to initialize things that were part of a layout? This is in Activity_Create: Code: Activity.LoadLayout("LayoutCats") scvCats.Panel.LoadLayout("LayoutCatsPanel") And this is in Activity_Resume: Code: Select stateFav Case 0 radCatsPanelRadio0.Checked = True Case 1 radCatsPanelRadio1.Checked = True Case 2 radCatsPanelRadio2.Checked = True Case 3 radCatsPanelRadio3.Checked = True End Select Last edited by a moderator: Jan 16, 2014
Hi. I have a panel with some radio buttons which is the child of a larger panel and this larger panel is loaded as a panel layout into a scrollview on the main activity layout. But I get a initialization error when first getting to the code to make the radiobutton checked or not. I didn't think we had to initialize things that were part of a layout? This is in Activity_Create: Code: Activity.LoadLayout("LayoutCats") scvCats.Panel.LoadLayout("LayoutCatsPanel") And this is in Activity_Resume: Code: Select stateFav Case 0 radCatsPanelRadio0.Checked = True Case 1 radCatsPanelRadio1.Checked = True Case 2 radCatsPanelRadio2.Checked = True Case 3 radCatsPanelRadio3.Checked = True End Select
stevel05 Expert Licensed User Longtime User Jan 17, 2014 #2 If they are in loaded layout you don't need to initialize them. Are they Dimmed in Sub Globals with the same name as they have in the designer? Upvote 0
If they are in loaded layout you don't need to initialize them. Are they Dimmed in Sub Globals with the same name as they have in the designer?
U unba1300 Guest Jan 17, 2014 #3 Silly me. That was the problem - I dimmed them with different names. Thank you. Upvote 0