[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."
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@gmail.com> To: "Pharo Development" <pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
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@gmail.com> To: "Pharo Development" <pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Fantastic! Thanks, Gary. Doru On 30 Sep 2009, at 16:07, 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@gmail.com> To: "Pharo Development" <pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- www.tudorgirba.com "Problem solving should be concentrated on describing the problem in a way that is relevant for the solution."
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@gmail.com> To: "Pharo Development" <pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
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@gmail.com> To: "Pharo Development" <pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@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.
There are no stupid question! Just if you ask 5 times the same. But never before this is that people did not answer well Stef On Sep 30, 2009, at 8:23 PM, nullPointer wrote:
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@gmail.com> To: "Pharo Development" <pharo-project@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@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@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.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (5)
-
Alexandre Bergel -
Gary Chambers -
nullPointer -
Stéphane Ducasse -
Tudor Girba