Chris Guanzon Active Member Licensed User Longtime User May 27, 2020 #1 Anyone know how to use B4XDrawer in B4J? I want to use it in my desktop app. I tried using it but i don't know what to put in the "activity" B4X: Copy Drawer.Initialize(Me, "Drawer", Activity, 85%x)
Anyone know how to use B4XDrawer in B4J? I want to use it in my desktop app. I tried using it but i don't know what to put in the "activity" B4X: Copy Drawer.Initialize(Me, "Drawer", Activity, 85%x)
DonManfred Expert Licensed User Longtime User May 27, 2020 #2 I don´t think that you can use it in B4J. The drawer is a Android Feature. Upvote 0
Chris Guanzon Active Member Licensed User Longtime User May 27, 2020 #3 Thank you DonManfred, is there any library same as B4XDrawer for B4J? Upvote 0
udg Expert Licensed User Longtime User May 27, 2020 #4 Months ago I designed something similar to B4xDrawer for B4J, but never finalized it. So it was not published. The basic idea is really simple: two panels, where left (or menu) panel slides in/out covering part of main panel which gets covered by a partially transparent third panel so to intercepts clicks on areas not covered by the menu panel. Upvote 0
Months ago I designed something similar to B4xDrawer for B4J, but never finalized it. So it was not published. The basic idea is really simple: two panels, where left (or menu) panel slides in/out covering part of main panel which gets covered by a partially transparent third panel so to intercepts clicks on areas not covered by the menu panel.
Erel B4X founder Staff member Licensed User Longtime User May 27, 2020 #5 The complicated stuff in B4XDrawer (which is a B4A / B4i library) is to handle the gesture. This is less relevant on the desktop. Implementing a drawer without a gesture should be simple. Just create a panel and slide it with B4XView.SetLayoutAnimated. Upvote 0
The complicated stuff in B4XDrawer (which is a B4A / B4i library) is to handle the gesture. This is less relevant on the desktop. Implementing a drawer without a gesture should be simple. Just create a panel and slide it with B4XView.SetLayoutAnimated.
Chris Guanzon Active Member Licensed User Longtime User May 27, 2020 #6 Erel said: The complicated stuff in B4XDrawer (which is a B4A / B4i library) is to handle the gesture. This is less relevant on the desktop. Implementing a drawer without a gesture should be simple. Just create a panel and slide it with B4XView.SetLayoutAnimated. Click to expand... The reason why is because i want to use a touchscreen monitor for my app using windows/linux os. Anyway, I already use B4XView.SetLayoutAnimated, but pane doesn't have elevation property like panel in b4a. Upvote 0
Erel said: The complicated stuff in B4XDrawer (which is a B4A / B4i library) is to handle the gesture. This is less relevant on the desktop. Implementing a drawer without a gesture should be simple. Just create a panel and slide it with B4XView.SetLayoutAnimated. Click to expand... The reason why is because i want to use a touchscreen monitor for my app using windows/linux os. Anyway, I already use B4XView.SetLayoutAnimated, but pane doesn't have elevation property like panel in b4a.
Erel B4X founder Staff member Licensed User Longtime User May 27, 2020 #7 Chris Guanzon said: but pane doesn't have elevation property like panel in b4a. Click to expand... This is not important. Just call BringToFront. Upvote 0
Chris Guanzon said: but pane doesn't have elevation property like panel in b4a. Click to expand... This is not important. Just call BringToFront.
Chris Guanzon Active Member Licensed User Longtime User May 27, 2020 #8 I just like the shadow in panel when you add elevation. Anyway, i will stick to b4xview.setlayoutanimated for now. I wish elevation will be added in Pane in the next update to add more beauty to User Interface. Thanks a lot for the answer. Upvote 0
I just like the shadow in panel when you add elevation. Anyway, i will stick to b4xview.setlayoutanimated for now. I wish elevation will be added in Pane in the next update to add more beauty to User Interface. Thanks a lot for the answer.
Erel B4X founder Staff member Licensed User Longtime User May 27, 2020 #9 You can add shadows with the visual designer. Upvote 0
Chris Guanzon Active Member Licensed User Longtime User May 27, 2020 #10 But the shadow is Inner Shadow only, no Drop shadow like label and textfield. Upvote 0