Re: [wxlua-users] [SOLVED] frame:ShowFullScreen(true) does work forme

2011-04-03 Thread Lostgallifreyan
Jens Mueller wrote: (03/04/2011 13:04) >I was linking against the wrong library. The fix is to remove %win as >I said some mails ago. I'd like to push this upstream. Is it okay to >send this little patch to the list to get it applied? >I'm still wondering why ShowFullScreen() is only enabled for

Re: [wxlua-users] frame:ShowFullScreen(true) does work for me

2011-04-03 Thread Lostgallifreyan
Jens Mueller wrote: (03/04/2011 10:11) >Show() works but I need full screen. It seems that ShowFullScreen() is >not supposed to work on Linux (wxcore_appframe.i has %win in front of >ShowFullScreen). But I found some posts where it was used on Linux. If it does get awkward, doing it in wxLua co

Re: [wxlua-users] frame:ShowFullScreen(true) does work for me

2011-04-02 Thread Lostgallifreyan
I'm using W98 so I can't check all of that, but the stuff below 'require...' is ok. ShowFullScreen() works on W98, so it looks like your install isn't finding some file that defines it. Try it with just Show(). I haven't got source files here so I don't know if the two methods are defined in the

Re: [wxlua-users] [Bulk] Re: Installing wxLua

2011-02-24 Thread Lostgallifreyan
ror occurred while opening file" > >I saved it on desktop. While I'm coding it didn't auto-complete. > >When I did the same thing on wxLuaedit it ran the code successfully, but >didn't auto-complete anything. > >I changed settings of file type .lua to open

Re: [wxlua-users] [Bulk] Re: Installing wxLua

2011-02-24 Thread Lostgallifreyan
Mahadi Hasan wrote: (24/02/2011 03:34) >Thank you for your advice. I'll try this and will let you know from time to >time what happens next. >Thanks again. > You're welcome. Just bear in mind that one you get stuck into it, your questions will need someone who knows a lot more than I do. :)

Re: [wxlua-users] [Bulk] Re: Installing wxLua

2011-02-23 Thread Lostgallifreyan
earn how to use wxLua to build gui >components, how to use Lua script with it? > >I've asked so many things because I'm very very new to this stuff, and I'm >not a programmer, but I do want to learn Lua for personal reasons. > >Please help me with these questions. &g

Re: [wxlua-users] [Bulk] Re: Installing wxLua

2011-02-23 Thread Lostgallifreyan
y tried >using source files, and failed. I can't figure out what to do as I'm a >novice to both coding and Linux. > >On 2/23/11, Lostgallifreyan wrote: >> I don't use Linux, but as with Windows, I imagine you don't need wxWidgets >> separate;y because

Re: [wxlua-users] Installing wxLua

2011-02-23 Thread Lostgallifreyan
I don't use Linux, but as with Windows, I imagine you don't need wxWidgets separate;y because wxLua already uses it. It might not use the latest wxWidgets, but it does when it can. In Windows, the file wxLua.exe runs the whole show, mostly, at least it's all I use... I just write scripts and as

Re: [wxlua-users] A simple general spin control

2011-01-02 Thread Lostgallifreyan
Andre Arpin wrote: (03/01/2011 00:01) >Lostgallifreyan writes: > > >> >> I have one question: Is N in the for loop implicitly local? Or is it a >global that Strict failed to notice? >> > > >for i= 1, 2 do >end >print(i) > >output: nil &g

Re: [wxlua-users] A simple general spin control

2011-01-02 Thread Lostgallifreyan
Andre Arpin wrote: (02/01/2011 13:24) >I recommend that use strict while testing and only use necessary global >variables. You will be amazed at the number of time it will shorten your >coding cycle. I set up a copy of Strict.lua (in the base Lua/wxLua directory), and re-ordered the SpinCtrl

Re: [wxlua-users] A simple general spin control

2011-01-02 Thread Lostgallifreyan
Lostgallifreyan wrote: (02/01/2011 14:40) >Thankyou. I'll use it. I'm usually strict in their use anyway, always creating >them in Main() or using locals, but I have made exceptions it seems I >shouldn't, like using _ as a temp in any case where I know its content i

Re: [wxlua-users] A simple general spin control

2011-01-02 Thread Lostgallifreyan
mailto:wxlua-users@lists.sourceforge.net> >List-Help: <mailto:wxlua-users-requ...@lists.sourceforge.net?subject=help> >List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/wxlua-users>, > <mailto:wxlua-users-requ...@lists.sourceforge.net?subject=subsc

Re: [wxlua-users] A simple general spin control

2011-01-01 Thread Lostgallifreyan
Here it is again, to save borrowing around in other threads... function Main() FRAME=wx.wxFrame(wx.NULL,-1,"") FRAME:SetTitle("Symbolic SpinCtrl Array") PANEL=wx.wxPanel(FRAME,-1) IDS=wx.wxID_HIGHEST+1 -- IDS is 'ID Start', first ID

Re: [wxlua-users] A simple general spin control

2011-01-01 Thread Lostgallifreyan
I don't understand this. Why re-invent a good wheel? All I am concerned with is using it, and trying to resist further breakage by coders who seem not to realise how useful its current behaviour is. Take a look at the small example I made, with four SpinCtrl's. There are several inbuilt native

Re: [wxlua-users] Dot versus colon?

2011-01-01 Thread Lostgallifreyan
Andre Arpin wrote: (01/01/2011 13:51) >also interesting is that the definition for GetValue is that it return an int >but in reality it returns a string. > As I say in the previous mail, it should allow both, explicitly! This is the best use of the intended combination control, no? GetValue,

Re: [wxlua-users] Dot versus colon?

2011-01-01 Thread Lostgallifreyan
Andre Arpin wrote: (01/01/2011 13:34) >> The dot variant causes SpinCtrl to panic because it is trying to directly >address the internal value, not >> the text field. TextCtrl is purely a text field, which is why the difference >wasn't revealed. >> >> --

Re: [wxlua-users] Dot versus colon?

2010-12-31 Thread Lostgallifreyan
Lostgallifreyan wrote: (01/01/2011 01:39) >frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, '') >sc = >wx.wxSpinCtrl(frame,1,"",wx.wxPoint(2,2),wx.wxSize(60,20),wx.wxSP_ARROW_KEYS+wx.wxTE_PROCESS_ENTER,0,10,5) >frame:Show(true) >sc.Value = 5 >sc.Value = sc.V

Re: [wxlua-users] Dot versus colon?

2010-12-31 Thread Lostgallifreyan
Andre Arpin wrote: (01/01/2011 00:43) >> Which is nice but I'd hoped it cut both ways. :) Sadly, while EV.Id neatly >replaces EV:GetId(), you can't do >> SC.Value=SC.Value.."text" to force text replacement in a SpinCtrl derived >directly from its own value, >> but you CAN do it with SC:SetValu

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.ANSWERED. :)

2010-12-31 Thread Lostgallifreyan
Lostgallifreyan wrote: (31/12/2010 16:23) >SC:Connect(-1,wx.wxEVT_SCROLL_THUMBTRACK,DoStuff) -- Where SC is a SpinCtrl. >That's it! Do this instead of SPINCTRL_UPDATED, and it works. > >What's even more amazing is that this removes the need for the KILL_FOCUS >c

Re: [wxlua-users] Dot versus colon?

2010-12-31 Thread Lostgallifreyan
Andre Arpin wrote: (31/12/2010 21:07) >note given: text = wx.wxTextCtrl(... >then > >v = text.Value >v = text[Value] >v = text:GetValue() >v = text.GetValue(text) > >are all equivalent > Which is nice but I'd hoped it cut both ways. :) Sadly, while EV.Id neatly replaces EV:GetId(), you can't d

Re: [wxlua-users] Dot versus colon?

2010-12-31 Thread Lostgallifreyan
Andre Arpin wrote: (31/12/2010 00:11) > >Lostgallifreyan writes: > >> >> Small syntactic question... >> Andre's code in another thread used a dot, the results are neater than the >colon I learned to use >> >> ST:SetLabel(SC:GetValue() >&

Re: [wxlua-users] Question and rant inspired by wxSpinctrl. ANSWERED. :)

2010-12-31 Thread Lostgallifreyan
Thankyou. It ran, but it was something in your code that led to the answer, and this time it really IS the answer: SC:Connect(-1,wx.wxEVT_SCROLL_THUMBTRACK,DoStuff) -- Where SC is a SpinCtrl. That's it! Do this instead of SPINCTRL_UPDATED, and it works. What's even more amazing is that this re

[wxlua-users] Dot versus colon?

2010-12-30 Thread Lostgallifreyan
Small syntactic question... Andre's code in another thread used a dot, the results are neater than the colon I learned to use ST:SetLabel(SC:GetValue() ST.Label=SC.Value I imagine this is an old issue so I'll keep this short: Is one of these methods to be deprecated (made obsolete), and if s

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-30 Thread Lostgallifreyan
Andre Arpin wrote: (30/12/2010 14:36) >function FeedBack(event) > local Id = event.Id > . old code for feed back >end > >for I=7,151 do > CT[I]:Connect(wx.wxEVT_KILL_FOCUS, FeedBack) >end I accidentally found an even better way! :) Make a dummy function that does nothing, and call tha

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-30 Thread Lostgallifreyan
Lostgallifreyan wrote: (30/12/2010 15:53) >>function FeedBack(event) >> local Id = event.Id >> . old code for feed back >>end >> >>for I=7,151 do >> CT[I]:Connect(wx.wxEVT_KILL_FOCUS, FeedBack) >>end >> > >.I see your

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-30 Thread Lostgallifreyan
I couldn't run that one... it throws errors I can't even interpret with my limited knowledge. Lack of 'strict' to require, whatever it is.., lack of value for #textControls, some of the error messages I saw resulting from my attempts to fix this had so many lines I didn't even try to diagnose th

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-30 Thread Lostgallifreyan
Andre Arpin wrote: (30/12/2010 15:47) >> If you have an equally neat trick to solve the spinctrl's habit of replacing >text with the internal numeric >> value every time I hit the MAX or MIN limit, please show me. This is by far >the more serious problem because >> the internal handling updates

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-30 Thread Lostgallifreyan
Andre Arpin wrote: (30/12/2010 14:36) >> for I=7,151 do >> CT[I]:Connect(wx.wxEVT_KILL_FOCUS, >> function(EV) FeedBack(EV:GetId()) end >> ) >> end >> > >> What about: >local function KILL_FOCUS(EV) FeedBack(EV:GetId() > >for I=7,151 do > CT[I]:Connect(wx.wxEVT_KILL_FOCUS, KILL_FOCUS

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-29 Thread Lostgallifreyan
Andre Arpin wrote: (29/12/2010 21:42) >sp:Connect(wx.wxEVT_KILL_FOCUS, >function(event) >print('k') >end) > Thanks again for this, it works great. I had to modify it to this: for I=7,151 do CT[I]:Connect(wx.wxEVT_KILL_FOCUS, function(EV) FeedBack(EV:GetId()) end

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-29 Thread Lostgallifreyan
Andre Arpin wrote: (29/12/2010 21:42) >sp:Connect(wx.wxEVT_KILL_FOCUS, >function(event) >print('k') >end) > Thanks. That one's useful, it solves one problem. I could use it to restore the original text display. That still leaves a need to fix the lack of signal from the sp

Re: [wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-29 Thread Lostgallifreyan
Andre Arpin wrote: (29/12/2010 21:22) >Lostgallifreyan writes: > >> >> Is there a way to tell a wxSpinctrl to always send a signal when a button is >clicked, not just when the value >try > >this is a very long question I just try to anwer your 1st point.

[wxlua-users] Question and rant inspired by wxSpinctrl.

2010-12-29 Thread Lostgallifreyan
Is there a way to tell a wxSpinctrl to always send a signal when a button is clicked, not just when the value changes (is updated)? Also, is there a way to tell it NOT to replace a displayed text string with its lowest preset numeric value whenever focus departs or other inadvertent user event o

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
Lostgallifreyan wrote: (10/08/2010 21:38) >John Labenski wrote: >(10/08/2010 19:28) > >>function iff(a, b, c) if a then return b else return c end end >> >. >. >. >>print(string.format("%d: %d : %d : Err %d : '%s'\n", i, S:LastRead

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
John Labenski wrote: (10/08/2010 19:28) >function iff(a, b, c) if a then return b else return c end end > . . . >print(string.format("%d: %d : %d : Err %d : '%s'\n", i, S:LastRead(), > iff(S:Eof(), 1, 0), U:GetError(), a)) My turn for a small neat idea. :) Instead of writing a function to

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
John Labenski wrote: (10/08/2010 19:28) > >On Tue, Aug 10, 2010 at 10:05 AM, Lostgallifreyan >wrote: >> Can anyone tell me why this fails? > >Unfortunately no, but http://www.google.com and yahoo.com work fine. > For a moment there I took that to be a terse reco

[wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread Lostgallifreyan
Can anyone tell me why this fails? It seems that while the code 'CanRead()' the URL's stream just fine, it cannot actually 'Read()' it at all! Substituting other URL and direct file references, even local ones, works fine, as does a directly fetched copy of the page I'm after, stored locally. It

Re: [wxlua-users] Simple wxLua web access?

2009-10-29 Thread lostgallifreyan
John Labenski wrote: (Wed, 28 Oct 2009 19:07:17 -0700) >On Wed, Oct 28, 2009 at 2:28 PM, lostgallifreyan > wrote: >> I got it! >:) At least, I really think so >> >> function Main() >> local IP=wx.wxIPV4address() IP:AnyAddress() IP:Service(80) &

Re: [wxlua-users] Simple wxLua web access?

2009-10-28 Thread lostgallifreyan
I got it! >:) At least, I really think so function Main() local IP=wx.wxIPV4address() IP:AnyAddress() IP:Service(80) local SKT=wx.wxSocketServer(IP,wx.wxSOCKET_NONE) print("Socket OK?",SKT:Ok()) FRAME=wx.wxFrame(wx.NULL,-1,"") FRAME:SetSize(432,310) FRAME:Centre() SKT:SetEventH

Re: [wxlua-users] Simple wxLua web access?

2009-10-26 Thread lostgallifreyan
Ryan Pusztai wrote: (Mon, 26 Oct 2009 06:26:46 -0700) > It is not wlua.exe flashing the console. The os.execute() command in Lua is > doing that. Indeed. I'd thought os.execute() launched whatever it pointed to directly, unless the command was dir or some other built into the Windows command in

Re: [wxlua-users] Simple wxLua web access?

2009-10-26 Thread lostgallifreyan
Andreas Krinke wrote: (Sun, 25 Oct 2009 13:15:08 -0700) > http://luabinaries.luaforge.net/manual.html says LuaBinaries provides a > wlua5.1.exe without a console, so no need for Lua for Windows. Looks good but wlua5.1.exe doesn't work for me. It flashes a console window briefly (wreaks havoc wit

Re: [wxlua-users] Simple wxLua web access?

2009-10-25 Thread lostgallifreyan
Andreas Krinke wrote: (Sun, 25 Oct 2009 09:39:44 -0700) >You should be able to use binaries for Lua [1]. In the Lua for Windows >package there is a wlua.exe that doesn't pop up a console window (if I >remember correctly). I'll check that out. Very useful. I also think that TCC might be persuaded

Re: [wxlua-users] Simple wxLua web access?

2009-10-25 Thread lostgallifreyan
ething certain to work with. My guess is some DNS server out there went strange during the week and got fixed during the quiet time that sunday mornings allow. >lostgallifreyan wrote: >> If I carry on with this, the main thing I need to know is how to set >> up wxLua as a simple

Re: [wxlua-users] Simple wxLua web access?

2009-10-25 Thread lostgallifreyan
Strange things I hadn't given up on it, yet, I was tinkering with the example to make it look more how I do things, so I could think more abstractedly about what might make it fail, instead of focussing on it, and it started working at 12:10 GMT or so today. Nothing I did could account for i

Re: [wxlua-users] Simple wxLua web access?

2009-10-24 Thread lostgallifreyan
Andreas Krinke wrote: (Sat, 24 Oct 2009 05:43:12 -0700) > local url = wx.wxURL("http://www.google.com";;) > local stream = url:GetInputStream() > while stream:CanRead() do > textCtrl:AppendText(stream:Read(78)) > end One other thing.. I added a line to get the error: local url = wx.wxURL("http

Re: [wxlua-users] Simple wxLua web access?

2009-10-24 Thread lostgallifreyan
Andreas Krinke wrote: (Sat, 24 Oct 2009 05:43:12 -0700) > lostgallifreyan wrote: >> Thankyou, that looks comprehensible to me, though I got errors. >> (First had to remove the semicolon, then saw 'stream' reported as nil >> on line 3). > > Strange, in the m

Re: [wxlua-users] Simple wxLua web access?

2009-10-24 Thread lostgallifreyan
Andreas Krinke wrote: (Fri, 23 Oct 2009 11:58:04 -0700) > You can fetch a webpage by using: > local url = wx.wxURL("http://www.google.com";;) > local stream = url:GetInputStream() > while stream:CanRead() do > print(stream:Read(78)) > end Thankyou, that looks comprehensible to me, though I got

Re: [wxlua-users] Simple wxLua web access?

2009-10-24 Thread lostgallifreyan
> Please search for m_clientSocket in this C++ sample. I think you need > to call wxIPV4address::Hostname() and Service() separately. > > http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/sockets/baseclient.cpp?view=markup > > Hope this helps, Not much. :) If the best translator from Gree

Re: [wxlua-users] Simple wxLua web access?

2009-10-22 Thread lostgallifreyan
Ok, I tried this: function Main() SKT=wx.wxSocketClient() SKT:Connect(wx.wxIPV4address("192.168.1.2:4006"),true) end It gives an 'invalid argument' error... I've seen a lot like this and I'm tired of fumbling inanely in the dark! This NEEDS a working example. It doesn't matter if it's poste

Re: [wxlua-users] Simple wxLua web access?

2009-10-22 Thread lostgallifreyan
>> Anyway, it seems the best thing to ask for is something simple, a template I >> can adapt. The two main purposes I can immediately think of are a GET method >> to fetch a web page so I can filter it and save it to file, then use >> wx.execute() to ask a browser to display it. An ideal extensi

Re: [wxlua-users] icons

2009-10-17 Thread lostgallifreyan
I just read this on the mail-archive.com site so I don't know if this will thread right, but never mind... While it's not scriptable, a free tool for adding or changing icons in Win32 executables is ResHack (Resource Hacker). Look for version 3.4.0.79 if you can.. This program can do many other

[wxlua-users] Simple wxLua web access?

2009-10-17 Thread lostgallifreyan
Hello. New project for me. I'm trying to do things Proxomitron can't do easily, its RegEx rules confuse me, it's far easier to adapt Lua to this now, especially as Proxomitron really wasn't written to extract a table or two on the assumption that the rest of a large web page was not to be proces

Re: [wxlua-users] wxStaticText size nonsense

2009-06-22 Thread lostgallifreyan
ets.org/stable/wx_wxstatictext.html > >Regards, > John > >On Mon, Jun 22, 2009 at 5:16 PM, >lostgallifreyan wrote: >> LABEL= >> "LINE_01:\txx = x1;\n" >> .."LINE_02:\tyy = y1*Cos(XTheta) + z1*Sin(XTheta);\n" >> .."LINE_03:\tzz = z1*Cos

[wxlua-users] wxStaticText size nonsense

2009-06-22 Thread lostgallifreyan
LABEL= "LINE_01:\txx = x1;\n" .."LINE_02:\tyy = y1*Cos(XTheta) + z1*Sin(XTheta);\n" .."LINE_03:\tzz = z1*Cos(XTheta) - y1*Sin(XTheta);\n" .."LINE_04:\ty1 = yy;\n" .."LINE_05:\tx1 = xx*Cos(YTheta) - zz*Sin(YTheta);\n" .."LINE_06:\tz1 = xx*Sin(YTheta) + zz*Cos(YTheta);\n" .."LINE_07:\tzz = z1;\n" .."

Re: [wxlua-users] How do I bring an inactive frame to the front when dragging a file to it?

2009-06-11 Thread lostgallifreyan
Solved this too: FRAME:Connect(wx.wxEVT_DROP_FILES,function(E) FRAME:Raise() FRAME:Update() TrackLoad(E:GetFiles()[1]) E:Skip() end) Not sure why I didn't think earlier of putting Raise() in the drag/drop handler before the main payload, but I have now, and it works well, though I have to

Re: [wxlua-users] Drawing ; was Re: ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-06-11 Thread lostgallifreyan
ainst changes too. Now, if I could build my own SpinControls... :) But that might be overplaying the hand. > >On Mon, Jun 1, 2009 at 6:11 PM, lostgallifreyan > wrote: >> >> I know, that's why I just sent the post I sent just before I found this one >> of you

Re: [wxlua-users] Drawing ; was Re: ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-06-04 Thread lostgallifreyan
John Labenski wrote: (04/06/2009 05:00) >I ran the code and I see that the EVT_PAINT handler is incessantly >called when you scroll over and down a bit. I would guess that is >because you have overlapping windows which is not supported by >wxWidgets. Before you can make any headway you have to g

Re: [wxlua-users] Drawing ; was Re: ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-06-01 Thread lostgallifreyan
John Labenski wrote: (01/06/2009 23:03) >Please don't send 2.5 Mb messages to the list. There has to be a >easier way to make it clear what your issues are. > There is. I cancelled that post and sent a variant just now that draws the 'chart' panel as a simple rectangle to avoid big files. >Fi

Re: [wxlua-users] ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-06-01 Thread lostgallifreyan
John Labenski wrote: (01/06/2009 04:30) > >On Sat, May 30, 2009 at 8:19 AM, lostgallifreyan > wrote: >> >> I thought wxLua was a C-coded binary. But I did notice that the Lua script >> produced what appeared to be the same thing. I think you mentioned this a >&

Re: [wxlua-users] How do I bring an inactive frame to the frontwhendragging a file to it?

2009-06-01 Thread lostgallifreyan
John Labenski wrote: (01/06/2009 04:01) >I don't really understand what you're trying to do. You first said >that Raise() works, but you couldn't make it active since there is no >function for this. I checked and I didn't see one either. Are you >really sure that that your UI can only work if y

Re: [wxlua-users] How do I bring an inactive frame to the frontwhen dragging a file to it?

2009-05-31 Thread lostgallifreyan
Smal update, which might confirm that it is broken in some way. I found that Raise() will work in my three-window test earlier described, in limkted circumstances. If I have called the Explorer window to the top by using Alt+Tab, I can move the pointer into the wxLua window, and Raise() will bri

Re: [wxlua-users] How do I bring an inactive frame to the frontwhen dragging a file to it?

2009-05-30 Thread lostgallifreyan
John Labenski wrote: (29/05/2009 21:00) >> This looks like it should work, but it won't: >>  INPUT:Connect(wx.wxEVT_ENTER_WINDOW,function(E)  FRAME:Show(true)   >> FRAME:Raise(true)  end) [snip] >> > >I don't know about this, you might have to call Raise() after the >enter window event handler i

Re: [wxlua-users] ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-05-30 Thread lostgallifreyan
Typo correction: "GPS Chart/lua" should be "GPS Chart.lua" No Windows machine would have let me use a / in a filename anyway.. -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tec

Re: [wxlua-users] ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-05-30 Thread lostgallifreyan
John Labenski wrote: (29/05/2009 20:02) >Please turn on your line wrap. > Can't.. nPOP (mail client I use) only does that for viewing, which I thought was kind of the point, a sending client can't know what size remote viewers will use, unless they're all the same. Actually, the Usenet client

[wxlua-users] How do I bring an inactive frame to the front when dragging a file to it?

2009-05-29 Thread lostgallifreyan
This looks like it should work, but it won't: INPUT:Connect(wx.wxEVT_ENTER_WINDOW,function(E) FRAME:Show(true) FRAME:Raise(true) end) INPUT is a panel. I've confirmed it works. Actually the enter event is only detected when I let go the dragged file, but that's ok. Trouble is, nothing wil

Re: [wxlua-users] Another small paths problem...

2009-05-28 Thread lostgallifreyan
John Labenski wrote: (28/05/2009 23:56) >> PATH=string.gsub(arg[0],"^(.+[/\\]).+$","%1").."Bitmaps/" >> >> It works, but it's a clumsy method. At least it's portable, it accepts >> non-Windows path separators... > >This is a typical problem of finding where a program's external >resources are a

[wxlua-users] Another small paths problem...

2009-05-28 Thread lostgallifreyan
This appears with both the older and latest wxLua, and might even be native to Lua, but I don't think so. I'm using the Windows registry to associate files, such that I right click on a data file, select an option I put there to open it with a script I associated it with, the script in turn bei

Re: [wxlua-users] ANN: wxLua 2.8.10.0 release on Sourceforge.net

2009-05-28 Thread lostgallifreyan
John Labenski wrote: (24/05/2009 17:40) > >We are pleased to announce the latest release of wxLua. > >wxLua 2.8.10.0 is a stable bugfix release that is a minor update to >the internals of wxLua and the precompiled versions are linked against >wxWidgets 2.8.10. > Thanks for keeping it going. Go

Re: [wxlua-users] No system colours for user-created toolbar bitmaps anymore.

2009-05-21 Thread lostgallifreyan
Ok, I found an answer: wx.wxSystemOptions.SetOption("msw.remap",1) wxWidgets manual says this is enabled by default. It isn't. -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tec

[wxlua-users] No system colours for user-created toolbar bitmaps anymore.

2009-05-21 Thread lostgallifreyan
wxLua v2.5.4 let me make bitmaps for toolbar buttons where black would take the system foreground text colour, and grey (192,192,192) would take the background colour, and one or two other colours took similar changes. Similar things still result in the Scribble program where wxArtProvider provi

Re: [wxlua-users] coroutine.yield doesn't work ?

2009-05-20 Thread lostgallifreyan
Youen Toupin wrote: (19/05/2009 19:22) >lostgallifreyan a écrit : >> When I was looking at it I was wondering where and how I'd pass a returned >> value if I had to, which sort of fits with what you just said. I've never >> used a co-routine yet, but if I do, is

Re: [wxlua-users] coroutine.yield doesn't work ?

2009-05-20 Thread lostgallifreyan
John Labenski wrote: (20/05/2009 01:24) >On Tue, May 19, 2009 at 2:14 PM, Youen Toupin wrote: > >> John Labenski a écrit : >> > I think that all you need to do is to shuffle around your existing >> > code to pull out the dialog creation from the coroutine code, I also >> > demonstrate how to pas

Re: [wxlua-users] coroutine.yield doesn't work ?

2009-05-18 Thread lostgallifreyan
Youen Toupin wrote: (18/05/2009 08:26) >There is another problem, however : I don't know if it is a good idea to >create a dialog at the moment it is needed. I'm not used enough to >wxWidgets to know if it can introduce some uncomfortable lag in the >application. You can create it at program

Re: [wxlua-users] coroutine.yield doesn't work ?

2009-05-17 Thread lostgallifreyan
John Labenski wrote: (17/05/2009 22:04) >I think it's a reasonable constraint that a coroutine cannot resume itself >since 1) it stays truer to Lua's behavior, 2) doesn't require second >guessing the user by swapping back to the main thread, which would be >unexpected to say the least, 3) the fi

Re: [wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-15 Thread lostgallifreyan
John Labenski wrote: (15/05/2009 17:11) >On Fri, May 15, 2009 at 7:21 AM, lostgallifreyan >wrote: > >Connect to the wxEVT_ERASE_BACKGROUND event and call event:Skip(false) to >block erasing the background if you use a wxEVT_PAINT handler. > I already know that one, I us

Re: [wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-15 Thread lostgallifreyan
Is there a control that works exactly like wxStaticBitmap() for large high-colour images when moved with Window:Move()? I made a version of my script that uses a wxStaticBitmap() for the chart background which works well, but I'm told I should not use it for large images. I like it though, it d

Re: [wxlua-users] wrap variable arguments

2009-05-13 Thread lostgallifreyan
No other responses, so I'll try. I looked at the post for twenty minutes, again later that day, and breifly the next morning, hoping to learn from it if I couldn't help, and I'm stumped. :) I can't fully understand the question. Any way to reduce it to a simple form? (not dependent on the contex

Re: [wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-11 Thread lostgallifreyan
John Labenski wrote: (11/05/2009 01:16) >A few comments about your code. You should call wxFrame::Show(true) as the >last line in your window creation code to allow it to be laid out properly. Ok, I'd chosen to do it earlier to avoid flow conflicts so I could show some info in a frame while th

[wxlua-users] End the Mousewheel rat race now! >:)

2009-05-10 Thread lostgallifreyan
How do I stop mousewheel events from scrolling the window? I went to absurd lengths, connecting to everything in sight all at once, the code didn't protest but still the wretched scroller scrolleth... FRAME:Connect(wx.wxEVT_MOUSEWHEEL,function() end) SCROLL:Connect(wx.wxEVT_MOUSEWHEEL,funct

Re: [wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-08 Thread lostgallifreyan
"klaas.holwerda" wrote: (06/05/2009 23:00) > >Hi, > >To add something more, it looks like you need some canvas like sample. >wxLua contains wxluacan sample/app. >And based on that i made this: >http://www.pontademangue.com/canvas/ > >wxArt2D contains much more then the above. But i think it wou

Re: [wxlua-users] Newbie: getting started

2009-05-06 Thread lostgallifreyan
Anders Holtsberg wrote: (06/05/2009 11:11) >I am a newbie on wlLua (though not on Lua) trying to get started on Windows: > >1) The demo wxluacan.exe works. > >2) If I fire up xwLua and open calculator.lua and try to run it, then it >says > >Compilation successful and running program > >...\wxlua

Re: [wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-05 Thread lostgallifreyan
Thanks, lots of help in that one so I can't answer it well till I've tried enough, which will take time (got to go out to do stuff now). One thing I did notice was BITMAP:GetSubBitmap() exists, so I'll try that first, as I'm so far not using any intervening wxImage stuff. As you say, it operate

Re: [wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-05 Thread lostgallifreyan
Jorge wrote: (04/05/2009 16:44) > >Or a Java library called Classpath. > I came, I saw, and I couldn't even begin to tell the difference. >:) -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! You

Re: [wxlua-users] Trouble with ToolTips.

2009-05-05 Thread lostgallifreyan
John Labenski wrote: (04/05/2009 22:15) >On Thu, Apr 30, 2009 at 9:55 AM, lostgallifreyan > wrote: >> Any advice about this one? > >Sorry, no. I have only used the wxWindow function SetToolTip("Some string tip") > Ok. It does work the other way too, your suggest

Re: [wxlua-users] Is a hidden colour object lurking?

2009-05-05 Thread lostgallifreyan
John Labenski wrote: (04/05/2009 22:06) >>> On Sat, Apr 25, 2009 at 1:11 PM, lostgallifreyan >>> wrote: >> >> One thing I've noticed is that when loading a large bitmap, I get one or >> two shots at it providing each load and close of the program is cle

[wxlua-users] How can I draw on a layer, overlay, whatever...?

2009-05-04 Thread lostgallifreyan
Google isn't helping. :) 'Layer' means so many things in code that it's like Googling for music by the band called 'Download'... I won't try to say what I think I want, I tried enough things to confuse the hell out of me and none worked so that is wasting your time. Instead I'll state exactly w

[wxlua-users] Trouble with ToolTips.

2009-04-30 Thread lostgallifreyan
Any advice about this one? First, I tried making a tooltip as specified on the wx.chm page for wxToolTip as follows, and played with that a bit... function Main() local XX=wx.wxToolTip("xcv") XX:SetTip("Zoodle\nWurdle") print(XX:GetTip()) --prints "Zoodle" and on new line, "Wurdle" pr

Re: [wxlua-users] Is a hidden colour object lurking?

2009-04-26 Thread lostgallifreyan
John Labenski writes: > > On Sat, Apr 25, 2009 at 1:11 PM, lostgallifreyan > wrote: . . > > local DC,P=wx.wxMemoryDC(),wx.wxPen() P:SetWidth(5) > > P:SetStyle(wx.wxSOLID) > > DC:SelectObject(BITMAP) DC:SetPen(P) DC:SetBrush(wx.wxTRANSPARENT_BRUSH) > > fo

[wxlua-users] Is a hidden colour object lurking?

2009-04-25 Thread lostgallifreyan
I'd been creating and deleting pens and colours each time round a loop to avoid accumulations, and returned to this issue while seeking ways to speed up my program. My current attempt is this (with irrelevance stripped out): local DC,P=wx.wxMemoryDC(),wx.wxPen() P:SetWidth(5) P:SetStyle(wx.

Re: [wxlua-users] MIDI libraries for wxLua?

2009-03-25 Thread lostgallifreyan
John Labenski writes: > > I'm sorry, this is not something that I have time or interest in. I > recommend that if you are serious about this that you look at the > wxWidgets wiki about building wxWidgets, then move to building wxLua, > and finally wxMidi. Once you have those three built you can

Re: [wxlua-users] MIDI libraries for wxLua?

2009-03-24 Thread lostgallifreyan
> http://wxcode.sourceforge.net/showcomp.php?name=wxMidi Hi John, any followup to this one? I Googled further since posting, and found an archive of another mailing list, I see you've encountered it before. :) I don't know if the encounter was favourable or not though. What chance of making it wor

Re: [wxlua-users] How to generate wxLua type numbers (ID _TOOLBAR, etc...)

2009-03-24 Thread lostgallifreyan
>> One problem is in the toolbar buttons that used to show system colours, >> so black on grey controls would show orange on black in my system. >> (Works for me, especially given that another black, for statictext, >> shows as white on black, so I get more immediate info from the display...) >> In

Re: [wxlua-users] How to generate wxLua type numbers (ID _TOOLBAR, etc...)

2009-03-24 Thread lostgallifreyan
John Labenski writes: > If you don't care what ID a control is given you can use -1to have a > unique number set for you. However if you want to get back at the > control or be able to figure out which control an event came from you > should set a variable to some unique number, use it in the wid

Re: [wxlua-users] Getting environment variables in Windows

2009-03-21 Thread lostgallifreyan
Attila writes: > > Hi! > The easiest way is to use Lua's os.getenv() function, > for example local path = os.getenv("PATH") or what you need. > Regards: Attila > Thanks. True. I like to use inbuilt Lua functions if they're there. I'd forgotten about this one till after I first posted. (I'm se

[wxlua-users] How to generate wxLua type numbers (ID_TOOLBAR, etc...)

2009-03-21 Thread lostgallifreyan
DX7-Edit is now showing a GUI, and most errors are small and localised, just some remaining incompatible function calls, mostly. One problem is in the toolbar buttons that used to show system colours, so black on grey controls would show orange on black in my system. (Works for me, especially g

Re: [wxlua-users] Getting environment variables in Windows

2009-03-21 Thread lostgallifreyan
lostgallifreyan writes: > Is there a way to get OS environment variables, other than to redirect the ou > tput of command SET to file, then parse the file to get them? And if so, is t > here a way that is as widely compatible with other platforms as wxLua is? > Never mind, the

[wxlua-users] How to generate wxLua type numbers (ID_TOOLBAR, etc...)

2009-03-21 Thread lostgallifreyan
I'm updating DX7-Edit, using the error reporting in the new wxLua as a guide, fixing each error as I meet it. I notice that the ID_TOOLBAR is nil, and this is I think why an error is reported when I use it. I checked online, and see that it has a value of 1040 according to a long page I found.

[wxlua-users] MIDI libraries for wxLua?

2009-03-21 Thread lostgallifreyan
http://wxcode.sourceforge.net/showcomp.php?name=wxMidi Can anyone tell me how I can make this work with wxLua in Windows? It appears complete and well documented, but I've never linked a library to anything before. As far as I can tell, the binaries included in the package (extension LIB) might

[wxlua-users] List email returns not working

2009-03-20 Thread lostgallifreyan
John, I answered my own post with a mention of os.getenv() but thanks those wxLua functions will be useful if I want to change any. I don't think my answering post showed up. I can't see it on Gmane, which is where I answered the first one. I did that because the list isn't forwarding copies of

[wxlua-users] Getting environment variables in Windows

2009-03-20 Thread lostgallifreyan
Is there a way to get OS environment variables, other than to redirect the output of command SET to file, then parse the file to get them? And if so, is there a way that is as widely compatible with other platforms as wxLua is? ---

Re: [wxlua-users] GUI working, but not as it should.

2009-03-06 Thread lostgallifreyan
John Labenski wrote: (06/03/2009 03:06) >You can also try using >wxDC::SetUserScale() IIRC. Further to that last message, I'd been trying it in the OnPaint() handler because when I tried it in the Main() function where the bitmap is loaded, it didn't do anything (though wxLua didn't protest at

  1   2   >