SourceForge logo
SourceForge logo
Menu

wxlua-users — wxLua list for users and developers

You can subscribe to this list here.

2005 Jan
Feb
Mar
Apr
May
Jun
(60)
Jul
(35)
Aug
(32)
Sep
(5)
Oct
(5)
Nov
(58)
Dec
(34)
2006 Jan
(114)
Feb
(184)
Mar
(153)
Apr
(90)
May
(153)
Jun
(59)
Jul
(24)
Aug
(43)
Sep
(17)
Oct
(34)
Nov
(11)
Dec
(204)
2007 Jan
(84)
Feb
(119)
Mar
(38)
Apr
(28)
May
(52)
Jun
(105)
Jul
(64)
Aug
(67)
Sep
(14)
Oct
(3)
Nov
(28)
Dec
(55)
2008 Jan
(228)
Feb
(55)
Mar
(30)
Apr
(30)
May
(15)
Jun
(20)
Jul
(12)
Aug
(3)
Sep
(13)
Oct
(54)
Nov
(35)
Dec
(35)
2009 Jan
(19)
Feb
(20)
Mar
(34)
Apr
(4)
May
(60)
Jun
(25)
Jul
(16)
Aug
(51)
Sep
(19)
Oct
(62)
Nov
(21)
Dec
(12)
2010 Jan
(1)
Feb
Mar
(4)
Apr
(12)
May
(23)
Jun
(13)
Jul
(1)
Aug
(40)
Sep
(18)
Oct
(21)
Nov
(26)
Dec
(34)
2011 Jan
(17)
Feb
(23)
Mar
(1)
Apr
(10)
May
(1)
Jun
(5)
Jul
(1)
Aug
Sep
Oct
(2)
Nov
Dec
(43)
2012 Jan
(5)
Feb
(19)
Mar
(6)
Apr
(24)
May
(39)
Jun
(83)
Jul
(29)
Aug
(36)
Sep
(64)
Oct
(55)
Nov
(12)
Dec
(7)
2013 Jan
(17)
Feb
(10)
Mar
(37)
Apr
(27)
May
(13)
Jun
(9)
Jul
(7)
Aug
(61)
Sep
(23)
Oct
(23)
Nov
(30)
Dec
(16)
2014 Jan
(23)
Feb
(13)
Mar
(9)
Apr
(17)
May
(2)
Jun
(11)
Jul
(2)
Aug
Sep
(9)
Oct
(24)
Nov
(2)
Dec
(14)
2015 Jan
(6)
Feb
(4)
Mar
(17)
Apr
May
(7)
Jun
(3)
Jul
Aug
Sep
(2)
Oct
(21)
Nov
(6)
Dec
(2)
2016 Jan
(4)
Feb
(2)
Mar
(7)
Apr
(3)
May
(11)
Jun
(6)
Jul
Aug
(1)
Sep
Oct
Nov
Dec
2017 Jan
Feb
Mar
Apr
(1)
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2018 Jan
(2)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2019 Jan
Feb
Mar
(6)
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
(1)
Oct
Nov
Dec
2022 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(2)
Nov
(4)
Dec
2023 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(8)
Nov
Dec
2024 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S






1
2
3
4
5
6
7
8
9
10
11
(1)
12
(1)
13
14
15
16
17
(2)
18
19
20
21
22
23
24
25
26
27
28
(2)
29
30
(2)
31
(1)





Showing 9 results of 9

From: Paul K <pau...@ya...> - 2014年03月31日 20:52:50
Hi John,
I'm trying to create wxTreeEvent and ran into unexpected difficulties.
I've tried the following (item_id is wxTreeItemId I got from event:GetItem()):
1. wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED, item_id)
got an error saying that the second parameter is a userdata, but needs
to be a number
2. Tried to get id from wxTreeItemId, but it doesn't have GetID() even
though the documentation references it
(http://docs.wxwidgets.org/trunk/classwx_tree_item_id.html).
3. local treeevent = wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED)
treeevent:SetClientObject(tree:GetItemData(item_id))
got an error saying that wxTreeEvent doesn't have SetClientObject.
How do I construct ITEM_ACTIVATED event for a particular item? Thank you.
Paul.
From: klaas.holwerda <ng...@kl...> - 2014年03月30日 22:10:34
Hi,
Recursive calls to RunBuffer() is a problem, gives an assert.
int wxLuaState::RunBuffer(const char buf[], size_t size, const wxString &name, int nresults)
{
 wxCHECK_MSG(Ok(), LUA_ERRRUN, wxT("Invalid wxLuaState"));
 wxCHECK_MSG(!M_WXLSTATEDATA->m_wxlStateData->m_is_running, LUA_ERRRUN, wxT("Lua interpreter is 
already running"));
Maybe a solution could be to make m_running an integer, which is incremented and decremented, as 
long as > 1, interpreter is running.
But maybe it should be done different, still I would like to use the same wxlua state.
Recursive happens in lua scripts which define functions to be used inside canvas objects, and are 
run there using:
 wxLuaState lst = a2dLuaWP->GetLuaState();
 lua_State* L = lst.GetLuaState();
 if ( 0 != lst.RunString( m_script ) )
The function is defined like this in the wxLua script.
 TheObjectAddScript_2 =
 [[
 function XoverX( canobj, x, y, args )
 fill = wx.a2dFill( args.Colour )
 local childs = canobj:CreateChildObjectList()
 canobjcirc2 = wx.a2dCircle( 0, 0, 20 )
 childs:push_back( canobjcirc2 )
 for i = -args.maxX, args.maxX do
 local y2
 if i ~= 0 then
 y2 = -args.maxY*math.sin(i/16)/(i/16)
 else
 y2 = -args.maxY; --sin(x)/x goes to one at zero
 end
 -- all relative
 line = wx.a2dRect( i, 0, 0.1, y2 )
 line:SetFill( fill )
 childs:push_back( line )
 end
 end
 ]]
-- add the object using the above string as input script
canobjAddScript2 = wx.a2dCanvasObjectLua( 350, -450, TheObjectAddScript_2, "XoverX" )
Regards,
Klaas
From: klaas.holwerda <ng...@kl...> - 2014年03月30日 21:58:24
Hi,
The internal FindwxWidgets.cmake, should also contains lines like:
 wxbase31${_UCD}${_DBG}
else it does not work for current wxWidgets svn.
But even if that produces projects files with Cmake, it does not build, there are compile errors.
But for 3.0 it works.
Regards,
Klaas
----- Original Message -----
From: John Labenski
Date: 3/28/2014 8:55 AM
> I added wxWebView support a while ago, but forgot to press send on my 
> email. Let me know if it works for you. I just did the simplest test 
> of creating a frame, a webview child and loaded a page.
Awesome. Can you add your sample to the wxLua distribution for easy out 
of box testing?
Thanks!
Josh
On Mon, Mar 17, 2014 at 12:36 AM, Paul K <pau...@ya...> wrote:
> Hi John,
>
> >> > I'm looking for a way to provide MacNewFile, MacOpenFiles, and
> >> > MacReopenApp methods
> >> > (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure
> >> > out how to do this in wxlua and don't see this in any of the examples.
> >
> > They need to be added, it should be doable.
>
> Do you have plans to include these methods? I'm building the current
> version of wxwidgets and would like to include these Mac* methods and
>
My antique mac is out of commission so I can't do any mac stuff right now,
but I do plan to replace the hard drive drive..
> WebView support if available. Thank you!
>
>
I added wxWebView support a while ago, but forgot to press send on my
email. Let me know if it works for you. I just did the simplest test of
creating a frame, a webview child and loaded a page.
-John
Hi John,
>> > I'm looking for a way to provide MacNewFile, MacOpenFiles, and
>> > MacReopenApp methods
>> > (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure
>> > out how to do this in wxlua and don't see this in any of the examples.
>
> They need to be added, it should be doable.
Do you have plans to include these methods? I'm building the current
version of wxwidgets and would like to include these Mac* methods and
WebView support if available. Thank you!
Paul
From: Paul K <pau...@ya...> - 2014年03月17日 04:30:41
Hi John,
I'd like to come back to this topic; maybe it's something I'm doing
wrong and it's still possible to process those invalid UTF-8
characters? Any ideas?
Paul.
On Fri, Feb 21, 2014 at 4:53 PM, Paul K <pau...@ya...> wrote:
> Hi John,
>
>> Yes, note that From8BitData() is static and To8BitData() is not.
>
> Thank you for the prompt change! Unfortunately, it didn't have the
> desired effect for me; maybe I misread wxwidgets documentation.
>
> Let's say I have three invalid UTF-8 characters: string.char(0x80,
> 0x81, 0x82). If I assigned them to a variable u, it has proper length
> (#u == 3). If I try to add them to wxSTC, nothing happens (the length
> of the content doesn't change).
>
> If I use From8BitData(), then I get 6 bytes instead of 3:
> #wx.wxString.From8BitData(string.char(0x80, 0x81, 0x82)) == 6, but
> this looks like "fixed" UTF-8 code. When I add the result to wxSTC, I
> do get 6 bytes of content there, but that's not what I expected: I
> expected three characters displayed with 0x80, 0x81, and 0x82 as their
> codes.
>
> What am I doing wrong?
>
> Paul.
>
> On Wed, Feb 19, 2014 at 9:53 PM, John Labenski <jla...@gm...> wrote:
>> On Wed, Feb 19, 2014 at 1:27 AM, Paul K <pau...@ya...> wrote:
>>>
>>>
>>> Do we also get To8BitData(), as I may need it to save the data back to a
>>> file?
>>>
>>
>> Yes, note that From8BitData() is static and To8BitData() is not.
>>
>> Regards,
>> John
From: John L. <jla...@gm...> - 2014年03月12日 14:35:29
On Tue, Mar 11, 2014 at 5:13 PM, Roy Hinkelman <ro...@gm...> wrote:
>
> Sure could use some help.
>
> The wxWidgets install looked to go smoothly with no errors in the log.
> BUT, when I tried to run /samples/widgets, nothing happens, and the
> terminal goes unresponsive.
>
>
How are you running it? You need to run the app as a "bundle" meaning that
you either double click the bundle dir (usually ProgramName.app) or run
this on the command line.
$ open /path/to/Program.app
> I am following the directions here:
> http://wxlua.sourceforge.net/docs/install.html , installed in it's own
> directory as OSX, debug, unicode build.
>
> How would I debug this?
>
>
Using gdb if I remember correctly. I don't have a working Mac right now,
but I believe that XCode comes with the command line gcc compiler tools and
gdb is the debugger for it.
> I don't know what logs to look at. The system.log is giving me this for
> what it is worth:
>
> Mar 11 14:04:54 Roys-MacBook-Pro.local Console[394]: CGSCopyDisplayUUID:
> Invalid display 0x1a493041
> Mar 11 14:04:54 Roys-MacBook-Pro.local firefox[393]: CGSCopyDisplayUUID:
> Invalid display 0x1a493041
>
>
Don't know about this; do you sometimes use two monitors and the settings
are stale or something?
Regards,
 John
From: Roy H. <ro...@gm...> - 2014年03月11日 21:13:55
 Sure could use some help.
The wxWidgets install looked to go smoothly with no errors in the log. BUT,
when I tried to run /samples/widgets, nothing happens, and the terminal
goes unresponsive.
I am following the directions here:
http://wxlua.sourceforge.net/docs/install.html , installed in it's own
directory as OSX, debug, unicode build.
How would I debug this?
I don't know what logs to look at. The system.log is giving me this for
what it is worth:
Mar 11 14:04:54 Roys-MacBook-Pro.local Console[394]: CGSCopyDisplayUUID:
Invalid display 0x1a493041
Mar 11 14:04:54 Roys-MacBook-Pro.local firefox[393]: CGSCopyDisplayUUID:
Invalid display 0x1a493041
I am a PC based web programmer (PHP, MySql, JQuery, a little Python) diving
in and learning OSX, terminal and Lua/wxLua, wanting to move into mobile
development.
wxWidgets-3.0.0 | Lua-5.2.2 | OSX-10.9.2
Roy Hinkelman
I respect faith, but doubt is what gets you an education.
-- Wilson Mizner

Showing 9 results of 9

Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /