Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expanding options for autotext MenuOptions
#3
In next LA use popupMenu.caretRectFunc. Example:

Code:
Copy      Help
popupMenu.caretRectFunc = () => {
    if (miscInfo.getTextCursorRect(out var r, out _)) return r;
    
    //alternative "get caret rect" code here
    
    return null; //failed
};

var m = new popupMenu("461cda57-2885-4175-bace-0795fd4ad446");

m["Item1"] = o => { };

m.Show(PMFlags.ByCaret);


Messages In This Thread
RE: Expanding options for autotext MenuOptions - by Gintaras - 03-25-2024, 07:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)