I have a program that causes the curves of the corners of a panel to disappear when I change a radio button.
I have enclosed a test program. (Test_Corner.zip)
If the program is started and the radio button "Test1" is pressed, a red panel with rounded corners and a vertical line appears.
If the "Test2" radio button is then pressed, the same panel appears in green without rounded corners, but without a vertical line. The curves at the corners are gone.
If you then press the “Test1” radio button again, the red panel with the vertical line appears again. But the rounded corners are now missing here too.
Question1: Can I prevent the rounded corners from disappearing when using Canvas?
Question 2: If I can't prevent it, how can I restore the rounding of the corners using program code.
Sorry for the bad English. Must work with Google Translate.
Greetings strupp01
I have enclosed a test program. (Test_Corner.zip)
If the program is started and the radio button "Test1" is pressed, a red panel with rounded corners and a vertical line appears.
If the "Test2" radio button is then pressed, the same panel appears in green without rounded corners, but without a vertical line. The curves at the corners are gone.
If you then press the “Test1” radio button again, the red panel with the vertical line appears again. But the rounded corners are now missing here too.
Question1: Can I prevent the rounded corners from disappearing when using Canvas?
Question 2: If I can't prevent it, how can I restore the rounding of the corners using program code.
Sorry for the bad English. Must work with Google Translate.
Greetings strupp01