The Road to Delphi – When you uses an Edit control like a TMemo or TEdit component a context menu pops up with options to undo, copy, paste, select all, etc. Unfortunally the TSynEdit component doesn’t include a menu like this, so you must write you own. You can fix this in a few lines of code using a interposer class. Check this unit which implements a standard context menu for a TSynEdit component, based on a TActionList (only be sure to include the uSynEditPopupEdit unit after of the SynEdit unit in your uses list). unit uSynEditPopupEdit; interface uses ActnList, Menus, Classes, SynEdit; type ...
Visits by Source
Users who voted for this posting
Jørn E. Angeltveit