zou need to
use Wx::STC;
>Hello Ahmad,
>
>Thanks for the links. I feel dumb because I still can't figure out how
>to make a simple hello-world editor with Wx::StyledTextCtrl. I can't
>find anything remotely like a simple example. I tried writing my own:
>
>---
WHOO HOO!!! THANKS!
On Wed, Aug 4, 2010 at 3:35 PM, Ahmad Zawawi wrote:
> use strict;
> use warnings;
> use Wx;
> use Wx::STC; # To import Wx::StyledTextCtrl
> package MyApp;
> use base 'Wx::App';
> sub OnInit {
> my $frame = Wx::Frame->new(undef,
use strict;
use warnings;
use Wx;
use Wx::STC; # To import Wx::StyledTextCtrl
package MyApp;
use base 'Wx::App';
sub OnInit {
my $frame = Wx::Frame->new(undef, -1, "Hello World");
my $ctrl = Wx::StyledTextCtrl->new($frame);
$frame->Show( 1 );
Hello Ahmad,
Thanks for the links. I feel dumb because I still can't figure out how
to make a simple hello-world editor with Wx::StyledTextCtrl. I can't
find anything remotely like a simple example. I tried writing my own:
-%<--
use strict;
use Wx;
packag
g to figure out how to
>>> > add it to my program:
>>> >
>>> > 1) I cannot find it on the wxWidgets reference:
>>> >
>>> > http://docs.wxwidgets.org/stable/wx_classref.html#classref
t find it on the wxWidgets reference:
>
>http://docs.wxwidgets.org/stable/wx_classref.html#classref
>
>2) But I'm pretty sure it exists and that wxPerl has it:
>
>http://www.mail-archive.com/wxperl-users@perl.org/msg00748.html
>
>
>Can anyone point me to some
: wxStyledTextCtrl.
>> > Apparently it is the Scintilla editor. I'm trying to figure out how to
>> > add it to my program:
>> >
>> > 1) I cannot find it on the wxWidgets reference:
>> >
>> > http://docs.wxwidgets.org/stable/wx_classref.
gt; 1) I cannot find it on the wxWidgets reference:
>
> http://docs.wxwidgets.org/stable/wx_classref.html#classref
>
> 2) But I'm pretty sure it exists and that wxPerl has it:
>
> http://www.mail-archive.com/wxperl-users@perl.org/msg00748.html
>
>
> Can anyone point me
retty sure it exists and that wxPerl has it:
http://www.mail-archive.com/wxperl-users@perl.org/msg00748.html
Can anyone point me to some documentation for Wx::StyledTextCtrl? I am
keen to try it.
Cheers.
Daniel.
--
Intolerant people should be shot.
the version thing bothered me to, is asked in wx-users ml twice without
responce so i looked up in wx sources and hardcoded a mapping. :)
cheers
herbert
Looking at
Wx-0.84/ext/stc/cpp/st_constants.cpp
and comparing it to include/SciLexer.h in Scintilla 1.76
I see several constants missing from Wx-0.84
specifically I miss:
SCE_PL_VARIABLE_INDEXER (16)
#define SCE_PL_POD_VERB 31
#define SCE_PL_SUB_PROTOTYPE 40
#define SCE_PL_FORMAT_IDENT 41
#defi
Gabor Szabo wrote:
On Fri, Aug 1, 2008 at 12:34 PM, Mattia Barbon <[EMAIL PROTECTED]> wrote:
Gabor Szabo wrote:
Hi,
I am probably too tired but I don't understand what can be the problem:
$page is a Wx::StyledTextCtrl object
this line works:
$page->MarkerAdd($li
On Fri, Aug 1, 2008 at 12:34 PM, Mattia Barbon <[EMAIL PROTECTED]> wrote:
> Gabor Szabo wrote:
>
> Hi,
>
>> I am probably too tired but I don't understand what can be the problem:
>>
>> $page is a Wx::StyledTextCtrl object
>>
>> this li
Gabor Szabo wrote:
Hi,
I am probably too tired but I don't understand what can be the problem:
$page is a Wx::StyledTextCtrl object
this line works:
$page->MarkerAdd($line_number-1, 0);
though I don't see any visible change on the margin.
This line
$page-&g
erstand what can be the problem:
>>
>> $page is a Wx::StyledTextCtrl object
>>
>> this line works:
>>
>>$page->MarkerAdd($line_number-1, 0);
>>
>> though I don't see any visible change on the margin.
>>
>> This line
>>
Hi,
Try using Wx::Colour objects for background, foreground params.
Mark
Gabor Szabo wrote:
I am probably too tired but I don't understand what can be the problem:
$page is a Wx::StyledTextCtrl object
this line works:
$page->MarkerAdd($line_number-1, 0);
though I don't se
I am probably too tired but I don't understand what can be the problem:
$page is a Wx::StyledTextCtrl object
this line works:
$page->MarkerAdd($line_number-1, 0);
though I don't see any visible change on the margin.
This line
$page->MarkerDefine(0, wxSTC_MARK
Gabor Szabo wrote:
Hi,
As far as I can see the docs of StyledTextCtrl are missing from
http://prdownloads.sourceforge.net/wxperl/wxPerl-0.82-wx-2.8.7-docs-html.zip
(it is not mentioned in the manua_classref.html file)
I bumped into it as the Wx::Demo is using Wx::StyledTextCtrl if
Wx::STC
As far as I can see the docs of StyledTextCtrl are missing from
http://prdownloads.sourceforge.net/wxperl/wxPerl-0.82-wx-2.8.7-docs-html.zip
(it is not mentioned in the manua_classref.html file)
I bumped into it as the Wx::Demo is using Wx::StyledTextCtrl if
Wx::STC is available.
But I don
herbert breunung wrote:
Thanks Mattia but please add also to Wx::Frame
It used to be available on WIndows ony, but
it seems it's available on all platforms now.
Will add.
Regards,
Mattia
Correction: it is availabel on all platforms
except GTK. So no luck.
Regards,
Mattia
Thanks Mattia but please add also to Wx::Frame
It used to be available on WIndows ony, but
it seems it's available on all platforms now.
Will add.
Regards,
Mattia
> but we all agree that there should be one :)
>
> since i get this errormsg only under xubuntu, not windows i foreward it
> so maybe there is a bug not on my side.
It used to be available on WIndows ony, but
it seems it's available on all platforms now.
Will add.
Regards,
Mattia
but we all agree that there should be one :)
since i get this errormsg only under xubuntu, not windows i foreward it
so maybe there is a bug not on my side.
the code produces the error was a simple
$ep->DragAcceptFiles(1);
$ep beeing of course a STC instance.
hope it helps
cheers
herbert
kep
23 matches
Mail list logo