Forum > LCL
[SOLVED] TSynCompletion filtering question
Martin_fr:
Have you looked at the source?
- TForm1.DoExecute
- TForm1.DoSearchPosition
Both have comments when they get executed. You can debug them to see what they do.
In both of them, in the nested procedure ADD, change the condition to:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- if pos(UpperCase(SynCompletion1.CurrentString),UpperCase(s)) > 0 then SynCompletion1.ItemList.Add(s);
In DoSearchPosition you can play with APosition if you want a different item selected => mind then you reset whatever the user did by up/down keys.
You can leave position unchanged. Or you can check which word is at that position, and then set APosition to the position to which that word moved.
Wesbat:
--- Quote from: Martin_fr on December 14, 2024, 10:36:35 pm ---Have you looked at the source?
- TForm1.DoExecute
- TForm1.DoSearchPosition
--- End quote ---
Okay now I feel rather really silly. I should have known better, thank you for the perfect answer Martin_fr :)
Navigation
[0] Message Index
[*] Previous page