On Sat, Oct 19, 2013 at 3:56 AM, Tudor Girba <tudor@tudorgirba.com> wrote:
Thanks. I took a look, but I would not want to add columnInset and splitterColor in the Glamour table presentation because Glamour should ideally remain higher level. In particular splitterColor should not be the concern of Glamour.

For now, I added a hardcoded columnInset to 3 in the renderer.

Ok. 
 

Cheers,
Doru



On Fri, Oct 18, 2013 at 6:21 PM, Usman Bhatti <usman.bhatti@gmail.com> wrote:
I think the slice would not work without these mcz files.




On Fri, Oct 18, 2013 at 12:44 PM, Usman Bhatti <usman.bhatti@gmail.com> wrote:
Hello,

Here is a slice for the bug 985 regarding splitters in glamour tables. It should work with this script:

| wrapper |
wrapper := GLMWrapper new.
wrapper show: [:a | 
a table
display: [ :x | 1 to: x ]; 
columnInset: 4;
splitterColor: Color red;
column: [:x | 'Numbers from 1 to ', x asString] evaluated: #asString;
column: 'Even' evaluated: [ :each | each even asString ];
column: 'Odd' evaluated: [ :each | each odd asString ] ].
 wrapper openOn: 1000.

The idea is to provide the renderer with a columnInset number that acts as a padding between splitters and the cell so that these both dont overlap.

we also tried to add the notion of splitter color but when embedding widgets, the color of splitters is reset to transparent and that is beyond the scope of this bug. we still retained the concept of splitter color because it can be nice.

Drag and drop wont work with the slice as the mechanism is built to work with Pharo inbox, instead import the slice with Monticello.

Usman & Rafael



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev