Ok, I've tried several ways of making this work, but I haven't hit the magic
button yet. Here is my layout example: 

defaultSpec
        <spec: #default>

        ^SpecLayout composed
                newRow: [ :row1 | 
                        row1
                                newColumn: [ :col1 | 
                                        col1 newRow: [ :row2 | 
                                                row2 add: #openButton; add: 
#createButton]] width: 160;
                                newColumn: [ :col2 |
                                        col2 newRow: [ :row3 | 
                                                row3 add: #descriptorName]] 
width: 200; 
                                newColumn: [ :col3 | 
                                        col3 newRow: [ :row4 | 
                                                row4 add: #saveButton; add: 
#abandonButton]] width: 160]
                        height: self toolbarHeight 
                yourself

This is the closest that I can get to what I want. The two left hand buttons
are fixed width and are attached to the left side of the row. The two right
hand buttons are fixed width and are attached to the right side of the row.
The center textInputField is attached to the left side of its' column. When
I try to float it in its' column, it simply disappears. 

When the view is expanded and contracted, the buttons stay attached as
desired. 

I don't know how to float the textInputField column to expand and contract
while leaving the left and right button columns to remain fixed. 




-----
Brad Selfridge
--
View this message in context: 
http://forum.world.st/Spec-Widget-positioning-tp4911599p4911779.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to