I'm going round in circles on this so posting and hoping someone can save my sanity.
I'm creating a view that lists conversations (like the main Whatsapp view or any other messaging app) for B4A & B4i. An xCustomListView holds a panel for each conversation. The right hand side of the panel has a label which shows the number of unread messages in that convo.
In the B4A version I can easily round the corners of the label to make it look like whatever number displayed is in a circle.
(How rounded the corners are is a #DesignerProperty of the control)
In B4i I am having an issue. As each panel is drawn, the corners are rounded (I can see this if I put breakpoints in my code). When all the panels have been drawn, the curved corners go back to being square.
Here it is, paused just after adding 3 panels....
and here is immediately after the click event (which adds the entries) finishes.
I can't spot where I've gone wrong! Hoping somebody would be kind enough to point me in the right direction.
The B4i part of the project (including demo cod) is attached along with the custom view as code.
Thanks in advance!
I'm creating a view that lists conversations (like the main Whatsapp view or any other messaging app) for B4A & B4i. An xCustomListView holds a panel for each conversation. The right hand side of the panel has a label which shows the number of unread messages in that convo.
In the B4A version I can easily round the corners of the label to make it look like whatever number displayed is in a circle.
(How rounded the corners are is a #DesignerProperty of the control)
In B4i I am having an issue. As each panel is drawn, the corners are rounded (I can see this if I put breakpoints in my code). When all the panels have been drawn, the curved corners go back to being square.
Here it is, paused just after adding 3 panels....
and here is immediately after the click event (which adds the entries) finishes.
I can't spot where I've gone wrong! Hoping somebody would be kind enough to point me in the right direction.
The B4i part of the project (including demo cod) is attached along with the custom view as code.
Thanks in advance!
Attachments
Last edited: