Scintilla (http://www.scintilla.org/) is a text editor with many features such as tooltips, autocompletion, folding, syntax coloring etc...
This custom control wraps the scintilla dll to let you use it to replace the PDC's edit control. It has many more features and let you define your own keyword list, own color set, font, underline, folding etc..
The included project shows how to perform a folding/unfolding as well as syntax coloring for different list of keywords and indentation control. The scintilla control has many more features that can be used and changed at runtime.
Best regards
Gildas
http://www.arsaniit.com/vp_tools/index.htm (look for scintilla control)
-
- Active Member
- Posts: 25
- Joined: 8 Jun 2004 23:01
custom control : scintilla editor
- Attachments
-
- scintillap.jpg (72.47 KiB) Viewed 66542 times
Last edited by Gildas Menier on 1 Nov 2007 11:04, edited 1 time in total.
- Thomas Linder Puls
- VIP Member
- Posts: 1404
- Joined: 28 Feb 2000 0:01
Yes, interesting. In fact, so intereting that I have spent a little time shined-up the code (to my likings, of course
).
Functionally, I have changed it to handle Unicode (or at least I think so, because I haven't really tested it). Unicode support is provided using UTF-8 (8 bit Unicode Transfer Format).
![Wink ;-)](./images/smilies/icon_wink.gif)
Functionally, I have changed it to handle Unicode (or at least I think so, because I haven't really tested it). Unicode support is provided using UTF-8 (8 bit Unicode Transfer Format).
- Attachments
-
- scintilla.zip
- scintilla control
- (12.83 KiB) Downloaded 2282 times
Regards Thomas Linder Puls
PDC
PDC
- Thomas Linder Puls
- VIP Member
- Posts: 1404
- Joined: 28 Feb 2000 0:01
- Tonton Luc
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01
- Jan de Lint
- VIP Member
- Posts: 83
- Joined: 6 Mar 2000 0:01
- Thomas Linder Puls
- VIP Member
- Posts: 1404
- Joined: 28 Feb 2000 0:01
Since Visual Prolog 7.4 the Scintilla Editor is part of Visual Prolog. It is both used in the IDE, and also available for use in user projects (i.e. pfc/gui/controls/sciLexer). It is also used as a control in the message window.
The examples (IDE: Help -> Install Examples...) contains an example of its usage.
The examples (IDE: Help -> Install Examples...) contains an example of its usage.
Regards Thomas Linder Puls
PDC
PDC
- Thomas Linder Puls
- VIP Member
- Posts: 1404
- Joined: 28 Feb 2000 0:01
custom control scintilla editor
Hi, first of all thanks for a great RAD tool,
maybe this is just me being stupid but I cant place any custom control. I think added the class correctly using the Custom Controls menu but I cant find the control in the menu.
customcontrol.png
maybe this is just me being stupid but I cant place any custom control. I think added the class correctly using the Custom Controls menu but I cant find the control in the menu.
customcontrol.png