|
I created a RoundRectView and it draws itself with:
!RoundRectView methodsFor!
onPaintRequired: aPaintEvent
"Private - Handler for paint event. Show the shape"
| canvas |
canvas := aPaintEvent canvas.
canvas pen: (Pen
withStyle: 0
width: 2
color: Color black).
canvas brush: Brush transparent.
canvas rectangle: (1 @ 1 corner: self width @ self height) round: 40 @
40! !
!RoundRectView categoriesFor: #onPaintRequired:!event handling!private! !
I created a RoundRectPresenter for it and I added the view with:
RoundRectPresenter addView: RoundRectView asResource: 'Default view'.
I don't know why but in the View Composer, when I add a
"RoundRectPresenter.Default View" to a view, I can not make it
transparent even if I set the "isTransparent" aspect at true ...
Thanks,
Joseph
|