I added the snippet here: http://code.google.com/p/pharo/wiki/CodeSnippets
Alexandre
On 30 Sep 2009, at 05:31, Gary Chambers wrote:
> TabGroupMorph/TabSelectorMorph support arbitrary morphs as well as
> text
> labels.
>
> An example:
>
>
> |dialog|
> dialog := (UITheme builder newPluggableDialogWindow: 'Example tabs')
> useDefaultOKButton.
> dialog contentMorph: (
> dialog newTabGroup: {
> (dialog newRow: {dialog newImage: MenuIcons smallFindIcon. dialog
> newLabel: 'Page 1'})->
> dialog newPanel.
> 'Page 2'->dialog newPanel}).
> dialog model: nil.
> World openModal: dialog
>
> Regards, Gary
>
> ----- Original Message -----
> From: "Tudor Girba" <[email protected]>
> To: "Pharo Development" <[email protected]>
> Sent: Tuesday, September 29, 2009 10:01 PM
> Subject: [Pharo-project] tabs with icons?
>
>
>> Hi,
>>
>> In Glamour we are using a TabGroupMorph (actually we use a subclass
>> that specifies LazyTabs). The question is if there is a way to add an
>> icon instead of a string?
>>
>> Or perhaps is there another solution for a tab control that allows
>> for
>> icons in the tabs?
>>
>> Cheers,
>> Doru
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "What we can governs what we wish."
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project