Hello ActiPro team,
I have two quick questions.
Q1-
I need a dialog window to open up when I click on ctrl-B in the syntaxeditor control. SO I guess that this can be accomplshed using keypress events, if so do you have an example for this?
Q2- Also, I want to be able to press on ctrl-B and capture the text where the cursor is placed on and pass that text to my dialog in the keypress event. (just to let you know, I used dynamic grammer definition to get up and running fast)
SO, if I have such a code segment:
if (test == "sigma1")
{
int new_variable;
new_variable = 5;
}
And my cursor is on new_variable, I want to capture that text into a string and pass it to my dialog, is this easy to do? And if for example I have "new_variable=5" all stuck together, can the same thing be accomplished? Meaning that if the cursor is on new_variable it will capture only new_variable into a string and not the "=5" part?
Thank you for your time
nassim
I have two quick questions.
Q1-
I need a dialog window to open up when I click on ctrl-B in the syntaxeditor control. SO I guess that this can be accomplshed using keypress events, if so do you have an example for this?
Q2- Also, I want to be able to press on ctrl-B and capture the text where the cursor is placed on and pass that text to my dialog in the keypress event. (just to let you know, I used dynamic grammer definition to get up and running fast)
SO, if I have such a code segment:
if (test == "sigma1")
{
int new_variable;
new_variable = 5;
}
And my cursor is on new_variable, I want to capture that text into a string and pass it to my dialog, is this easy to do? And if for example I have "new_variable=5" all stuck together, can the same thing be accomplished? Meaning that if the cursor is on new_variable it will capture only new_variable into a string and not the "=5" part?
Thank you for your time
nassim