[Pharo-project] tabs with icons?

Stéphane Ducasse stephane.ducasse at inria.fr
Wed Sep 30 14:43:07 EDT 2009


check if it makes sense and submit in the UITheme example like methods.
This is important to have examples inside the image.

stef

On Sep 30, 2009, at 4:07 PM, Alexandre Bergel wrote:

> 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" <tudor.girba at gmail.com>
>> To: "Pharo Development" <pharo-project at lists.gforge.inria.fr>
>> 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
>>> Pharo-project at lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project at lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project





More information about the Pharo-dev mailing list