Posted 19 years ago
by Karl Grambow
I've been trying to build InfoTips that behave like those we see in VS. It's probably easier to explain this by example:
In vb.net the InfoTip for the Function Instr looks like:
Instr(String1, String2, ...and so on)
String1: String expression being searched.
If you then place a comma, the InfoTip updates itself to make String2 bold and the description will also update to reflect the String2. Subsequently, if you move the caret position to either side of the comma the info tip will update itself accordingly.
I've created a couple of clases that pretty much enable me to do this but it suffers from a couple of issues (namely, if either of the Strings have commas in them then I need to start searching for commas that exist in strings and it gets kind of messy).
In general I just feel like my solution is not very elegant.
I was just wondering what some of you were doing to arrive at this type of solution.
I'm happy to share my code if anyone would like to see it or if they feel it would help.
In vb.net the InfoTip for the Function Instr looks like:
Instr(String1, String2, ...and so on)
String1: String expression being searched.
If you then place a comma, the InfoTip updates itself to make String2 bold and the description will also update to reflect the String2. Subsequently, if you move the caret position to either side of the comma the info tip will update itself accordingly.
I've created a couple of clases that pretty much enable me to do this but it suffers from a couple of issues (namely, if either of the Strings have commas in them then I need to start searching for commas that exist in strings and it gets kind of messy).
In general I just feel like my solution is not very elegant.
I was just wondering what some of you were doing to arrive at this type of solution.
I'm happy to share my code if anyone would like to see it or if they feel it would help.