Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference enclosing frame in PaintCode expression

I'm trying to use paint code to draw a roundrect with different corner radii. I have nearly everything working by drawing two circles and two roundrects. The problem is I can't make one of the roundrects draw at x offset circle radius have width of "frame.width - circle_radius" - the end effect being it keeps aligned to the right hand edge of the frame.

shapes

It feels like I should be able to write frame.width - largeCornerRadius in an expression editor but PaintCode objects to the frame reference.

That said, i's beginning to feels like I could write this code quicker by hand :-)

like image 598
Rog Avatar asked Nov 10 '22 06:11

Rog


1 Answers

I don't have an answer to my specific stated question but I have discovered a better way to draw my roundrect as four different rects and turning off the roundrects on the "inner corners:

enter image description here

As you'd expect the drawing code is much better and it resizes well with the enclosing frame.

like image 105
Rog Avatar answered Nov 15 '22 06:11

Rog