Share Tips, Code Samples, etc. with the Visual Prolog community.
Gildas Menier
Active Member
Posts: 25
Joined: 8 Jun 2004 23:01

custom control : scintilla editor

Unread post by Gildas Menier »

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)
Attachments
scintillap.jpg
scintillap.jpg (72.47 KiB) Viewed 56053 times
Last edited by Gildas Menier on 1 Nov 2007 11:04, edited 1 time in total.
User avatar
drspro2
VIP Member
Posts: 97
Joined: 28 Apr 2006 12:03

Unread post by drspro2 »

wow really great
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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).
Attachments
scintilla.zip
scintilla control
(12.83 KiB) Downloaded 1892 times
Regards Thomas Linder Puls
PDC
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Copied to the wiki: 3rd:Scintilla Editor Control.
Regards Thomas Linder Puls
PDC
User avatar
Tonton Luc
VIP Member
Posts: 204
Joined: 16 Oct 2001 23:01

Unread post by Tonton Luc »

Hi,
When I try to use this control, I've an error c100: The file 'pfc\CodepageId\CodepageId.ph' is not found.
Is it possible to use this control with VP 7.0 ?
If yes, how to solve this error ?
User avatar
Jan de Lint
VIP Member
Posts: 83
Joined: 6 Mar 2000 0:01

Unread post by Jan de Lint »

I don't get this error but then I'm on 7103 CE.
The improvements from 7.0 to 7.1 are very slick.
I use scintilla for the line-wrap feature. As far as I know this is not availble with the standard controls.
]an
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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.
Regards Thomas Linder Puls
PDC
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

I am not sure which program you are talking about? Is it the example?
Regards Thomas Linder Puls
PDC
DjRocep
Posts: 1
Joined: 5 May 2019 14:32

custom control scintilla editor

Unread post by DjRocep »

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
Post Reply