I need to add a button to a panel . This I must do with addview, because I must add alot of of buttons and I wont do this with the designer.
b.initialze is in B4i and b4a different. Clearly I can work with #if b4i #else ...
But I thought lets take a b4xview insteed of a button.
But there is no b.Initialize
Custom views are designed to be added with the designer. It is however very simple to create a layout file with the custom view and load it multiple times. Tip: remove the call to AutoScaleAll from the designer script. Complete example: Sub Globals Private B4XSwitch1 As B4XSwitch End...
Custom views are designed to be added with the designer. It is however very simple to create a layout file with the custom view and load it multiple times. Tip: remove the call to AutoScaleAll from the designer script. Complete example: Sub Globals Private B4XSwitch1 As B4XSwitch End...
www.b4x.com
Use Button to be able to use initialize and then cast it to a b4xview