temp_dc.SetPen(wxPen( wxColour(167,165,191),1,wxSOLID ));
temp_dc.DrawRectangle(0, 0, bar_height, bar_width-deviceEndMargin);
}
temp_dc.SetPen(wxPen( wxColour(167,165,191),1,wxSOLID ));
temp_dc.DrawRectangle(0, 0, bar_height, bar_width-deviceEndMargin);
}