Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTF saving and use
#4
This is not exactly what you need.
Requires some trigger.

Code:
Copy      Help
str dbFile="$my qm$\snippets.db3"
str s=RtfSnippets(3 dbFile "") ;;get list of snippet names from database
MenuPopup m.AddItems(s 1) ;;create menu
int i=m.Show(0 0 1) ;;show menu and wait
if(i=0) ret
m.GetItemText(i s) ;;get selected snippet name
RtfSnippets 1 dbFile s ;;get snippet from database, and paste

To enable keyboard for selecting menu items, use & character in snippet names. For example, if snippet name is "test&2", in menu it will be "test2", and you can press 2 to select it.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)