B4J Question SplitPane with dynamic layout

StarinschiAndrei

Active Member
Licensed User
Longtime User
Hi all,
I try to create an app based on SplitPane, each side are created dynamically. I would like to send a value from one side to other (with the bottons from left side i would like to change the label value in right sige). Attached a test project.
upload_2016-9-20_11-37-23.png
upload_2016-9-20_11-38-22.png
 

Attachments

  • testApp.zip
    3.2 KB · Views: 239

Erel

B4X founder
Staff member
Licensed User
Longtime User
You should really avoid using FXML files. They are only kept supported for backwards compatibility. This is especially true with controls that were added after B4J v3.5 like SplitPane.

I think that in this case the usage of classes only makes your code more complicated.

A complete example is attached.
 

Attachments

  • 1.zip
    3.6 KB · Views: 281
Upvote 0

StarinschiAndrei

Active Member
Licensed User
Longtime User
You should really avoid using FXML files. They are only kept supported for backwards compatibility. This is especially true with controls that were added after B4J v3.5 like SplitPane.

I think that in this case the usage of classes only makes your code more complicated.

A complete example is attached.
Thank you , i try to follow your advice
 
Upvote 0
Top