wxStyledTextCtrl Method and Event Explorer

Do you like to promote your wxWidgets based application or component!? Post it here and let's see what the critics have to say. Also, if you found that ONE wx component the world needs to know about, put it here for future reference.
New Pagodi
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 214
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

wxStyledTextCtrl Method and Event Explorer

Postby New Pagodi » Sun Dec 28, 2014 1:32 am

I've written a program to help programmers explore the properties and events of wxStyledTextCtrl.

Image

Basically, the application has 5 windows:
-the upper left is an initially unmodified wxStyledTextCtrl window
-the upper right is a property grid.
-the middle window logs events emitted by the wxStyledTextCtrl window.
-the lower windows show the scintilla and wxStyledTextCtrl documentation pages.

wxStyledTextCtrl /Scintilla is a great tool, but with over 600 methods, it's not always clear how to make it do what you want. The goal here is to speed the process of learning what each those the methods do. As you set values in the property grid, the corresponding method is called on the wxStyledTextCtrl window. This way you can see the effect of those changes in real time. The relevant sections of the scintilla and wxwidgets documentation are also scrolled into view.

After you've configured the wxStyledTextCtrl the way you want it, there is a 6th window that can display code that can be used in a program to configure it the same way:

Image

The code is available on my github account here.

I also have a tutorial that walks through step by step how to make a raw wxStyledTextCtrl window look like notepad++.

This project obviously incorporates the pieces of the Scintila and wxWidgets documentation (as well as the Scintila icon pack). The licenses for those packages say you can do that as long as you meet certain conditions. This is the first significant program I've released, and I've tried to meet those conditions but I'm not 100% sure I did it right. If I'm not doing it right, can someone more experienced correct me and I'll fix it immediately.

VonGodric
Earned some good credits
Earned some good credits
Posts: 103
Joined: Sun Jan 30, 2005 9:31 pm
Contact:

Re: wxStyledTextCtrl Method and Event Explorer

Postby VonGodric » Tue Feb 02, 2016 4:21 pm

This looks really interesting. Will give this a try ! :P

User avatar
doublemax
Moderator
Moderator
Posts: 11481
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxStyledTextCtrl Method and Event Explorer

Postby doublemax » Tue Feb 02, 2016 8:24 pm

Looks very nice. Thanks.
Use the source, Luke!

New Pagodi
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 214
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: wxStyledTextCtrl Method and Event Explorer

Postby New Pagodi » Wed Feb 03, 2016 6:33 pm

Thanks for the comments. It would be nice if a more recent version of scintilla could be included with wxWidgets.

Does anyone know how to check if the upcoming 3.1 or 3.0.3 releases will include an updated scintilla?

User avatar
doublemax
Moderator
Moderator
Posts: 11481
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxStyledTextCtrl Method and Event Explorer

Postby doublemax » Wed Feb 03, 2016 7:42 pm

It's in discussion to upgrade to Scintilla 3.6.3 for wxWidgets 3.1.0 (which is supposed to come out very soon).
http://trac.wxwidgets.org/ticket/17357
Use the source, Luke!


Return to “Announcements and Discoveries”

Who is online

Users browsing this forum: No registered users and 2 guests