All pastes #551331 Raw Edit

toolbar add / remove

public text v1 · immutable
·published 2007-06-08 19:16 UTC
rendered paste body
alias hidesep {
  toolbar -r
  var %n = 1
  while (%n <= 9) {
    toolbar -d sep $+ %n
    inc %n
  }
  if ($version !< 6.21) toolbar -fs
  addicon
}
alias addicon {
  if ($toolbar(about) != $null) toolbar -d about
  if ($exists(Icons\cp.bmp) != $false) && ($toolbar(CPanel) == $null) { toolbar -a CPanel "Control Panel" Icons\cp.bmp "/F9" }
  if ($exists(Icons\mp3.jpg) != $false) && ($toolbar(Mp3) == $null) { toolbar -a Mp3 "Mp3 Player" Icons\mp3.jpg "/F5" }
  if ($exists(Icons\ie.jpg) != $false) && ($toolbar(IE) == $null) { toolbar -a IE "Default Browser" Icons\ie.jpg "/home" }
}