alimanam3386 Active Member Licensed User Longtime User Jul 31, 2020 #1 I have tried to use this Cross platform chat layout example with B4XPages, I changed some of code for example I used just one page as chat page and all the views are loaded by call loadLayout function like this : B4X: Copy Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("chat") Engine.Initialize(pnlContent) bc.Initialize(300, 300) TextField.NextField = TextField End Sub when I try to add item to clv I get error : Error occurred on line: 876 (BCTextEngine) Object was not initialized (NSObject) Click to expand... I attached the code. how can I fix this error ? thanks Attachments sample.zip sample.zip 173.2 KB · Views: 462
I have tried to use this Cross platform chat layout example with B4XPages, I changed some of code for example I used just one page as chat page and all the views are loaded by call loadLayout function like this : B4X: Copy Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("chat") Engine.Initialize(pnlContent) bc.Initialize(300, 300) TextField.NextField = TextField End Sub when I try to add item to clv I get error : Error occurred on line: 876 (BCTextEngine) Object was not initialized (NSObject) Click to expand... I attached the code. how can I fix this error ? thanks
I IdasI4A Active Member Licensed User Longtime User Aug 1, 2020 #2 Try with B4X: Copy Engine.Initialize(Root) Upvote 0
alimanam3386 Active Member Licensed User Longtime User Aug 1, 2020 #3 IdasI4A said: Try with B4X: Copy Engine.Initialize(Root) Click to expand... Nice! ? Upvote 0