B4J Question [DSE] Simple example to hide and move panels

aeric

Expert
Licensed User
Longtime User
Hi guys,
Can anyone provide a simple example for me to learn how Designer Script Extension (DSE) works?
Let say I have a top panel (PaneLogo) and a bottom panel (PaneData). Inside PaneLogo there is a B4XImageView (BLogo) and inside PaneData, there is a Label (LData).
I want to hide PaneLogo based on a boolean variable (blnShowLogo) so when the Logo is hidden, the bottom panel (PaneData) will move up.
The width of this layout changes dynamically based on a parent layout and this changes the size of the Logo (width = 30% of the PaneLogo's width).
Thanks in advanced.

1693810319821.png
 

aeric

Expert
Licensed User
Longtime User
I think I solved the issue with the moving panel.

B4X:
Dim DSView1 As B4XView = DesignerArgs.GetViewByName("PaneLogo")
Dim DSView2 As B4XView = DesignerArgs.GetViewByName("PaneData")

But I have another issue. I need more checking on my code.
 
Upvote 0
Top