List Info

Thread: Wx::Scintilla class not defined




Wx::Scintilla class not defined
country flaguser name
United States
2007-05-21 16:18:52
I'm posting this for a friend who is having trouble with
this and here is 
his message.

"Heya!  I'm working on a script editor application, but
it's missing one key 
feature: Syntax highlighting.  Seeing this, I looked around
in the sample 
directory and came across scintilla.rb.  I attempted a run,
however Ruby 
reported Wxruby2::Scintilla as an uninitialized constant!
So now, I'm wondering what happened to the class.  Is there
an external file 
workaround for this, or will I have to set_style many times
in a TextCtrl 
object?"

____________________________________________________________
_____
Like the way Microsoft Office Outlook works? You’ll love
Windows Live 
Hotmail. 
http://ima
gine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGH
M_migration_HM_mini_outlook_0507


_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
Re: Wx::Scintilla class not defined
user name
2007-05-21 16:38:12
Brandon,

Scintilla is an optional component that has to be turned on
when the
WxRuby library is compiled. I do not think it is being
compiled into
any of the recent releases, I can tell you for a fact that
it is not
compiled into the OS X Intel and Windows build because I
compiled
those. As for the OS X PPC and Linux you will have to ask
Alex.

Your friend may want to build his own version using the
instructions
at the wiki:
(see section Building and installing from source)
http://wxruby.rubyforge.org/wiki/wiki.pl?Installation

(see section How to make a wxRuby binary gem on linking in
scintilla
during build process)
http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo


I hope that is helpful for him

Sean

On 5/21/07, Brandon W. <tricksterguyhotmail.com> wrote:
> I'm posting this for a friend who is having trouble
with this and here is
> his message.
>
> "Heya!  I'm working on a script editor
application, but it's missing one key
> feature: Syntax highlighting.  Seeing this, I looked
around in the sample
> directory and came across scintilla.rb.  I attempted a
run, however Ruby
> reported Wxruby2::Scintilla as an uninitialized
constant!
> So now, I'm wondering what happened to the class.  Is
there an external file
> workaround for this, or will I have to set_style many
times in a TextCtrl
> object?"
>
>
____________________________________________________________
_____
> Like the way Microsoft Office Outlook works? You'll
love Windows Live
> Hotmail.
> http://ima
gine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGH
M_migration_HM_mini_outlook_0507
>
>
> _______________________________________________
> wxruby-users mailing list
> wxruby-usersrubyforge.org
> ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
>
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

Re: Wx::Scintilla class not defined
country flaguser name
United States
2007-05-21 17:17:41
Sean Long wrote:
> Brandon,
>
> Scintilla is an optional component that has to be
turned on when the
> WxRuby library is compiled. I do not think it is being
compiled into
> any of the recent releases, I can tell you for a fact
that it is not
> compiled into the OS X Intel and Windows build because
I compiled
> those. As for the OS X PPC and Linux you will have to
ask Alex.
>   
No they don't either. It has been down to the hassle of
compiling them 
because wxRuby was targetting an extra download.
> Your friend may want to build his own version using the
instructions
> at the wiki:
> (see section Building and installing from source)
> http://wxruby.rubyforge.org/wiki/wiki.pl?Installation
>   
Now we've upgraded to wxWidgets 2.8.3 there's a much more
recent and 
better maintained version of Scintilla shipped with the
wxWidgets to 
build against.

When building wxWidgets you can do

cd contrib/src/stc
make
sudo make install

There's also SWIG code in wxRuby to make Wx::Scintilla work
but it would 
need a little tweaking to make it work with the 2.8.3
wxWidgets - 
tweaking build params etc.

I don't have time to look into right away but ultimately I'd
like to 
make Wx::Scintilla a core class.

alex
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )