Android Question [SOLVED] B4XFloatTextField How to make it Visible?

WhiteWizard

Member
Licensed User
I put a simple B4XFloatTextField in a layout and clear the property Visible. When the Layout apears, the B4XFloatTextField is not visible. Then when the user press a button I want that control to apears, I have tried:
txtServerConfig.mBase.Visible =True
txtServerConfig.TextField.Visible = True

Perhaps the problem is cos I defined the variable under?:
B4X:
Sub Class_Globals
    Private txtServerConfig As B4XFloatTextField
End Sub

Really if the visual designer shows a Visible option, the B4XFloatTextField should have some high level property to make the control visible, without the need to access the lower level controls, call then mBase or TextField, its frustrating to expend 6 hours or days to make a control visible. What I'm missing?
 

WhiteWizard

Member
Licensed User
Shure the problem is the Keyboard hiding the control, I had read 2 questions about it, however I defend my position, B4XFloatTextField is incomplete.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
B4XFloatTextField is incomplete.
Your best bet if you suspect that a feature is buggy and incomplete is to reproduce the problem in a small project and export it to the forum for others to test drive and see if they share your concerns. I use B4XFloafTextField and am generally happy with its features. So many times, we jump to conclusions because we are frustrated by a problem we cannot readily solve and do not see the forest for the trees, and that is including myself, only to find out that someone comes back with a solution to prove our assessment wrong.
 
Upvote 0

WhiteWizard

Member
Licensed User
Yea, but if B4XFloattextField had a Visible property, and others properties to handle color of the diferent low level control that compouse it, a newbie could just write the name of the object, then a point, and the languaje will show all the properties he need, is´t practical, it´s what I sow on many other languajes that I'be learn. And when we see the upper bar from the forum B4X web page, in the search box, it would be nice to search the documentation of the reserved word not only the user's trheads, but even doing that, I think the docs are very thin about it.
 
Upvote 0

Jorge M A

Well-Known Member
Licensed User
Longtime User
Something else you can try is the update method, after manipulating the properties of the view
B4X:
txtServerConfig.Update
(Not Tested.)
 
Upvote 0

WhiteWizard

Member
Licensed User
The Solution was to put this code uppon pressing the button that unhides the control:
B4X:
Sub btnConfig_Click
    Dim P As Phone
    
    'Log("si")
    txtServerConfig.mBase.Visible =True
    txtServerConfig.TextField.Visible = True
    
    P.HideKeyboard(Root)
    txtServerConfig.RequestFocusAndShowKeyboard
End Sub
 
Upvote 0
Top