M Mike1970 Well-Known Member Licensed User Longtime User Mar 31, 2020 #1 hi everyone, today i was coding an app and when a tried to use an B4Xview the app crashed because it was not initliazed, so i tried to do B4X: view.Initialize but the ide says that the method does not exist D: Thanks Last edited: Mar 31, 2020
hi everyone, today i was coding an app and when a tried to use an B4Xview the app crashed because it was not initliazed, so i tried to do B4X: view.Initialize but the ide says that the method does not exist D: Thanks
M Mahares Expert Licensed User Longtime User Mar 31, 2020 #2 Did you add the XUI Views Lib to the lib pane and checked. Example: B4X: Private lbl As Label 'created in designer In activity Create: B4X: Dim b4xlbl As B4XView =lbl b4xlbl.Text="test" Upvote 0
Did you add the XUI Views Lib to the lib pane and checked. Example: B4X: Private lbl As Label 'created in designer In activity Create: B4X: Dim b4xlbl As B4XView =lbl b4xlbl.Text="test"
M Mike1970 Well-Known Member Licensed User Longtime User Mar 31, 2020 #3 Mahares said: B4X Views Lib Click to expand... you mean XUI or XUI Views? Mahares said: Private lbl As Label 'created in designer Click to expand... ohu.. you have to create it manually in the designer? can't you decalare only by code? Upvote 0
Mahares said: B4X Views Lib Click to expand... you mean XUI or XUI Views? Mahares said: Private lbl As Label 'created in designer Click to expand... ohu.. you have to create it manually in the designer? can't you decalare only by code?
klaus Expert Licensed User Longtime User Mar 31, 2020 #4 You can set almost any 'standard' view as a B4XView as shown in post #2. You can also create a B4XView (equivilant to Panel or Pane) with B4X: Private xpnlCursor As B4XView xpnlCursor = xui.CreatePanel("xpnlCursor") Upvote 0
You can set almost any 'standard' view as a B4XView as shown in post #2. You can also create a B4XView (equivilant to Panel or Pane) with B4X: Private xpnlCursor As B4XView xpnlCursor = xui.CreatePanel("xpnlCursor")
M Mike1970 Well-Known Member Licensed User Longtime User Mar 31, 2020 #5 klaus said: xpnlCursor = xui.CreatePanel("xpnlCursor") Click to expand... oooooooouuhh okok so this it the intiliaze for the b4xviews! Ok thanks! Upvote 0
klaus said: xpnlCursor = xui.CreatePanel("xpnlCursor") Click to expand... oooooooouuhh okok so this it the intiliaze for the b4xviews! Ok thanks!
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2020 #6 There is a conceptual mistake here. B4XView is a cross platform API that sits above the native controls. There is no initialize method because B4XView must wrap a native view. As Klaus wrote it can be any type of view. Mike1970 said: oooooooouuhh okok so this it the intiliaze for the b4xviews Click to expand... Not at all. This is just a convenient method to create a Panel (B4A / B4i) or a Pane (B4J). Like any other view it can be assigned to a B4XView. Upvote 0
There is a conceptual mistake here. B4XView is a cross platform API that sits above the native controls. There is no initialize method because B4XView must wrap a native view. As Klaus wrote it can be any type of view. Mike1970 said: oooooooouuhh okok so this it the intiliaze for the b4xviews Click to expand... Not at all. This is just a convenient method to create a Panel (B4A / B4i) or a Pane (B4J). Like any other view it can be assigned to a B4XView.
M Mike1970 Well-Known Member Licensed User Longtime User Mar 31, 2020 #7 Erel said: As Klaus wrote it can be any type of view Click to expand... Erel said: This is just a convenient method to create a Panel (B4A / B4i) or a Pane (B4J). Like any other view it can be assigned to a B4XView. Click to expand... Ok! thanks Erel for the informations! Upvote 0
Erel said: As Klaus wrote it can be any type of view Click to expand... Erel said: This is just a convenient method to create a Panel (B4A / B4i) or a Pane (B4J). Like any other view it can be assigned to a B4XView. Click to expand... Ok! thanks Erel for the informations!