D Dman Active Member Licensed User Longtime User Oct 22, 2012 #1 I have added a button by code and I can see the button and the click event is working but I cannot see any text. What am I missing? B4X: wvhelpbtn.Initialize("wvhelpbtn") wvhelpbtn.Text = "Back" wvhelpbtn.TextColor = Colors.LightGray wvhelpbtn.Color = Colors.Black Activity.AddView(wvhelpbtn,0,90%y,100%x,99%y)
I have added a button by code and I can see the button and the click event is working but I cannot see any text. What am I missing? B4X: wvhelpbtn.Initialize("wvhelpbtn") wvhelpbtn.Text = "Back" wvhelpbtn.TextColor = Colors.LightGray wvhelpbtn.Color = Colors.Black Activity.AddView(wvhelpbtn,0,90%y,100%x,99%y)
NJDude Expert Licensed User Longtime User Oct 22, 2012 #2 Change this line to: B4X: Activity.AddView(wvhelpbtn, 0dip, 90%y, 100%x, 100%y - 90%y) Upvote 0
D Dman Active Member Licensed User Longtime User Oct 22, 2012 #3 Yet another DRM. (Dummy Rookie Mistake) Thanks! Upvote 0