Nine slice radio button with border control
Posted: 07 Apr 2026, 18:54
Hi Dorian! I've got a doozy of a problem here. Goal: Create a nine slice radio button with border control expanding inwards and gradients work properly.
I've made nine-slice buttons in the past, I know that it's a grid with 9 spaces, the corners are fixed and the middle is stretching. I tried to clip a rectangle shape for the middles but ran into problems with the stretching. I tried to stack paths within a grid to create the rectangle but the stroke edge doesn't expand inwards, it seems to expand from the center.
I've spent a lot of time on this and got to the point that I didn't think I could get it to work, so I'm reaching out to you for your advice.
Thanks as always! -Jeremy
I've made nine-slice buttons in the past, I know that it's a grid with 9 spaces, the corners are fixed and the middle is stretching. I tried to clip a rectangle shape for the middles but ran into problems with the stretching. I tried to stack paths within a grid to create the rectangle but the stroke edge doesn't expand inwards, it seems to expand from the center.
I've spent a lot of time on this and got to the point that I didn't think I could get it to work, so I'm reaching out to you for your advice.
Thanks as always! -Jeremy