I was looking for resizable widget logic. Forum search gave me excellent sample, thanks to @Sagenut
In the given sample code, the 4x1 widget service code has 'label1_click' event.
I wanted to add 'label2_click' from the layout designer but got error message,
Since 'label1_click' already exists in the code, I copy-pasted it as 'label2_click' and both works.
Now my query is if by manually writing the click event we can achieve what is required, why the designer is giving error message ?
Widget Layout (Resizable, Adaptive)
Not sure if this can be considered a Tutorial, my first attempt. Lately I started to play with Widgets, mostly for curiosity. The main problem I encountered was how to design the Layout to make it resizable and make the content to adapt automatically to size changes. Unluckily designing a widget...
www.b4x.com
In the given sample code, the 4x1 widget service code has 'label1_click' event.
I wanted to add 'label2_click' from the layout designer but got error message,
B4X:
current module does not support layout events
Since 'label1_click' already exists in the code, I copy-pasted it as 'label2_click' and both works.
B4X:
Sub Label1_Click
rv.UpdateWidget
End Sub
Sub Label2_Click
rv.SetText("Label2", DateTime.Time(DateTime.Now))
Sleep(100)
rv.UpdateWidget
End Sub
Now my query is if by manually writing the click event we can achieve what is required, why the designer is giving error message ?