G gpa Member Licensed User Longtime User Jan 12, 2017 #1 Hi... Is there a way to get all the properties etc from Visual Designer as text, so you can convert to code rather than a using a design file? The generate options only seem to create dims and event handlers? I think I am missing something obvious! Thanks!
Hi... Is there a way to get all the properties etc from Visual Designer as text, so you can convert to code rather than a using a design file? The generate options only seem to create dims and event handlers? I think I am missing something obvious! Thanks!
Eme Fibonacci Well-Known Member Licensed User Longtime User Jan 12, 2017 #2 Please can you tell me more about what you need? I think did not understand. (Using the generate option) Once declared you have access to all properties. Code: 'Globals Dim Label1 As Label 'Sub Label1.Text="Hello World" Label1.TextColor=Colors.Blue Upvote 0
Please can you tell me more about what you need? I think did not understand. (Using the generate option) Once declared you have access to all properties. Code: 'Globals Dim Label1 As Label 'Sub Label1.Text="Hello World" Label1.TextColor=Colors.Blue
MaFu Well-Known Member Licensed User Longtime User Jan 12, 2017 #3 What he means: he will create the layout with the desingner and then convert the design file to B4A source (as if the layout created by code). Upvote 0
What he means: he will create the layout with the desingner and then convert the design file to B4A source (as if the layout created by code).
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2017 #4 There is no automatic way to convert the layout file to code. Note that you can convert the layout file to a json file if you like (search for bal2bil). Upvote 0
There is no automatic way to convert the layout file to code. Note that you can convert the layout file to a json file if you like (search for bal2bil).
G gpa Member Licensed User Longtime User Jan 13, 2017 #5 Thanks for the replies. Maybe in the future, it would be handy to extend "generate" to dump all the set properties from the designer? Meantime bal2bil looks very useful! Thanks! Upvote 0
Thanks for the replies. Maybe in the future, it would be handy to extend "generate" to dump all the set properties from the designer? Meantime bal2bil looks very useful! Thanks!