Problem with tabs in glamour

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with tabs in glamour

Santiago Vidal
Hi, 
I'm running the following script:

| browser |
browser := GLMTabulator new.
browser
   row: [ :r | r column: #columnA; column: #columnB ].

browser transmit to: #columnA; andShow: [ :a |
a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value 1') ]
].
browser transmit from: #columnA; to: #columnB; andShow: [ :a |
a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse; display:#('data A' 'data B' 'data C'). 
a text titleIcon: GLMUIThemeExtraIcons glamorousAccept; display:'something'.
a text titleIcon: GLMUIThemeExtraIcons glamorousAdd; display:'add something'.
].

browser openOn: MooseModel root allModels anyOne.

The problem is that after selecting a value in columnA the columnB is opened in the last tab (the one with the glamorousAdd icon). I want the first tab (the one with the glamorousBrowse icon) to be opened instead. How can I do that?
Thanks in advance.
Cheers,
  Santiago

--
Santiago Vidal

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Problem with tabs in glamour

Tudor Girba-2
Hi,

This is a bug. Please open a bug report.

If you use text instead of icons, it works:
| browser |
browser := GLMTabulator new.
browser
   row: [ :r | r column: #columnA; column: #columnB ].

browser transmit to: #columnA; andShow: [ :a |
        a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value 1') ]
].
browser transmit from: #columnA; to: #columnB; andShow: [ :a |
                a list title:'Browse'; display:#('data A' 'data B' 'data C').
                a text title: 'Accept'; display:'something'.
                a text title: 'Add'; display:'add something'.
].
browser openOn: MooseModel root allModels anyOne.

Cheers,
Doru


On 26 Jan 2012, at 16:19, Santiago Vidal wrote:

> Hi,
> I'm running the following script:
>
> | browser |
> browser := GLMTabulator new.
> browser
>    row: [ :r | r column: #columnA; column: #columnB ].
>
> browser transmit to: #columnA; andShow: [ :a |
> a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value 1') ]
> ].
> browser transmit from: #columnA; to: #columnB; andShow: [ :a |
> a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse; display:#('data A' 'data B' 'data C').
> a text titleIcon: GLMUIThemeExtraIcons glamorousAccept; display:'something'.
> a text titleIcon: GLMUIThemeExtraIcons glamorousAdd; display:'add something'.
> ].
>
> browser openOn: MooseModel root allModels anyOne.
>
> The problem is that after selecting a value in columnA the columnB is opened in the last tab (the one with the glamorousAdd icon). I want the first tab (the one with the glamorousBrowse icon) to be opened instead. How can I do that?
> Thanks in advance.
> Cheers,
>   Santiago
>
> --
> Santiago Vidal
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"To lead is not to demand things, it is to make them happen."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Problem with tabs in glamour

Santiago Vidal
Thanks for your answer. 
I've opened a bug report.
Cheers,
  Santiago

2012/1/28 Tudor Girba <[hidden email]>
Hi,

This is a bug. Please open a bug report.

If you use text instead of icons, it works:
| browser |
browser := GLMTabulator new.
browser
  row: [ :r | r column: #columnA; column: #columnB ].

browser transmit to: #columnA; andShow: [ :a |
       a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value 1') ]
].
browser transmit from: #columnA; to: #columnB; andShow: [ :a |
               a list title:'Browse'; display:#('data A' 'data B' 'data C').
               a text title: 'Accept'; display:'something'.
               a text title: 'Add'; display:'add something'.
].
browser openOn: MooseModel root allModels anyOne.

Cheers,
Doru


On 26 Jan 2012, at 16:19, Santiago Vidal wrote:

> Hi,
> I'm running the following script:
>
> | browser |
> browser := GLMTabulator new.
> browser
>    row: [ :r | r column: #columnA; column: #columnB ].
>
> browser transmit to: #columnA; andShow: [ :a |
>       a list display: [" :model | "#('Value 1' 'Value 2' 'Value 3' 'Value 1') ]
> ].
> browser transmit from: #columnA; to: #columnB; andShow: [ :a |
>               a list titleIcon: GLMUIThemeExtraIcons glamorousBrowse; display:#('data A' 'data B' 'data C').
>               a text titleIcon: GLMUIThemeExtraIcons glamorousAccept; display:'something'.
>               a text titleIcon: GLMUIThemeExtraIcons glamorousAdd; display:'add something'.
> ].
>
> browser openOn: MooseModel root allModels anyOne.
>
> The problem is that after selecting a value in columnA the columnB is opened in the last tab (the one with the glamorousAdd icon). I want the first tab (the one with the glamorousBrowse icon) to be opened instead. How can I do that?
> Thanks in advance.
> Cheers,
>   Santiago
>
> --
> Santiago Vidal
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"To lead is not to demand things, it is to make them happen."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Santiago Vidal

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev