ILoader Examples

31 views
Skip to first unread message

Ronen Kreimer

unread,
Jun 13, 2025, 6:08:34 AMJun 13
to scite-interest
Hi all,

I want to implement Scintilla into my own custom text editor. I would like the editor to load files asynchronously in the background, without blocking the UI thread.

From Scintilla docs I see that the ILoader object is meant just for that. Unfortunately, I am unsure as to how I should (correctly) use it, and I cannot find any examples using it, apart from the Document class.

Are there any examples of loading Scintilla documents in a background thread?

Thanks for your hard work!

scintillaDotOrg

unread,
Jun 14, 2025, 7:02:44 PMJun 14
to scite-interest
rone...:
 
Are there any examples of loading Scintilla documents in a background thread?

In the SciTE source code, search for CreateLoader then trace the resulting ILoader* into a FileLoader which is run on a background thread with PerformOnNewThread.

Neil
Reply all
Reply to author
Forward
0 new messages