[Cuis-dev] Form on a vector canvas

Juan Vuletich juan at jvuletich.org
Mon Jan 4 12:53:46 PST 2021


Hi Hilaire,

On 1/3/2021 5:42 PM, Hilaire Fernandes via Cuis-dev wrote:
>
> Juan,
>
> The patch you provided works nicely:
>
> The ChevronMorph (actionable buttons in the circular bar, both with or 
> without icon) are kind of PluggableButton. To get the expected 
> behavior when clicking the chevron, I have to write morphContain: to 
> respond always true. It makes the behavior working when mouseUp (I 
> have not tested the other behaviors). It does not seem to affect the 
> other behavior of the chevron.
>

Well, it is a hack I don't like, but the easiest solution until we draw 
everything with VectorCanvas, and then #morphContainsPoint: is no longer 
needed.

> Code for try out at: https://github.com/hilaire/cuis-xp, 
> Morphic-Circular package
>
> A few remarks:
>
>     * An option to not rotate the icon would be nice. See the toolbar,
>       at the bottom the icon is up side down and may not be easy to
>       recognize.
>

Just added it.

>     * When there is an error in the drawOn: method, I noted Cuis gets
>       lock in a loop. The red rectangle we usually have on drawing
>       error does not show up.
>

Oh, yes. That was a bug in HybridCanvas. Just fixed it. Thanks!

> Thanks
>
> Hilaire
>
> Le 03/01/2021 à 16:37, Juan Vuletich a écrit :
>> Well, the idea is to add support for drawing Forms to VectorEngine. I 
>> haven't given that priority yet, because I think in general vector 
>> graphics are preferable (if it is possible to choose).
>>
>> The attach is a hack using the venerable WarpBlt, that can rotate and 
>> scale Forms. Please try it. It might suffice until we have the 
>> VectorEngine VM plugin. If it works for you, I'll later merge it.
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> https://pouet.chapril.org/@hilaire

Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210104/48abd4a7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 48457 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210104/48abd4a7/attachment-0001.jpe>


More information about the Cuis-dev mailing list