SBAR=FRAME:CreateStatusBar(1)

SBAR:Connect(-1,wx.wxEVT_ENTER_WINDOW,function(EV)  SBAR:SetStatusText("Observe me well, for I am a Status Bar. >:)")  end)
SBAR:Connect(-1,wx.wxEVT_LEAVE_WINDOW,function(EV)  SBAR:SetStatusText("")  end)

for I=1,18 do
    AT[I]:Connect(-1,wx.wxEVT_ENTER_WINDOW,function(EV)  SBAR:SetStatusText("In Edit mode: click to copy, right click to paste. At any time, double click to toggle muting.")  end)
    AT[I]:Connect(-1,wx.wxEVT_LEAVE_WINDOW,function(EV)  SBAR:SetStatusText("")  end)
    AT[I]:SetToolTip("Operator "..1+math.mod(I-1,6).." Mute/Copy/Paste.")
end

TBAR:Connect(-1,wx.wxEVT_COMMAND_TOOL_ENTER,
    function(EV)  local X=EV:GetSelection()
    if (X==wx.wxID_NEW) then X="Reset all parameter values to defaults, drawn from a template voice file buffer called INIT."
    elseif (X==wx.wxID_OPEN) then X="Load a single voice, from a voice file (163 bytes) or a bank file of 32 voices (4104 bytes)."
    elseif (X==wx.wxID_SAVE) then X="Save to voice or bank. Bank must already exist. Hold Shift key to overwrite entire bank."
    elseif (X==wx.wxID_REVERT) then X="Recall the last edit session. A session is always recoverable until a new session is closed."
    elseif (X==200) then X="Send to remote machine via MIDI. This is automated at load/save, but not when editing."
    elseif (X==201) then X="Alternate between edit session and last loaded voice. Only available during edit session."
    elseif (X==202) then X="Show or hide a chart of DX7 FM algorithms. The current choice is indicated by a red line."
    elseif (X==203) then X="Show program configuration dialog: Device Number and Envelope Display Mode settings."
    else X=""
    end
    SBAR:SetStatusText(X)
    end
)
