[Pharo-project] tabs with icons?

nullPointer epicfan at gmail.com
Wed Sep 30 14:23:13 EDT 2009



Is possible add and remove tabs dinamically?

Exists a method for add tabs ( #labelsAndPages or something similar ) , but
not is possible add a tab, and later remove by key, for example, without
remove alls with that method?

Regards, and excuse me if is a stupid question :)


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
> 
> 

-- 
View this message in context: http://n2.nabble.com/tabs-with-icons-tp3738940p3744448.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




More information about the Pharo-dev mailing list