Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Someone else on May 08, 2012, 06:36:53 pm

Title: wxSmithStc - wxStyledTextCtrl in wxSmith
Post by: Someone else on May 08, 2012, 06:36:53 pm
I was working on a project, in which I needed to use wxStyledTextCtrl, and it was nowhere to be found in wxSmith, so instead of just simply writing plain C++ code (which would be the easy option), I decided, that I might as well learn how to write a C::B plugin, so I did.
That delayed my project about a week, but at least I got a nice plugin done.

Now that it is done I decided I might as well release it for everyone to use.

Basically it allows you to use wxStyledTextCtrl, from within wxSmith, and it might be useful to some.

I'm uploading the source code, since I don't know if there would be any use in attaching the compiled plugin, as it would only function in one version of Code::Blocks.

Link: http://www.mediafire.com/download.php?hgyes5dssg4ps92 (http://www.mediafire.com/download.php?hgyes5dssg4ps92)
Title: Re: wxSmithStc - wxStyledTextCtrl in wxSmith
Post by: MortenMacFly on May 08, 2012, 07:44:31 pm
Basically it allows you to use wxStyledTextCtrl, from within wxSmith, and it might be useful to some.
Well sorry to say that, but in recent nightly builds wxStyledTextCtrl is integrated with wxSmith already...?!
Title: Re: wxSmithStc - wxStyledTextCtrl in wxSmith
Post by: Someone else on May 08, 2012, 11:41:34 pm
Well, this is quite old, so at the time I wrote it, I don't think that was the case.
Since when?

Edit: I've downloaded nightly build 7932, but I can't find it in wxSmith.
I've noticed other additions but not wxStc. Where is it?
Title: Re: wxSmithStc - wxStyledTextCtrl in wxSmith
Post by: MortenMacFly on May 09, 2012, 11:42:01 am
I've noticed other additions but not wxStc. Where is it?
I answered in the other thread.
Title: Re: wxSmithStc - wxStyledTextCtrl in wxSmith
Post by: hovercraft on November 10, 2015, 09:50:46 am
Nowadays, wxWidgets 3.x already have wxStyledTextCtrl component as regular (not contributed) item.
Unfortunately, there is still no stable version of Code::Blocks for modern wx, right?
So, I decided to update the wxSmith plugin from "Someone else".
It is now can be built both on Windows and Linux.
It allows design wx-3.x.x applications with wxStyledTextCtrl component from within Code::Blocks
built against wx-2.8.12.
I aware about wxSmithSTC pugin shipped with C::B source, but
in my opinion, the "Someone else" variant is better,
because it directly exposes the wxStyledTextCtrl interface available in wx itself, making resulting code more uniform
between different wx-RAD tools (wxFormBuilder for example),
thus making future maintanance of code easier.

Link: http://www.mediafire.com/download/xumv7nh9z5mguti/wxSmithStc-2.0.zip
Title: Re: wxSmithStc - wxStyledTextCtrl in wxSmith
Post by: oBFusCATed on November 10, 2015, 08:27:22 pm
Please post patches against latest svn trunk or some of the git master branches.

Here you can find guides how to make patches: http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_%28Patch_Tracker%29