It looks like you're new here. If you want to get involved, click one of these buttons!
// TPopUpMenu OnPopupprocedure TForm.PopUpRichPopup(Sender: TObject);begin case RichEdit.SelectionType of stText: ShowMessage('Text'); stObject: ShowMessage('Object'); stMultiChar: ShowMessage('MultiChar'); stMultiObject: ShowMessage('MultiObject'); end;end;
if RichEdit.SelectionType = TLMDRichSelection.stText then
if RichEdit.SelectionType = [stText, stMultiChar] then ShowMessage('Text') else if RichEdit.SelectionType = [stObject] then ShowMessage('Object');
Comments