Android Question [SOLVED] [B4X] [XUI] [B4XPAGES] SD AwesoneWheel with B4Xpages

magicmars

Member
Licensed User
Hi

I try to make this example and library work with B4XPage (B4A) s, but i get a white screen , loading the P4X page that contain the layout.


Here's my B4XPage class instance :

B4X:
Sub Class_Globals
    Private Root As B4XView 'ignore
    Private xui As XUI 'ignore
   
    Private AwVerb As AwesoneWheel
   
End Sub

'You can add more parameters here.
Public Sub Initialize As Object
    Return Me
End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    'load the layout to Root
    Root.LoadLayout("SxWheelPageLayout")
   
    AwVerb.AddItem("1", xui.Color_Magenta)
    AwVerb.AddItem("2", xui.Color_RGB(255,150,150))
    AwVerb.AddItem("3", xui.Color_RGB(255,150,150))
    Awverb.Text="Go !" ' Default is Play
   
   

End Sub

Not problem without p4Xpage with default type activity project.
Anyone know know to make this lib work with B4XPages ?
thank you
 

Star-Dust

Expert
Licensed User
Longtime User
Surely you are doing something wrong. I have attached an example to you
 

Attachments

  • wheel.zip
    14.2 KB · Views: 129
Upvote 0

magicmars

Member
Licensed User
I forgot to initialise the B4Xpage that call the weel !
That was silly ..., I just start with B4Xpages so it's not a habit I got used to ..


Thank you Star-Dust

B4X:
WheelPage.Initialize
B4XPages.AddPage("Wheel Page", WheelPage)
 
Upvote 0
Top