Evan DeMond | 7 Oct 07:34

Handling socket events?

Hi all,

I'm writing a wxLua app which needs socket functionality, and I'm having trouble figuring out how to handle events from wxSocketClient. wxSocketBase doesn't inherit from wxEvtHandler, meaning Connect() isn't an option. I went looking and found this:

http://docs.wxwidgets.org/stable/wx_wxsocketbase.html#socketevents
http://docs.wxwidgets.org/stable/wx_wxsocketbase.html#wxsocketbaseseteventhandler

So I tried to set up a plain wxEvtHandler object, hooking it up to the wxSocketClient with SetEventHandler(), and trying to Connect() the wxEvtHandler to wxSOCKET_INPUT - but that apparently fails?

"Lua: Error while running chunk
...
wxLua: Invalid or unknown wxEventType for wxEvtHandler::Connect() : 0, winIds -1, -1."

I can't seem to find any example code using wxSocketClient in Lua anywhere. All the C++ code I've seen uses the EVT_SOCKET macro, but that's not available in pure Lua.

I'm stumped. How does one receive wxSocketClient events in a wxLua program?

Thanks,

Evan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@...
https://lists.sourceforge.net/lists/listinfo/wxlua-users
Kyle Pierce | 27 Sep 23:56

WxLua apps on Xandros Linux (eee pc)?

I currently do wxLua development work on a Windows box, but would like to do
wxLua scripting on my eee pc, which comes with Xandros linux (a debian variant).
Has anyone been able to install wxLua on Xandros, or for that matter, on any
Debian linux? It almost installs when I run the install script, but then gives
up because the debian distro of glibc is such an old version. Is there any
workaround for this sort of thing? This is basically what keeps me from doing
more linux development work, so I would really like to solve this problem.

Anyhow, I've been living and breathing Lua and wxLua for a few months now and
it's very nutritious, nutty, and full of chewy goodness.

Thanks,
Kyle

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alex Stark | 5 Sep 18:10

Bug: excessive dependence on lua build filename stem

wxLua does not compile properly under Fedora core 8 (fc8)

Reason: fc8 packages (lua and lua-devel) creates lua.h (etc) and not lua5.1.h

Fix steps
(1) Change lua5.1 to lua in configure
(2) Change llua5.1 to llua in modules/Makefile.in and apps/Makefile.in

The reason I list this as a bug is that it should not be necessary to do (2).  Please add a variable that can be changed in exactly one place in the configure script.  It would be good to have an option to configure.

FYI, to run under fc8 with ./configure --prefix=/usr/local, require
export LD_LIBRARY_PATH=/usr/local/lib
export LUA_CPATH="/usr/local/lib/lua/5.1/?.so"

JAS

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@...
https://lists.sourceforge.net/lists/listinfo/wxlua-users
Duncan Cross | 3 Sep 05:09

wxStyledTextCtrl - Activating Brace Matching

Hi List,

Could anyone help me with getting brace matching to work (i.e. when
the text cursor is over a brace, highlight both the brace and its
matching twin blue, unless the brace is mismatched, in which case
highlight it red) for a wxStyledTextCtrl control? It seems like it
should be obvious, but I can't seem to find this information anywhere.
What change(s) would you make to the editor.wx.lua sample script to do
this? (I know that it must be possible since wxLuaEditor supports it.)

Thank you,

-Duncan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Ozzy | 29 Aug 13:31

LuaScript WSH = wxLua?

Hello,

I was looking for a windows scripting host for Lua, came across a dead link to LuaScript:

http://www.luascript.thersgb.net/luascript/
the download setup.exe was corrupt on iarchive of course... but i found:

http://homepage.ntlworld.com/johanne.winwood/luascript and downloaded the LuaScript setup file.

Now this is an OLD archive... Lua 1.1 i think. Went up a level and came across "Welcome to wxLua"
24th December 2004 wxLua 2.6 is released.

then more googling... and wound up at sf and this list, onto the actual question...

Is the wxLua the same or newer version of the LuaScript i found?

The reason i need the WSH bit is i plan to use Lua in zMud (mud client) and it supports any language that can be accessed through windows scripting host.

will wxLua do that for me?

Thanks in advance, and sorry in advance if this is too wordy for this list... i normally lurk a while in new places but was too excited that maybe LuaScript has been still in development :)

Ozzy

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@...
https://lists.sourceforge.net/lists/listinfo/wxlua-users
Sirmabus | 4 Aug 05:14

TIP: How to build wxWidgets for Windows here <-----


I spent hours trying to compile everything on Windows XP 32bit with
VS2005 to no avail.  
While wxLua wasn't so much the problem but wxWidgets was.
There next to no compile instructions, broken and inconsistent project files etc.

Well this will do the trick here:
http://wxpack.sourceforge.net/Main/Downloads

This an excellent Windows build package that will install a nice clean
VS2005/VS2008 build w/extras (like "wxFormBuilder") and with optional pre-built
LIB and DLL versions ready so you only have to recompile what you want to.

-- http://wxpack.sourceforge.net/Main/Downloads --

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
John Labenski | 30 Jul 08:57

Re: MingW build help

On Sat, Jul 26, 2008 at 8:29 AM, kinming2003 <kinming2003@...> wrote:
>
>  Hi, everyone. I want to make a editor that make use of wxlua. But I want to
> use the DLLs generated by MingW so that I can sharing the WxWidgets DLLs
> with WxLua. Thus I can make the installer much smaller.I feel very easy to
> use MingW 3.4.5 to compile the WxWidgets 2.8.7, And I have made some demo
> programs run sucessfully. But I have trouble in compiling WxLua using MingW.
> I always get an error says "WinMain <at> 16....... not found in mingw10.lib". No
> matter whether I using the SYSTEM-WIDE lua. I've also tried variety of
> configurations that get the same error. Please point me a way out. Or I wish
> the developer team can provide an MingW-build version. I'm using Windows XP.
>

wxLua should be using the same settings for MingW as wxWidgets does. I
do not use MingW itself, but if you post the linker error message we
might be able to help. At least state what wxLua lib or program gets
the linker error.

Regards,
    John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Andrea D'Amore | 21 Jul 21:31

problem with liblua at configure

Hello,
seems that configure script from wxLua-2.8.7.0-src.tar.gz check the  
system lua installation using -llua5.1 but the standard name for  
liblua is liblua.a, using -llua5.1 would give a fail even on a system  
with lua 5.1 installed properly, this should be fixed.

Andrea

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Makoto Hamanaka | 19 Jul 23:43

[ANN] patch for wxGlade, to generate GUI code for (wx)Lua

Hi,

I was looking for some GUI builder for wxLua and I found wxGlade, but it lacks
GUI code generation for Lua. And I looked into the source code of wxGlade
and found that it looks not so difficult to add this functionality.

So, here is a preview patch for wxGlade-0.6.3 and some description.

http://hammm.dw.land.to/lua/wxglade_lua.html

Features :
 - it can generate GUI code that can work on wxLua
 - most of the widgets on the palette are working
 - adding handlers will work
 - you can modify logics of generated code, while let wxGlade update the GUI
part.

Plus,
 - empty sizer slots will not harm generated GUI layout. (for python and
lua code generation)
 - fix some issues about initial size of widgets. 

Some sortcomings :
 - the generated code will always leave one wxlua process, if not manually
exit by ExitMainLoop.
   Currently I don't know why, but any suggestions are welcome.

I hope that this functionality will be merged to wxGlade source tree,
though it'll need some more effort.

It's rather easy to try it out, because no compiling is needed to 
run patched wxGlade (It's in python). So please give it a try, if you have
some interest.

Any comments are welcome.

Thanks,
Makoto Hamanaka <ham.lua@...>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
klaas.holwerda | 15 Jul 23:56

extract binding from headers

Hi John,

I am reaching the point that i want to make more and more bindings.
And so i wonder how you made the *.i files. Do you have a script to 
extract them more or less are is it all handwork?

Nice docs by the way!
I hope i did not miss the answer to my question while reading it roughly :-)

Regards,

Klaas

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Michele Sandri | 7 Jul 20:18

What happened to drag&drop support?

I have urgent need of wxFileDropTarget support under win32 in wxlua,
if someone can give some hints about which are blocking points, i will
try to help in implementing the remaining parts.

Regards,
Michele

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

Gmane