1.  
  2. var expandImg = new BiImage("./empty.gif");
  3. expandImg.setSize(15,14);
  4. var expandBtn = new BiToolBarButton();
  5. expandBtn.setUserData("Expand");
  6. expandBtn.setIcon(expandImg);
  7. expandBtn.setAppearance("MyWindowToolBarButton MyExpandButton");
  8. headerToolbar.add(expandBtn);
  9.  
  10. var closeImg = new BiImage("./empty.gif");
  11. closeImg.setSize(15,14);
  12. var closeBtn = new BiToolBarButton();
  13. closeBtn.setUserData("Close");
  14. closeBtn.setIcon(closeImg);
  15. closeBtn.setAppearance("MyWindowToolBarButton MyCloseButton");
  16. ...
  17.  
  18.