B4J Question Button navigation / indexing

Elric

Well-Known Member
Licensed User
Hi everybody!

Designing two or more buttons, you may navigate between them with arrows.

There is a way to change the indexing? (Other than using tag property)

There is a way to disable that?

Thank you!
 
Solution
To stop a Node (Button, Textfield etc.) from being part of the focus cycle without disabling it, You can use:

B4X:
N.As(JavaObject).Runmethod("setFocusTraversable",Array(False))

Magma

Expert
Licensed User
Longtime User
You can change the indexing by changing the order of creation or in Visual designer, changing the order at Views Tree by Dragging them...

I don't know if it is possible with some java disable focus at all.

I know that you can disable them (uncheck Enabled) - so will not focus then....
 
Upvote 1

stevel05

Expert
Licensed User
Longtime User
To stop a Node (Button, Textfield etc.) from being part of the focus cycle without disabling it, You can use:

B4X:
N.As(JavaObject).Runmethod("setFocusTraversable",Array(False))
 
Last edited:
Upvote 1
Solution
Top