well, I solved my problem. The code is not as short as I expected, but is still 
much shorter than `Layout DSL` version. the main changes lies in 2 parts:

btw, we can't use V:|-[file2(sheet2,cr2)]-[sheet2]-[cr2]-|

  1. seperate the discription
  2. use `Explicit Constraint Syntax`


    
    
    outer: staticbox2
        H:|-{file2:[textFile2(btnFile2*5)]-[btnFile2]}-|
        H:|-{sheet2:[lblSheet2(cboxSheet2/5)]-[cboxSheet2]}-|
        
H:|-{cr2:[lblCol2(txtCol2,lblStartRow2,txtStartRow2,lblEndRow2,txtEndRow2)]-[txtCol2]-[lblStartRow2]-[txtStartRow2]-[lblEndRow2]-[txtEndRow2]}-|
        V:|-[file2]-[sheet2]-[cr2]-|
        
        C: textFile2.height = lblSheet2.height
        C: lblSheet2.height = lblCol2.height
    
    
    Run

Reply via email to