Hi,
working on my first (simple) ABMaterial HowTo app to switch an LED connected to a Raspberry Pi.
Two buttons are used ON and OFF which enabled state is depending switching.
When clicking button ON, its set to disabled and button OFF set to enabled.
To show in the HTML page, the button state, tested in sub button click:
Q: Strange behavior when using page.refresh, noticed that the content of a par is replaced by some unknown text. In below example instead of my message, a number from another cell is displayed?
Attached the early code in progress --- still learning --- the row/cell concept not getting the full understanding
... thinking of a simple addrow(number of cells), like add a row with 4 cells = addrow(4). The cells are then split across the screen 100/4 = 25% wide each ... but ok, its another question.
working on my first (simple) ABMaterial HowTo app to switch an LED connected to a Raspberry Pi.
Two buttons are used ON and OFF which enabled state is depending switching.
When clicking button ON, its set to disabled and button OFF set to enabled.
To show in the HTML page, the button state, tested in sub button click:
- ws.Flush: no button visual update shown
- page.ws.Flush: no button visual update shown
- page.Refresh: button visual update is shown
Q: Strange behavior when using page.refresh, noticed that the content of a par is replaced by some unknown text. In below example instead of my message, a number from another cell is displayed?
B4X:
' row 4
page.AddRows(1,False, "").AddCells12(1,"")
...
Dim msg As String = "My Message"
page.Cell(4,1).AddComponent(ABMShared.BuildParagraph(page,"par3",msg) )
Attached the early code in progress --- still learning --- the row/cell concept not getting the full understanding