BobLeDev
Membre
- Inscription
- 3 Août 2014
- Messages
- 411
- Réactions
- 68
- Points
- 5 326
Bonjour, j'ai un problème de code, j'utilise Scintilla .Net et tout aller bien jusqu'a l'AutoComplete.
J'essai d'integrer une liste autocomplete pour du html mais a chaque fois que je tape "a" la liste apparai sinon elle n'apparait pas.
Code :
J'essai d'integrer une liste autocomplete pour du html mais a chaque fois que je tape "a" la liste apparai sinon elle n'apparait pas.
Code :
Code:
Scintilla scintilla = new Scintilla();
scintilla.CharAdded += S_CharAdded;
private void S_CharAdded(object sender, CharAddedEventArgs e)
{
var currentPos = scintilla.CurrentPosition;
var wordStartPos = scintilla.WordStartPosition(currentPos, false);
// Display the autocompletion list
var lenEntered = currentPos - wordStartPos;
if (lenEntered > 0)
{
scintilla.AutoCShow(lenEntered,
"html body a img src href style link head title meta <!doctype />");
}
}