'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
Yes, because of that you "are forced" to comment out the CustomBuildAction (B4XMainPage) to be able to run the project.- What is sp‚cifi this file? I get an error 'sp‚cifi' not found in D:\B4X\Users\Shared Files\. So the project cannot be compiled!
Perhaps it is due to the fact that you did not zip the B4XPages project correctly as already reported by LucaMs.
I don't know what "sp‚cifi" is - it's not mine! I swear! ? However new zip file correctly created is in the first post. Sorry!- What is sp‚cifi this file? I get an error 'sp‚cifi' not found in D:\B4X\Users\Shared Files\. So the project cannot be compiled!
Perhaps it is due to the fact that you did not zip the B4XPages project correctly as already reported by LucaMs.
I'm studying the drawer; I've no problem with the Erel's example. I would like to create a project with a drawer (the drawer1) for page 2 and page 3 and a second drawer (the drawer2) only for page 4 and 5. It is just to understand how drawer works and so implement in some project in the future.- I don't understand what exactly you want to do and I don't understand your logic.
When I studied "TableAndForms" example I noted that the entire project is demanded to EditableTable, including buttons event. So, I thought it was a way to keep clean the project.- You have B4XPagex modules where you do nothing ! Why ?
This project is only to study purpose. So, the mdlPageX is quite empty and just manage some silly event. It is there only because in future project they may contain more code (such like EditableTable in TableAndForms example).- Then you have mdlPagex modules. What are these supposed to do ? These are referenced in the B4XPagex modules but nothing concrete is done!?
Il punto è proprio qui. Non è un problema per me creare un drawer per una pagina. L'esempio di Erel (https://www.b4x.com/android/forum/threads/b4x-b4xpages-b4xdrawer.120246/) è abbastanza chiaro per me, ma nell'esempio il drawer appare solo in una pagina. Per avere il medesimo drawer su più pagine viene suggerito:E' un vero macello!
Ogni B4XPage ha i propri eventi. Se, come mi sembra di capire non approfondendo perché il tutto è piuttosto complesso (per non dire complicato), passi una B4XPage ad una classe (mdlDrawer) gli dovresti "passare" (delegare) anche gli eventi di quella B4XPage.
You can implement the code that builds the drawer in its own class and create a new class instance in each of the pages
che è quello che ho cercato di fare con un risultato pessimo. Anzi, mi sa che ho fatto il contrario di quanto suggerito... ma mi sfugge come creare una nuova istanza di classe in ogni pagina.You might have a look at the B4XPagesNavBar project in the B4X Cross-platform projects booklet.
It uses a navigation bar at the bottom of each page, it is not exactly what are looking for but it could inspire you.
Non c'è modo, devi farlo a mano; ovvero, nel tuo esempio, aprire la cartella B4J, "tagliare" (non copiare) la classe (B4XPage ma vale per qualunque altro modulo) e incollarla in quella che potremmo chiamare la "root dei progetti" (?), cioè allo stesso livello della B4XMainPage. Poi di nuovo importarla nel tuo progetto B4J, spuntando il "relative link".Ma come posso usare il comando "Add an existing module" e aggiungere questo modulo nella stessa cartella del modulo B4XMainPage? Questo non mi è chiaro. Se io volessi spostare le B4XPage del mio progetto dalla cartella "B4J", dove sono adesso, alla cartella dove si trova il modulo B4XMainPage come dovrei fare? Forse creare una nuova B4XPage e copiare il codice? (Forse è una domanda stupida ma non saprei come altro fare).
Pur conoscendo la differenza tra i due comandi, all'atto pratico cosa cambia se poi il vecchio modulo sarà rimosso a beneficio del secondo?(...) "tagliare" (non copiare) (...)
Grazie anche da parte mia!
YesQuesto potrebbe voler dire che gli eventi dei due layout (CenterPanel e LeftPanel) devono essere gestiti nel modulo dove è inizializzato il drawer?
Copying updated assets files (8)
Application_Start
Application_Active
Error occurred on line: 370 (B4XPagesManager)
Expected: UIView, object type: b4i_b4xpage4
Stack Trace: (
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 1155368
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 119500
B4XPageAndDrawers -[B4IObjectWrapper setObject:] + 276
B4XPageAndDrawers -[B4XViewWrapper setObject:] + 152
B4XPageAndDrawers +[B4IObjectWrapper createWrapperbject:] + 108
B4XPageAndDrawers -[b4i_b4xpage4 _b4xpage_created::] + 876
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 1173616
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 8144
B4XPageAndDrawers +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
B4XPageAndDrawers -[B4ICommon CallSubDebug4::::] + 1080
B4XPageAndDrawers -[B4ICommon CallSubDebug2::::] + 372
B4XPageAndDrawers -[b4i_b4xpagesmanager _createpageifneeded::] + 1192
B4XPageAndDrawers -[b4i_b4xpagesmanager _showpageandremovepreviouspages::] + 960
B4XPageAndDrawers -[b4i_b4xpages _showpageandremovepreviouspages:] + 568
B4XPageAndDrawers -[b4i_b4xmainpage _btnpage4_click:] + 560
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 1173616
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 8144
B4XPageAndDrawers +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
B4XPageAndDrawers -[B4IShell runMethod:] + 448
B4XPageAndDrawers -[B4IShell raiseEventImpl:method:args::] + 2172
B4XPageAndDrawers -[B4IShellBI raiseEvent:eventarams:] + 1580
B4XPageAndDrawers __33-[B4I raiseUIEvent:eventarams:]_block_invoke + 60
libdispatch.dylib A564FA91-A3E3-3A41-AFD1-410FAD72E52A + 393880
libdispatch.dylib A564FA91-A3E3-3A41-AFD1-410FAD72E52A + 397952
libdispatch.dylib A564FA91-A3E3-3A41-AFD1-410FAD72E52A + 66108
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 629808
CoreFoundation F80FCA31-BF76-3293-8BC6-1729588AE8B6 + 606440
CoreFoundation CFRunLoopRunSpecific + 572
GraphicsServices GSEventRunModal + 160
UIKitCore 00EA1426-38F7-3FD2-BE01-04EBD44ECA35 + 11669508
UIKitCore UIApplicationMain + 164
B4XPageAndDrawers main + 124
libdyld.dylib 77E57314-8A58-3064-90C0-8AF9A4745430 + 5528
)
Maybe I'm lost but... are you sure Klaus?I do not use your mdlPageX modules only B4XPageX modules.
Yes, I am sure.Maybe I'm lost but... are you sure Klaus?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?