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
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
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
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
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. :)
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
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
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
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
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
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
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
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
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
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,
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.
>>
>> --
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
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
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
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
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()
>&
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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)
&
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
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
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
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
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
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
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
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
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
> 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
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
>> 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
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
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
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
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"
.."
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
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
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
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
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
>&
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
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
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.
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
> 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
>> 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
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
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
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
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
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.
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
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
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?
---
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 - 100 of 107 matches
Mail list logo