Hi,
I am writing a RBscript text editor for one of my apps. I have added
syntax highlighting, such that is now looks like the RB IDE.
Now I want to add a tooltips feature that displays the API for my
exposed context classes.
My first thought was to add my api call as a dictionary.
RBapi = new dictionary
RBapi.Value("BooleanToStringTrueFalse") =
"BooleanToStringTrueFalse(theBool as boolean) As string"
This works great. Now my editor has api help info when the user
clicks inside any (RBapi key value) word in the editor (eg
BooleanToStringTrueFalse)
But to improve this, as I type, I want the editor to show me the best
guess, for eg:
when I type "BooleanToSt" At this point I want the tooltip to show
the help for this BooleanToStringTrueFalse?
Any ideas? I thought of adding making the dictionary cover all options.
eg
RBapi = new dictionary
RBapi.Value("B") = "BooleanToStringTrueFalse(theBool as boolean) As string"
RBapi.Value("Bo") = "BooleanToStringTrueFalse(theBool as boolean) As string"
RBapi.Value("Boo") = "BooleanToStringTrueFalse(theBool as boolean) As string"
RBapi.Value("Bool") = "BooleanToStringTrueFalse(theBool as boolean)
As string"
RBapi.Value("Boole") = "BooleanToStringTrueFalse(theBool as
boolean) As string"
RBapi.Value("Boolea") = "BooleanToStringTrueFalse(theBool as
boolean) As string"
RBapi.Value("Boolean") = "BooleanToStringTrueFalse(theBool as
boolean) As string"
...
...
...
RBapi.Value("BooleanToStringTrueFalse") =
"BooleanToStringTrueFalse(theBool as boolean) As string"
This seems wasteful and clunky
Can I look for a fragment of a key from a dictionary?
Any other ideas?
--
Cheers,
Dr Gerard Hammond
MacSOS Solutions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>