Re: [wxlua-users] print numbers

2012-11-15 Thread Victor Bombi
Hello,

This is what I get:

lua.exe
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
 print(1.234, string.format(%f, 2.345), os.setlocale())
1.234   2.345000C
 require(wx)
 print(1.234, string.format(%f, 2.345), os.setlocale())
1,234   2,345000Spanish_Spain.1252
 print(os.setlocale(, all))
Spanish_Spain.1252
 print(1.234, string.format(%f, 2.345), os.setlocale())
1,234   2,345000Spanish_Spain.1252


manual from lua.51 says:
If locale is the empty string, the current locale is set to an 
implementation-defined native locale.
May be Spanish locale was hard coded in my lua.exe compilation and wxlua 
calls os.setlocale(, all)?

I have used os.setlocale(C) in my lua script after requirewx and 
everything works as I expected
(but of course wx.wxMessageBox prints 1.234 which is not anoying for me). 
Would be good idea to
mention in the FAQ what is happenig with the locale.


Best Regards


--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] wxEVT_STC_STYLENEEDED is not called in wxlua 2.8.12.2?

2012-11-15 Thread Paul K
Hi John,

 If you choose to use the container to do the styling you can use the
 SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the
 container is sent a SCN_STYLENEEDED notification each time text needs
 styling for display.

You are absolutely right. In fact, I was reading this fragment and
somehow missed that STYLENEEDED is going to be *only* called when the
lexer is set to SCLEX_CONTAINER.

 I think the idea is that you will have to style everything all the
 time. Though, I don't remember having tried it myself.

Ok, related question then. Is it possible to use SCLEX_CONTAINER, but
still make a call that will apply styling using some lexer (for
example, Lua) and I'll do the rest of the styling as needed?

Paul.

On Thu, Nov 15, 2012 at 1:12 PM, John Labenski jlaben...@gmail.com wrote:
 On Thu, Nov 15, 2012 at 3:56 PM, Paul K paulclin...@yahoo.com wrote:
 Hi John,

 I've been doing custom styling and realized that the work that I've
 done is mostly in UPDATEUI handlers, whereas it should probably be in
 STYLENEEDED handlers. I looked at your editor and see that you also
 only use UPDATEUI, but not STYLENEEDED.

 The Scintilla docs are pretty complete and map reasonably well to the
 wxWidgets wrapper.
 http://www.scintilla.org/ScintillaDoc.html

 If you choose to use the container to do the styling you can use the
 SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the
 container is sent a SCN_STYLENEEDED notification each time text needs
 styling for display.

 I think the idea is that you will have to style everything all the
 time. Though, I don't remember having tried it myself.

 Regards,
 John

 --
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users