1.  
  2. var headerToolbar = new BiToolBar();
  3. ...
  4. var expandImg = new BiImage("./empty.gif");
  5. expandImg.setSize(10,14);
  6. var expandBtn = new BiToolBarButton();
  7. expandBtn.setUserData("Expand");
  8. expandBtn.setIcon(expandImg);
  9. expandBtn.setStyleProperty("backgroundImage", "url(./bigBackground.gif)");
  10. expandBtn.setStyleProperty("backgroundRepeat", "no-repeat");
  11. expandBtn.setStyleProperty("backgroundPosition", "-28px 0");
  12. headerToolbar.add(expandBtn);
  13. ...
  14. var closeImg = new BiImage("./empty.gif");
  15. closeImg.setSize(15,14);
  16. var closeBtn = new BiToolBarButton();
  17. closeBtn.setUserData("Close");
  18. closeBtn.setIcon(closeImg);
  19. closeBtn.setStyleProperty("backgroundImage", "url(./bigBackground.gif)");
  20. closeBtn.setStyleProperty("backgroundRepeat", "no-repeat");
  21. closeBtn.setStyleProperty("backgroundPosition", "-74px 0");
  22. headerToolbar.add(closeBtn);
  23. headerToolbar.setRight(2);
  24. headerToolbar.setTop(3);
  25.  
  26.