I am trying to change the TextSize of all buttons in all the existing pages in B4XMainPage or at least in each page B4XPage_Created, but I have no idea how to get a reference to each b4xpage, or even to the b4xpage in its B4XPage_Created event.
And then I have no idea if that b4xpage reference in the actual container of the buttons I added in the visual designer anyway...
I found this: https://www.b4x.com/android/forum/t...hole-application-in-android.96308/post-607642 but it does not apply to B4XPages.
I tried these in a B4XPage_Created event, they don't work:
And then I have no idea if that b4xpage reference in the actual container of the buttons I added in the visual designer anyway...
I found this: https://www.b4x.com/android/forum/t...hole-application-in-android.96308/post-607642 but it does not apply to B4XPages.
I tried these in a B4XPage_Created event, they don't work:
B4X:
For Each b As Button In B4XPages.GetNativeParent(Me)
If b Is Button Then Log("button") 'b.TextSize = 12
Next
For Each b As Button In Root
If b Is Button Then Log("button") 'b.TextSize = 12
Next