FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


custom control : scintilla editor

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples
View previous topic :: View next topic  
Author Message
Gildas Menier




Joined: 08 Jun 2004
Posts: 210

PostPosted: 28 Oct 2007 18:17    Post subject: custom control : scintilla editor Reply with quote

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)



scintillap.jpg
 Description:
 Filesize:  72.47 KB
 Viewed:  10794 Time(s)

scintillap.jpg




Last edited by Gildas Menier on 1 Nov 2007 11:04; edited 1 time in total
Back to top
View user's profile Send private message
drspro2



The Netherlands
Joined: 28 Apr 2006
Posts: 174

PostPosted: 29 Oct 2007 11:50    Post subject: Reply with quote

wow really great
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 29 Oct 2007 22:47    Post subject: Reply with quote

Yes, interesting. In fact, so intereting that I have spent a little time shined-up the code (to my likings, of course Wink).

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).



scintilla.zip
 Description:
scintilla control

Download
 Filename:  scintilla.zip
 Filesize:  12.83 KB
 Downloaded:  1160 Time(s)


_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 8 Jan 2008 22:56    Post subject: Reply with quote

Copied to the wiki: 3rd:Scintilla Editor Control.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Tonton Luc



FRANCE (Le Touquet)
Joined: 16 Oct 2001
Posts: 1548

PostPosted: 12 Mar 2008 13:07    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 392

PostPosted: 12 Apr 2008 19:22    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 15 Feb 2013 15:24    Post subject: Reply with quote

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
Prolog Development Center
Back to top
View user's profile Send private message
Raza159




Joined: 11 Oct 2014
Posts: 1

PostPosted: 11 Oct 2014 10:26    Post subject: Reply with quote

Hi,

I tried this program, but it has unsuccessfully been compiled because of lack of files from "pfc\profile". What is the problem about? Thank you.

Whsheng

_________________
https://www.isaca.org/
www.pass-4sure.me.uk
http://en.wikipedia.org/wiki/California_State_University,_East_Bay
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 11 Oct 2014 14:57    Post subject: Reply with quote

I am not sure which program you are talking about? Is it the example?
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum