M MarkoMylo Member Licensed User Longtime User Feb 23, 2013 #1 in designer i created LABEL form with label1 name, how to add text to label from program or how to change label text when pressing button. tried everything but does not work in globals Dim Label1 As Label in activity create Label1.Initialize("") Label1.TextSize= 30 Label1.text= "b4a" text "b4a" doesnt appear
in designer i created LABEL form with label1 name, how to add text to label from program or how to change label text when pressing button. tried everything but does not work in globals Dim Label1 As Label in activity create Label1.Initialize("") Label1.TextSize= 30 Label1.text= "b4a" text "b4a" doesnt appear
Mark Read Well-Known Member Licensed User Longtime User Feb 23, 2013 #2 Could it be that you have forgotten to add the label to the activity? Code: Copy Activity.Addview(Label1, left, top, width, height) Replace the position words with values eg, 0,0,100dip, 10dip Okay? Regards Mark Upvote 0
Could it be that you have forgotten to add the label to the activity? Code: Copy Activity.Addview(Label1, left, top, width, height) Replace the position words with values eg, 0,0,100dip, 10dip Okay? Regards Mark
M MarkoMylo Member Licensed User Longtime User Feb 23, 2013 #3 mark35at said: Could it be that you have forgotten to add the label to the activity? Code: Copy Activity.Addview(Label1, left, top, width, height) Replace the position words with values eg, 0,0,100dip, 10dip Okay? Regards Mark Click to expand... i m able to see label but no text Upvote 0
mark35at said: Could it be that you have forgotten to add the label to the activity? Code: Copy Activity.Addview(Label1, left, top, width, height) Replace the position words with values eg, 0,0,100dip, 10dip Okay? Regards Mark Click to expand... i m able to see label but no text
Mark Read Well-Known Member Licensed User Longtime User Feb 23, 2013 #4 Sorry I missed the first few words. in designer i created LABEL form with label1 name, Click to expand... and then Label1.Initialize("") Click to expand... If the layout is created in designer then you don't need this line! Regards Mark Upvote 0
Sorry I missed the first few words. in designer i created LABEL form with label1 name, Click to expand... and then Label1.Initialize("") Click to expand... If the layout is created in designer then you don't need this line! Regards Mark
A AndroIwe Member Licensed User Longtime User Feb 23, 2013 #5 When i test this and i do not Initialize the Label the Output seems correct. Code: Copy Activity.LoadLayout("Label") Label1.TextSize= 30 Label1.text= "b4a" Upvote 0
When i test this and i do not Initialize the Label the Output seems correct. Code: Copy Activity.LoadLayout("Label") Label1.TextSize= 30 Label1.text= "b4a"