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

Showing results of 36

1 2 > >> (Page 1 of 2)
From: Milind G. <mil...@gm...> - 2012年08月31日 05:19:33
Thanks
 Yes AddPendingEvent scheme worked. I am getting the scroll bar position
from the window
Regards,
Milind
On Thu, Aug 30, 2012 at 8:46 PM, John Labenski <jla...@gm...> wrote:
> On Wed, Aug 29, 2012 at 2:48 PM, Milind Gupta <mil...@gm...>
> wrote:
> > Hi,
> > I have 2 wxGrid windows side by side and I want to synchronize
> the
> > scroll on the 2 windows. The scroll event works fine but when I read the
> > scroll position of the window and set the scroll on the other window it
> does
> > not sync up. There is a lag. It seems that the actual scroll happens
> after
> > my event handler is processed so my other window always gets to the
> position
> > where the 1st one was before.
>
> Where are you getting the scroll position from? The event or the
> window itself? You should compare the two.
>
> > Is there a way to let the scroll happen and then read the scroll
> position?
> > The wxWidgets forum said that there is a hidden function called
> > HandleOnScroll, which I tried but it does not work in wxLua. Is there any
> > other way?
>
> If you want to process something after an event comes, create a new
> event with whatever event type you want and a unique id you can use to
> discriminate it and add it as a pending event to be sent after the
> current event is handled.
>
> local updateEvent = wx.wxCommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED,
> ID_REFRESH_GRID_SCROLL);
> mywindow:GetEventHandler():AddPendingEvent(updateEvent);
>
> then when you get this event in your handler for it, sync the scrollbars.
>
> Regards,
> John
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
From: John L. <jla...@gm...> - 2012年08月31日 03:46:12
On Wed, Aug 29, 2012 at 2:48 PM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I have 2 wxGrid windows side by side and I want to synchronize the
> scroll on the 2 windows. The scroll event works fine but when I read the
> scroll position of the window and set the scroll on the other window it does
> not sync up. There is a lag. It seems that the actual scroll happens after
> my event handler is processed so my other window always gets to the position
> where the 1st one was before.
Where are you getting the scroll position from? The event or the
window itself? You should compare the two.
> Is there a way to let the scroll happen and then read the scroll position?
> The wxWidgets forum said that there is a hidden function called
> HandleOnScroll, which I tried but it does not work in wxLua. Is there any
> other way?
If you want to process something after an event comes, create a new
event with whatever event type you want and a unique id you can use to
discriminate it and add it as a pending event to be sent after the
current event is handled.
local updateEvent = wx.wxCommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED,
ID_REFRESH_GRID_SCROLL);
mywindow:GetEventHandler():AddPendingEvent(updateEvent);
then when you get this event in your handler for it, sync the scrollbars.
Regards,
 John
From: John L. <jla...@gm...> - 2012年08月31日 03:35:30
On Thu, Aug 30, 2012 at 11:27 PM, John Labenski <jla...@gm...> wrote:
> On Wed, Aug 29, 2012 at 4:47 PM, Milind Gupta <mil...@gm...> wrote:
>> Hello,
>> I was having this problem where the exe I created from wxluafreeze
>> would not run since it was not able to find the dll file that I was
>> requiring in the code. The dll was in the same directory as the exe.
>> Strangely the problem got fixed when I put lua51.dll in the same directory
>> as the exe as well. Is there any particular reason it behaves this way?
To answer your question; I believe that previously I had not fully
made it possible to build staticly and that is why it depends on it.
The program depends22, dependency walker lets you view dll dependences
in Windows as ldd does in Linux.
http://www.dependencywalker.com/
Regards,
 John
From: John L. <jla...@gm...> - 2012年08月31日 03:27:54
On Wed, Aug 29, 2012 at 4:47 PM, Milind Gupta <mil...@gm...> wrote:
> Hello,
> I was having this problem where the exe I created from wxluafreeze
> would not run since it was not able to find the dll file that I was
> requiring in the code. The dll was in the same directory as the exe.
> Strangely the problem got fixed when I put lua51.dll in the same directory
> as the exe as well. Is there any particular reason it behaves this way?
To make a completely standalone app you want:
BUILD_SHARED_LIBS=FALSE
wxLua_LUA_LIBRARY_BUILD_SHARED=FALSE
and, of course, you need wxWidgets built staticly, too. That way
everything will be staticly linked into a single executable.
Regards,
 John
From: John L. <jla...@gm...> - 2012年08月31日 03:23:37
On Thu, Aug 30, 2012 at 1:38 AM, Milind Gupta <mil...@gm...> wrote:
> Hi John,
> Thanks for the explanation below. Is it possible to put all the
> shared libraries into 1 so that I can create a single file application with
> wxluafreeze in linux?
To build a standalone app with wxLuaFreeze you'll want to build
staticly. Again, you can use "ldd appname" to see what libs it depends
on.
Regards,
 John
From: SourceForge.net <no...@so...> - 2012年08月30日 08:34:59
Bugs item #3563204, was opened at 2012年08月30日 01:34
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3563204&group_id=140042
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface (example)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: wKfBq8 <a href="http://weyibzdxylsc.com/">weyibzdxylsc</a>,
Initial Comment:
wKfBq8 <a href="http://weyibzdxylsc.com/">weyibzdxylsc</a>, [url=http://rzhcawkynhxv.com/]rzhcawkynhxv[/url], [link=http://mxrerlfynkqs.com/]mxrerlfynkqs[/link], http://clvjnlwdzhue.com/
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3563204&group_id=140042
From: Milind G. <mil...@gm...> - 2012年08月30日 05:38:47
Hi John,
 Thanks for the explanation below. Is it possible to put all the
shared libraries into 1 so that I can create a single file application with
wxluafreeze in linux?
Regards,
Milind
On Sun, Aug 19, 2012 at 7:48 PM, John Labenski <jla...@gm...> wrote:
> On Fri, Aug 17, 2012 at 2:52 AM, Milind Gupta <mil...@gm...>
> wrote:
> > Hi,
> > I used wxluafreeze to convert my application to an executable
> file in
> > linux. But I see that the wx.so file that I have in linux is 446KB while
> in
> > windows wx.dll was 5.7MB and there is a similar difference between my
> > application size. Is this right? Do the wx libraries have such a big size
> > difference or is there something missing in my linux library.
>
> You're probably building all shared libraries? This means that wx.so
> links to the other wxLua libraries and wxWidgets libraries which
> contain all the code. This is the typical Linux model where these
> shared libs can be linked to by many apps or other libs reducing the
> overall size of all the apps/libs on disk.
>
> Run "ldd wx.so" to see what libs it depends on.
>
> I decided to try to put everything into the wx.dll for Windows since
> having a whole bunch of shared libs is more trouble since the DLLs
> have to be in the path or same dir and "Windows people" are not as
> used to seeing a whole bunch of shared libs along with the app.
>
> Regards,
> John
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
From: Milind G. <mil...@gm...> - 2012年08月29日 20:48:05
Hello,
 I was having this problem where the exe I created from wxluafreeze
would not run since it was not able to find the dll file that I was
requiring in the code. The dll was in the same directory as the exe.
Strangely the problem got fixed when I put lua51.dll in the same directory
as the exe as well. Is there any particular reason it behaves this way?
Thanks,
Milind
From: Milind G. <mil...@gm...> - 2012年08月29日 20:13:38
Hi,
 So I still get the problem where my wxluafreeze created exe cannot
locate the dll file in the same directory. It has to do with something how
windows launches the exe and maybe sets it to a different default run
directory. Does anybody have a idea about this?
Thanks,
Milind
On Thu, Aug 16, 2012 at 11:39 PM, Milind Gupta <mil...@gm...>wrote:
> Thanks I will re check that if I get access to that computer again.
>
> On Thu, Aug 16, 2012 at 8:01 PM, John Labenski <jla...@gm...>wrote:
>
>> On Thu, Aug 16, 2012 at 1:54 PM, Milind Gupta <mil...@gm...>
>> wrote:
>> > Hi,
>> > I have made this lua application using wxLua and I created an exe
>> using
>> > wxluafreeze. The program requires a LuaXML_lib.dll/so file. Both files I
>> > have put in the same directory as the exe. Also in my lua code the 1st
>> thing
>> > I do is to set package.cpath = ";./?.dll;./?.so". It works fine on my
>> > computer but on one computer it was not able to find the
>> LuaXML_lib.dll. How
>> > do I fix this?
>>
>> To be sure, the problem is on windows? And the two machines both have
>> the same version, XP or 7?
>>
>> If everything is the same I cannot think of any reason why it would
>> find it on one and not the other. I would double/triple check that the
>> files really are the same or that there isn't some difference in the
>> permissions, though MSWindows seems to ignore them for the most part.
>>
>> Regards,
>> John
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> wxlua-users mailing list
>> wxl...@li...
>> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>>
>
>
From: Milind G. <mil...@gm...> - 2012年08月29日 18:48:36
Hi,
 I have 2 wxGrid windows side by side and I want to synchronize the
scroll on the 2 windows. The scroll event works fine but when I read the
scroll position of the window and set the scroll on the other window it
does not sync up. There is a lag. It seems that the actual scroll happens
after my event handler is processed so my other window always gets to the
position where the 1st one was before.
Is there a way to let the scroll happen and then read the scroll position?
The wxWidgets forum said that there is a hidden function called
HandleOnScroll, which I tried but it does not work in wxLua. Is there any
other way?
Thanks,
Milind
From: SourceForge.net <no...@so...> - 2012年08月29日 18:34:55
Bugs item #3562932, was opened at 2012年08月29日 11:34
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3562932&group_id=140042
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v1.0 (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: HML1mJ <a href="http://fcypybnsbule.com/">fcypybnsbule</a>,
Initial Comment:
HML1mJ <a href="http://fcypybnsbule.com/">fcypybnsbule</a>, [url=http://omutsjnthgbo.com/]omutsjnthgbo[/url], [link=http://vdpfsevgiqcg.com/]vdpfsevgiqcg[/link], http://pcsgjfkdsujd.com/
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3562932&group_id=140042
From: John L. <jla...@gm...> - 2012年08月29日 03:11:36
On Mon, Aug 27, 2012 at 6:37 PM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I have a lua program in which I load a lua script as a string
> (loadstring) and then execute it. Is it possible to debug this script in
> wxLua.exe? How would I add a breakpoint in there?
>
Open your program in wxLua by calling.
$ wxLua -o program.lua
The Debug menu has items for executing and debugging it. To set
breakpoints click on the margin and red squares appear, be sure to put
them on code lines. Then click Debug->Start Debugging and a green
arrow appears on the line where the debugger is stopped. Press F11 to
step, click "View call stack" to view the stack and browse all
variables in Lua, you can also set watches to print variable values
(when they're in scope).
Regards,
 John
From: Milind G. <mil...@gm...> - 2012年08月28日 20:36:29
Thanks Paul,
 Yes I see that I need to have it in a separate file and then it works.
Regards,
Milind
On Mon, Aug 27, 2012 at 5:41 PM, Paul K <pau...@ya...> wrote:
> Hi Milind,
>
> I quickly tried that in wxLua, but couldn't figure out how to specify
> the folder to run scripts in so that loadfile and io.open would work.
>
> I also tried to do this in ZeroBrane Studio
> (https://github.com/pkulchenko/ZeroBraneStudio) and it seems like it
> may work for you (the IDE is wxlua based). I'm not sure what your code
> looks like, but let's say you have loadedfile.lua script that you are
> trying to load and it has the following lines:
>
> -- loadedfile.lua
> print "123"
> print "456"
> function foo()
> print "foo"
> end
>
> You also have loadfile.lua script which has something like this:
>
> -- loadfile.lua
> --local func = loadfile('loadedfile.lua')
> local f = assert(io.open('loadedfile.lua'))
> local str = f:read('*all')
> f:close()
> local func = loadstring(str, 'loadedfile.lua')
> func()
> foo()
> print 'Done'
>
> If you open both of these files in ZeroBrane Studio and start
> debugging with loadfile.lua being in the active editor window, you
> should be able to step through both of them. You can also set a
> breakpoint on either of the files and it should work.
>
> Note that I added "loadedfile.lua" as a parameter for loadstring(),
> which informs the debug interface as to where to search for the source
> code.
>
> Paul.
>
> On Mon, Aug 27, 2012 at 3:37 PM, Milind Gupta <mil...@gm...>
> wrote:
> > Hi,
> > I have a lua program in which I load a lua script as a string
> > (loadstring) and then execute it. Is it possible to debug this script in
> > wxLua.exe? How would I add a breakpoint in there?
> >
> > Thanks,
> > Milind
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > wxlua-users mailing list
> > wxl...@li...
> > https://lists.sourceforge.net/lists/listinfo/wxlua-users
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
From: Paul K <pau...@ya...> - 2012年08月28日 00:41:46
Hi Milind,
I quickly tried that in wxLua, but couldn't figure out how to specify
the folder to run scripts in so that loadfile and io.open would work.
I also tried to do this in ZeroBrane Studio
(https://github.com/pkulchenko/ZeroBraneStudio) and it seems like it
may work for you (the IDE is wxlua based). I'm not sure what your code
looks like, but let's say you have loadedfile.lua script that you are
trying to load and it has the following lines:
-- loadedfile.lua
print "123"
print "456"
function foo()
 print "foo"
end
You also have loadfile.lua script which has something like this:
-- loadfile.lua
--local func = loadfile('loadedfile.lua')
local f = assert(io.open('loadedfile.lua'))
local str = f:read('*all')
f:close()
local func = loadstring(str, 'loadedfile.lua')
func()
foo()
print 'Done'
If you open both of these files in ZeroBrane Studio and start
debugging with loadfile.lua being in the active editor window, you
should be able to step through both of them. You can also set a
breakpoint on either of the files and it should work.
Note that I added "loadedfile.lua" as a parameter for loadstring(),
which informs the debug interface as to where to search for the source
code.
Paul.
On Mon, Aug 27, 2012 at 3:37 PM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I have a lua program in which I load a lua script as a string
> (loadstring) and then execute it. Is it possible to debug this script in
> wxLua.exe? How would I add a breakpoint in there?
>
> Thanks,
> Milind
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
From: Milind G. <mil...@gm...> - 2012年08月27日 22:37:14
Hi,
 I have a lua program in which I load a lua script as a string
(loadstring) and then execute it. Is it possible to debug this script in
wxLua.exe? How would I add a breakpoint in there?
Thanks,
Milind
From: John L. <jla...@gm...> - 2012年08月23日 03:47:29
On Sun, Aug 19, 2012 at 11:07 PM, Paul K <pau...@ya...> wrote:
> Hi John,
>
>> Does wx.wxFileName.FileExists("SomethingInThatDir.txt") work, showing
>> that SetCwd() worked?
>> If so then, it'd be a problem with GetCwd(), but I cannot think of any
>> reason why it wouldn't work off the top of my head...
>
> yes, it does seem like the problem is with GetCwd, and it should be
> easy to reproduce:
>
>> wx.wxFileName.SetCwd([[D:\Lua\下载\下载\]]); print(wx.wxFileName.FileExists("foo.lua")); print(wx.wxGetCwd()); print(wx.wxFileName.SetCwd(wx.wxGetCwd()))
> true
> D:\Lua\??\??
> false
>
> As you can see, the file is there, but using the result of GetCwd to
> set it as the current folder fails (returns "false" the second time).
Hummm, I can't get to Windows machine right now, but I wonder if it's
something to do with the conversion to a Lua ansi string rather than
wxGetCwd() not returning the right value.
Try this:
s = wx.wxString([[D:\Lua\下载\下载\]])
print(s:GetData())
s2 = s:GetData()
print(s2)
Regards,
 John
From: Paul K <pau...@ya...> - 2012年08月20日 03:07:10
Hi John,
> Using the unicode build right?
Yes. Everything else Unicode-related is working as far as I can tell.
> Does wx.wxFileName.FileExists("SomethingInThatDir.txt") work, showing
> that SetCwd() worked?
> If so then, it'd be a problem with GetCwd(), but I cannot think of any
> reason why it wouldn't work off the top of my head...
yes, it does seem like the problem is with GetCwd, and it should be
easy to reproduce:
> wx.wxFileName.SetCwd([[D:\Lua\下载\下载\]]); print(wx.wxFileName.FileExists("foo.lua")); print(wx.wxGetCwd()); print(wx.wxFileName.SetCwd(wx.wxGetCwd()))
true
D:\Lua\??\??
false
As you can see, the file is there, but using the result of GetCwd to
set it as the current folder fails (returns "false" the second time).
Paul.
On Sun, Aug 19, 2012 at 7:53 PM, John Labenski <jla...@gm...> wrote:
> On Thu, Aug 16, 2012 at 11:24 AM, Paul K <pau...@ya...> wrote:
>> It seems like I can't get a proper unicode path from GetCwd() on
>> windows using wxLua 2.8.12.2.
>
> Using the unicode build right?
>
>> I'm running the following code:
>>
>> wx.wxFileName.SetCwd("D:\\Lua\\下载\\"); print(wx.wxFileName.GetCwd())
>>
>> and this prints "D:\Lua\??" whereas I expect the original path to be
>> printed. SetCwd() returns true. I look at some other calls, and others
>
> Does wx.wxFileName.FileExists("SomethingInThatDir.txt") work, showing
> that SetCwd() worked?
>
> If so then, it'd be a problem with GetCwd(), but I cannot think of any
> reason why it wouldn't work off the top of my head...
>
> Regards,
> John
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
From: John L. <jla...@gm...> - 2012年08月20日 02:53:32
On Thu, Aug 16, 2012 at 11:24 AM, Paul K <pau...@ya...> wrote:
> It seems like I can't get a proper unicode path from GetCwd() on
> windows using wxLua 2.8.12.2.
Using the unicode build right?
> I'm running the following code:
>
> wx.wxFileName.SetCwd("D:\\Lua\\下载\\"); print(wx.wxFileName.GetCwd())
>
> and this prints "D:\Lua\??" whereas I expect the original path to be
> printed. SetCwd() returns true. I look at some other calls, and others
Does wx.wxFileName.FileExists("SomethingInThatDir.txt") work, showing
that SetCwd() worked?
If so then, it'd be a problem with GetCwd(), but I cannot think of any
reason why it wouldn't work off the top of my head...
Regards,
 John
From: John L. <jla...@gm...> - 2012年08月20日 02:48:24
On Fri, Aug 17, 2012 at 2:52 AM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I used wxluafreeze to convert my application to an executable file in
> linux. But I see that the wx.so file that I have in linux is 446KB while in
> windows wx.dll was 5.7MB and there is a similar difference between my
> application size. Is this right? Do the wx libraries have such a big size
> difference or is there something missing in my linux library.
You're probably building all shared libraries? This means that wx.so
links to the other wxLua libraries and wxWidgets libraries which
contain all the code. This is the typical Linux model where these
shared libs can be linked to by many apps or other libs reducing the
overall size of all the apps/libs on disk.
Run "ldd wx.so" to see what libs it depends on.
I decided to try to put everything into the wx.dll for Windows since
having a whole bunch of shared libs is more trouble since the DLLs
have to be in the path or same dir and "Windows people" are not as
used to seeing a whole bunch of shared libs along with the app.
Regards,
 John
From: Milind G. <mil...@gm...> - 2012年08月17日 06:52:18
Hi,
 I used wxluafreeze to convert my application to an executable file
in linux. But I see that the wx.so file that I have in linux is 446KB while
in windows wx.dll was 5.7MB and there is a similar difference between my
application size. Is this right? Do the wx libraries have such a big size
difference or is there something missing in my linux library.
Thanks.
From: Milind G. <mil...@gm...> - 2012年08月17日 06:40:00
Thanks I will re check that if I get access to that computer again.
On Thu, Aug 16, 2012 at 8:01 PM, John Labenski <jla...@gm...> wrote:
> On Thu, Aug 16, 2012 at 1:54 PM, Milind Gupta <mil...@gm...>
> wrote:
> > Hi,
> > I have made this lua application using wxLua and I created an exe
> using
> > wxluafreeze. The program requires a LuaXML_lib.dll/so file. Both files I
> > have put in the same directory as the exe. Also in my lua code the 1st
> thing
> > I do is to set package.cpath = ";./?.dll;./?.so". It works fine on my
> > computer but on one computer it was not able to find the LuaXML_lib.dll.
> How
> > do I fix this?
>
> To be sure, the problem is on windows? And the two machines both have
> the same version, XP or 7?
>
> If everything is the same I cannot think of any reason why it would
> find it on one and not the other. I would double/triple check that the
> files really are the same or that there isn't some difference in the
> permissions, though MSWindows seems to ignore them for the most part.
>
> Regards,
> John
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
From: Paul K <pau...@ya...> - 2012年08月17日 04:05:28
Hi John,
> This does not show the error dialog for me in Linux.
it seems like you need to have a frame open to see the effect (your
code works regardless of whether LogNull is there). Try the code
below.
The solution is indeed to use "local log = wx.wxLogNull()", but it
needs to be used *before* wxFile constructor, because this is where it
is failing (not in the Write method as I thought initially). Thanks
for getting me on the right track.
require "wx"
function FileWrite(file,content)
 -- local log = wx.wxLogNull() --<-- LogNull code should be here
 local file = wx.wxFile(file, wx.wxFile.write)
 if not file:IsOpened() then return nil, wx.wxSysErrorMsg() end
 local log = wx.wxLogNull()
 file:Write(content, #content)
 file:Close()
 log:delete() -- this doesn't seem to be needed
 return true
end
function main()
 -- create the wxFrame window
 local frame = wx.wxFrame( wx.NULL, -- no parent for
toplevel windows
 wx.wxID_ANY, -- don't need a wxWindow ID
 "wxLua Minimal Demo", -- caption on the frame
 wx.wxDefaultPosition, -- let system place the frame
 wx.wxSize(450, 450), -- set the size of the frame
 wx.wxDEFAULT_FRAME_STYLE ) -- use default frame styles
 -- show the frame window
 frame:Show(true)
 if not FileWrite("/my-read-only-file", "something") then
 wx.wxMessageBox("Unable to save file.", "Error", wx.wxOK + wx.wxCENTRE)
 end
end
main()
wx.wxGetApp():MainLoop()
Paul.
On Thu, Aug 16, 2012 at 8:21 PM, John Labenski <jla...@gm...> wrote:
> On Thu, Aug 16, 2012 at 10:56 PM, Paul K <pau...@ya...> wrote:
>> Hi all,
>>
>> I'm working with an application that saves data in files and some of
>> the operations may trigger file errors. I'm handling those errors
>> myself and don't want to see the standard error message shown by
>> wxwidgets. How do I disable it? Here is the code that I have:
>>
>> local file = wx.wxFile(filename, wx.wxFile.write)
>> file:Write("something", #"something")
>>
>> If the file is write protected, I get "can't open file '...' (error 5:
>> access is denied)". I know, I can check for that condition, but this
>> is not what the question is about. I'd like to disable that message.
>>
>> 1. use wxLogNull. I read C++ examples, but not sure how this should be
>> used in wxlua (according to examples, you just need to "instantiate"
>> this logNull object):
>
> This does not show the error dialog for me in Linux.
>
> local log = wx.wxLogNull()
> local file = wx.wxFile("/aaa", wx.wxFile.write)
> print(file:IsOpened())
> if (file:IsOpened())
> -- This asserts as it should if the file is not opened
> file:Write("something", #"something")
> end()
> log:delete()
>
> Regards,
> John
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
From: John L. <jla...@gm...> - 2012年08月17日 03:21:44
On Thu, Aug 16, 2012 at 10:56 PM, Paul K <pau...@ya...> wrote:
> Hi all,
>
> I'm working with an application that saves data in files and some of
> the operations may trigger file errors. I'm handling those errors
> myself and don't want to see the standard error message shown by
> wxwidgets. How do I disable it? Here is the code that I have:
>
> local file = wx.wxFile(filename, wx.wxFile.write)
> file:Write("something", #"something")
>
> If the file is write protected, I get "can't open file '...' (error 5:
> access is denied)". I know, I can check for that condition, but this
> is not what the question is about. I'd like to disable that message.
>
> 1. use wxLogNull. I read C++ examples, but not sure how this should be
> used in wxlua (according to examples, you just need to "instantiate"
> this logNull object):
This does not show the error dialog for me in Linux.
local log = wx.wxLogNull()
local file = wx.wxFile("/aaa", wx.wxFile.write)
print(file:IsOpened())
if (file:IsOpened())
 -- This asserts as it should if the file is not opened
 file:Write("something", #"something")
end()
log:delete()
Regards,
 John
From: John L. <jla...@gm...> - 2012年08月17日 03:02:01
On Thu, Aug 16, 2012 at 1:54 PM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I have made this lua application using wxLua and I created an exe using
> wxluafreeze. The program requires a LuaXML_lib.dll/so file. Both files I
> have put in the same directory as the exe. Also in my lua code the 1st thing
> I do is to set package.cpath = ";./?.dll;./?.so". It works fine on my
> computer but on one computer it was not able to find the LuaXML_lib.dll. How
> do I fix this?
To be sure, the problem is on windows? And the two machines both have
the same version, XP or 7?
If everything is the same I cannot think of any reason why it would
find it on one and not the other. I would double/triple check that the
files really are the same or that there isn't some difference in the
permissions, though MSWindows seems to ignore them for the most part.
Regards,
 John
From: Paul K <pau...@ya...> - 2012年08月17日 02:57:02
Hi all,
I'm working with an application that saves data in files and some of
the operations may trigger file errors. I'm handling those errors
myself and don't want to see the standard error message shown by
wxwidgets. How do I disable it? Here is the code that I have:
 local file = wx.wxFile(filename, wx.wxFile.write)
 file:Write("something", #"something")
If the file is write protected, I get "can't open file '...' (error 5:
access is denied)". I know, I can check for that condition, but this
is not what the question is about. I'd like to disable that message.
Here is what I tried so far:
1. use wxLogNull. I read C++ examples, but not sure how this should be
used in wxlua (according to examples, you just need to "instantiate"
this logNull object):
local log = wx.wxLogNull()
file:Write(....)
log:delete()
This has no effect.
2. use SetActiveTarget()
local log = wx.wxLog.SetActiveTarget(wx.wxLogNull())
file:Write(....)
wx.wxLog.SetActiveTarget(log)
This doesn't work as SetActiveTarget expects wxLog object, but
wxLogNull doesn't seem to be inherited from wxLog (according to wxlua
docs).
3. use EnableLogging on either wx.wxLogGui() or wx.wxLog()
local curr = wx.wxLogGui().EnableLogging(false)
file:Write(....)
wx.wxLogGui().EnableLogging(curr)
This has no effect.
What is the right way to (temporarily) disable logging such that I
don't get the log window? Thanks.
Paul.

Showing results of 36

1 2 > >> (Page 1 of 2)
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 によって変換されたページ (->オリジナル) /