void TextCtrl::StdBar(Bar& menu) { NextUndo(); if(undosteps) { menu.Add(/*IsEditable() && */undo.GetCount(), t_("Undo"), THISBACK(Undo)) .Key(K_ALT_BACKSPACE) .Key(K_CTRL_Z); menu.Add(/*IsEditable() && */redo.GetCount(), t_("Redo"), THISBACK(Redo)) .Key(K_SHIFT|K_ALT_BACKSPACE) .Key(K_SHIFT_CTRL_Z); menu.Separator(); }
Report message to a moderator