[Cuis-dev] Button with icon

Juan Vuletich juan at cuis.st
Tue May 27 13:37:19 PDT 2025


On 5/27/2025 5:19 PM, Hilaire Fernandes via Cuis-dev wrote:
>
> Then what about that. What a user may expect as a result when reading 
> at that code? Could it be treated as a special case to indicate only icon?
>
> button := PluggableButtonMorph model: 42 action: #startGame ::
>         enableSelector: #notNil;
>         icon: Theme current playIcon;
>         borderWidth: 2;
>         color: Color transparent;
>         borderColor: Color black;
>         setBalloonText: 'Play the game';
>         morphExtent: 64 asPoint.
>
>
> -- 
> http://mamot.fr/@drgeo

Sure, but how we specify "icon + visible button" then? If we make it 
'iconPlusButtonShape:' then we'd also change 'label:' into 
'labelPlusButtonShape:' for consistency. It seemed to me that buttons to 
have a button shape, and optional icon, label or both should be the 
default. In any case, we need to find good wording for all cases, right?

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250527/5fcfd813/attachment.htm>


More information about the Cuis-dev mailing list