I have noticed some strange behaviour with some buttons on various screens of my app. Sometimes when as new panel is displayed or made visible again a button on the screen changes shape from having rounded edges to just the top left corner being rounded and the rest as square. In one case I removed a line of code that did a panel.bringtofront and that stopped the behaviour.
In all cases I am using code as below to setup the buttons and the button drawable property is set to Defaultdrawable.
Thanks for any help.
In all cases I am using code as below to setup the buttons and the button drawable property is set to Defaultdrawable.
B4X:
btnClearDrawable.Initialize
btncdEnabled.Initialize(btnColorEnabled,15)
btncdEnabled1.Initialize(btnColorEnabled1,15)
btncdPressed.Initialize(btnColorPressed,15)
btndefaultdrawable.Initialize(btnColorEnabled,15)
btnClearDrawable.AddState(btnClearDrawable.State_Pressed, btncdPressed)
btnClearDrawable.AddState(btnClearDrawable.State_Enabled, btncdEnabled)
btnClearDrawable.AddCatchAllState(btndefaultdrawable)
btnclear.Background = btnClearDrawable
btnclear.TextColor = Main.btntextcolor2
Thanks for any help.