[wxlua-users] watch

2015-06-01 Thread Andre Arpin
int wxl_type = 0; wxString value; wxLuaDebugData::GetTypeValue(L, -1, &wxl_type, value); strResult.Printf(wxT("%s : %s"), wxluaT_typename(L, wxl_type).c_str(), value.c_str()); lu

[wxlua-users] bindings.wx.lua correction

2014-01-05 Thread Andre Arpin
x1 for -1 I prefer the first solution. Thank you Andre -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance a

[wxlua-users] compiling v 3.0

2013-11-19 Thread Andre Arpin
file FindwxWidgets please add: wxbase30${_UCD}${_DBG} wxbase30${_UCD}${_DBG}_${LIB} wxmsw${_UNV}30${_UCD}${_DBG} wxmsw${_UNV}30${_UCD}${_DBG}_${LIB} in the various FIND_LIBRARY invocation. Thank you Andre

[wxlua-users] revision 222

2013-11-13 Thread Andre Arpin
Using wxWidgets-2.9.4 cannot compile get errors ex: wxbase_file.cpp(6907): error C2065: 'wxFSWWarningType' : undeclared identifier wxbase_file.cpp(7170): error C2039: 'AddAny' : is not a member of 'wxMSWFileSystemWatcher' are you using

[wxlua-users] minor change to wxlua\util\bin2c\bin2c.lua

2013-10-04 Thread Andre Arpin
Change line 27 from: io.write(string.format(unpack(arg))) to: io.write(string.format(unpack({...}))) I am using 5.2 By the way the transition to 5.2 is surprisingly easy. I had fewer changes to do then expected. Thank you for all that great work. Andre

Re: [wxlua-users] wxFile

2013-03-02 Thread Andre Arpin
> > Never notice this before > > wxFile:Read(unsigned int count) returns a count. > > How could who read the data. > > This is odd obviously other methods are available. > Should have tried a bit harder length, data = fileIn:Read(length) which is e

[wxlua-users] wxFile

2013-03-02 Thread Andre Arpin
Never notice this before wxFile:Read(unsigned int count) returns a count. How could who read the data. This is odd obviously other methods are available. Andre -- Everyone hates slow websites. So do we. Make your web

[wxlua-users] At Revisions 150

2012-10-18 Thread Andre Arpin
'this' pointer from 'const wxSTEditorFindReplaceData' to 'wxFindReplaceData &' dev studio 8 compiling in release mode andre -- Everyone hates slow websites. So do we. Make your web apps

[wxlua-users] Compiling error on window (out of the box)n

2012-09-11 Thread Andre Arpin
.\../../../build/wxlua_version.rc(12): fatal error RC1015: cannot open include file '../modules/wxlua/include/wxlversion.h' its in ../modules/wxlua/ md include copy wxlversion.h compiles fine. No testing I have to merge my code 1st. See

Re: [wxlua-users] file motion

2012-09-11 Thread Andre Arpin
e cmake dir from now on. Right now I run cmake assuming that it will replace all the modified file. Should have known better. :) Will work at this next week I am gone for a few days. I have to do some more checks since some of my file differ from

[wxlua-users] file motion

2012-09-09 Thread Andre Arpin
The sln do not seem to match the file new location. ex: E:\wxWidgets\wxLua\apps\wxlua\src\wxlua.cpp instead of E:\wxWidgets\wxLua\apps\wxlua\wxlua.cpp is generated by cmake Andre -- Live Security Virtual Conference

[wxlua-users] Revision 116

2012-08-14 Thread Andre Arpin
I do not know why the assert for joysticks but catch works perfectly well using arrow keys at least on window. Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's securit

[wxlua-users] problem compiling at revision109

2012-08-04 Thread Andre Arpin
\wxledit.cpp(490): error C2065: 'markerPrompt' : undeclared identifier ..\..\..\apps\wxluaedit\src\wxledit.cpp(733): error C2039: 'markerPrompt' : is not a member of 'wxLuaShell' ..\..\..\apps\wxluaedit\src\wxledit.cpp(733): error C2065: 'markerPrompt' : u

[wxlua-users] compiling in release mode

2012-07-03 Thread Andre Arpin
macro: WX_SET_LIBRARIES test for debug file even if only release mode is being compiled So you must compile the debug version even if you only want the release version. This probably explain my problem. Andre

Re: [wxlua-users] Current version does not work in release mode

2012-07-02 Thread Andre Arpin
Thank you. Andre -- 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 end

Re: [wxlua-users] Current version does not work in release mode

2012-07-02 Thread Andre Arpin
it first. Lazy I guess. Many improvements in this version particularly wx.dll works. Replace a number of exe by lua file this is great. Thank for all the work and for your continue help. Andre -- Live Security Virtual C

[wxlua-users] Current version does not work in release mode

2012-07-01 Thread Andre Arpin
window, using cmake -G "Visual Studio 9 2008" -DwxWidgets_ROOT_DIR:STRING=E:/wxWidgets/ - DwxWidgets_LIB_DIR:STRING=E:/wxWidgets/lib/vc_lib E:/wxWidgets/wxLua to generate the control files the programs crash right out of the top wxlua, wxStEdit debug is fine Andre PS: No modif

Re: [wxlua-users] Key events

2012-06-23 Thread Andre Arpin
.wxEVT_KEY_UP, CharKeyEvent) local childNode = win:GetChildren():GetFirst() while childNode do connectKeyUpEvent(childNode:GetData()) childNode = childNode:GetNext() end end end connectKeyUpEvent(frm) frm:Show(true) Andre

Re: [wxlua-users] Key events

2012-06-21 Thread Andre Arpin
-- Could this be tried on unix -- Type an 'a'. Enable caps lock and type another 'a' -- is the keycode 65 in both cases. -- Note: There does not seem to be any way to find out if 'a' is capitalize. -- You get a transition code for caps but you do not know -- if its going up or down.

Re: [wxlua-users] Key events

2012-06-20 Thread Andre Arpin
Andre Arpin writes: I do not think you can decide if the status of the caps lock key. Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat land

Re: [wxlua-users] Key events

2012-06-20 Thread Andre Arpin
cal:Connect(wx.wxID_ANY, wx.wxEVT_CHAR_HOOK, function(event) print('down calendar', event, event.KeyCode) event:Skip() end) I think this really works. I did not test it extensively but it look good to me. Good luck Andre ---

Re: [wxlua-users] Key events

2012-06-20 Thread Andre Arpin
try this notice the panel does not pas wxEVT_KEY_DOWN I do not know why. wxEVT_CHAR is gone why??? frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "Testing") panel = wx.wxPanel(frame, wx.wxID_ANY) frame:Show(true) panel:Connect(wx.wxID_ANY, wx.wxEVT_CHAR, function(event) print('char', even

Re: [wxlua-users] Key events

2012-06-20 Thread Andre Arpin
end) - Seems to work. Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT ma

Re: [wxlua-users] wxCalendarCtrl

2012-06-13 Thread Andre Arpin
Блажнов Валерий writes: > > Better late than never ) - ZIP file is attached. > Please read other posts. John solve the problem. Andre -- Live Security Virtual Conference Exclusive live event will cover all

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread Andre Arpin
Andre Arpin writes: > cal:Connect(wx.wxID_ANY, wx.wxEVT_CALENDAR_DAY_CHANGED, > function(event) > dt = event:GetDate() problem is that event:GetDate() is not cal:GetDate() but a temporary wxDateTime() the code should probably be dt = wx.wxDateTime(event:GetDate().JDN) but H

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread Andre Arpin
DayNumber(), 'OnDate') print(cal:GetDate():GetJulianDayNumber()) end) button:Connect(wx.wxID_ANY, wx.wxEVT_COMMAND_BUTTON_CLICKED, function(event) print(dt:GetJulianDayNumber()) end) frame:Show(true) --

Re: [wxlua-users] Back to ParseDate

2012-06-09 Thread Andre Arpin
o(v,&(type::const_iterator)v.end) // would not compile purely for illustration. In wxLua using foo(v) or foo(string.match(v,pattern)) seems so much simpler than using an iterator. ParseDate is not the only function using iterator but all of

[wxlua-users] Back to ParseDate

2012-06-07 Thread Andre Arpin
. If it returned NULL we could trigger on the result. maybe a special function end = GetOptionalIterator(L, 3, date); which returns the_iterator || &date.end() could be used. Andre -- Live Security Virtual Co

Re: [wxlua-users] ParseDate

2012-05-14 Thread Andre Arpin
Andre Arpin writes: > > Error using ParseDate > > wx.wxDateTime():ParseDate("25 May 2012") > wx.wxDateTime():ParseDate("25 may 2012", wx.wxString_const_iterator()) works and returns the same value as IsVali

[wxlua-users] ParseDate

2012-05-14 Thread Andre Arpin
1. wxDateTime::ParseDate(wxDateTime(self), string, wxString_const_iterator) stack traceback: [C]: in function 'ParseDate' E:\lua\tdate.lua:2: in main chunk Lua: Error while running chunk I think this should work Andre PS: Note on console copy button: Copy contents

[wxlua-users] wxlua 2.8.12.0

2012-05-13 Thread Andre Arpin
Hi, This version is much improved over the previous. Particularly like all the work that was done on the console. Thank you Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways

Re: [wxlua-users] problem and solution if using MSBuild with cmake generated sln

2012-05-12 Thread Andre Arpin
John Labenski writes: > > On Thu, May 10, 2012 at 8:51 AM, Andre Arpin wrote: > > Hi, > > > > I am using a batch to make wxLua > > > > MSBuild wxLua.sln /t:build /p:Configuration=Debug > > > > Problem: > > The sln contains some errors tha

Re: [wxlua-users] utf8 quick and dirty

2012-05-10 Thread Andre Arpin
Andre Arpin writes: > > example Format\FORMAT~4.LUA is returned by fullName.ShortPath > this is not a utf8 string ~ is 126 > > Format\FORMAT~4.LUA I ran some more test the problem is gone I must go so I will look at it nex

Re: [wxlua-users] utf8 quick and dirty

2012-05-10 Thread Andre Arpin
o string.match(fullName.ShortPath,'(.*)%.lua') returns nil Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers c

[wxlua-users] problem and solution if using MSBuild with cmake generated sln

2012-05-10 Thread Andre Arpin
fix the problem. These is some mismatch between the project being selected in the global section. Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and t

[wxlua-users] utf8 quick and dirty

2012-05-09 Thread Andre Arpin
. What happen to string.match(string,"%a") in either cases for example? Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has cha

Re: [wxlua-users] CMake

2012-05-05 Thread Andre Arpin
> > If you change the defines > > 30#define WXLUA_USE_WXSTR_CONVUTF8 1 > 31#define WXLUA_USE_WXSTR_CONVCURRENT 0 > > to > > 30#define WXLUA_USE_WXSTR_CONVUTF8 0 > 31#define WXLUA_USE_WXSTR_CONVCURRENT 1 > it does work I think there a problem with the current version: é is ch

Re: [wxlua-users] CMake

2012-05-04 Thread Andre Arpin
l have to wait until this is corrected to upgrade since my editor is written using wxlua. Thanks. Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat

Re: [wxlua-users] CMake

2012-05-04 Thread Andre Arpin
- wxWidgets_UNIVNAME = * - wxWidgets_UNICODEFLAG = u * - wxWidgets_DEBUGFLAG= d --- DEV STUDIO open: E:\wxWidgets\wxLua\cmake\apps\wxLuaApps.sln (compile default) same errors Andre -- Live Security Virtual Conference Exclu

[wxlua-users] CMake

2012-05-03 Thread Andre Arpin
K2001: unresolved external symbol "protected: virtual void __thiscall Editor::NotifyDeleted(class Document *,void *)" (?NotifyDeleted@Editor@@MAEXPAVDocument@@PAX@Z) Andre -- Live Security Virtual Conference Exclusive

Re: [wxlua-users] Using wxWidgets 2.9.3

2012-05-02 Thread Andre Arpin
nk I link all the same libs but will check this carefully. When terminating and sometime while running, the heap breaks. I think it is an allocation in one space and release in another. I have solved this problem once before but I could not trace it this time. Keeping this as an easy problem to s

Re: [wxlua-users] change to editor.lua

2012-05-02 Thread Andre Arpin
John Labenski writes: > Is there any reason? It's true that wxSAVE is deprecated since 2.8 and > this should be done, but I'm just wondering why this stands out to > you. wx.wxSAVE is nul when I run. Andre

[wxlua-users] change to editor.lua

2012-05-01 Thread Andre Arpin
Please change at line 980 wx.wxSAVE to wx.wxFD_SAVE Thank you Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and h

[wxlua-users] Using wxWidgets 2.9.3

2012-04-26 Thread Andre Arpin
some changes have been done in wxWidgets event handler Thanks for the excellent work. Andre -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscap

[wxlua-users] problem with the console while running programs within the editor

2012-01-01 Thread Andre Arpin
print statements do not display to the console commenting the call to IsMainLoopRunning in wxlstate.cpp at line in wxlua_printFunction resolves the problem but may have some other implications. if (!msg.IsEmpty() && wxlState.Ok())// && wxApp::IsMainLoopRu

[wxlua-users] Compiling wx.dll

2011-12-27 Thread Andre Arpin
uration go to Configuration Properties disable build for all but mod_lua mod_luamodule_mono Build... Ignore the 1568 warnings in the compile and link step voila: wx.dll is in wxLua\lib\vc_dll\ Andre -- Write once. Po

Re: [wxlua-users] Compiling out of the box on window

2011-12-26 Thread Andre Arpin
Andre Arpin writes: > wxLuaBinding_wxrichtext_init@@YAPAVwxLuaBinding@@XZ) referenced in function > "public: virtual bool __thiscall wxLuaFreezeApp::OnInit(void)" (? missing wxlua_msw28d_wxbindrichtext.lib library in the l

[wxlua-users] Compiling out of the box on window

2011-12-26 Thread Andre Arpin
rror LNK1120: 1 unresolved externals e:\wtest\wxWidgets-2.8.12\wxLua\bin\vc_lib\wxluafreeze.exe 1 Any idea where I when wrong ? Andre -- Write once. Port to many. Get the SDK and tools to simplify cross-platform

[wxlua-users] tree.wx.lua

2011-10-15 Thread Andre Arpin
Got a problem with wxltreeitemdata:SetData("hello, I'm string data") since wxLuaTreeItemData is derived from wxClientData and not wxStringClientData SetData is not available. Something seems to be out of sync... Prob

[wxlua-users] luathread

2011-01-31 Thread Andre Arpin
I have added a project to sourceforge named luathread. Based on Enhanced Coroutine in Lua by Patrick Rapin. in Lua Programming gems. This allow thread both blocking and none-blocking to be run. also supports running lua functions in a separate thread. This code also works with wxlua Andre

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

2011-01-02 Thread Andre Arpin
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 strictly loc

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

2011-01-02 Thread Andre Arpin
n) if not mt.__declared[n] and debug.getinfo(2, "S").what ~= "C" then error("variable '"..n.."' is not declared", 2) end return rawget(t, n) end Good luck Andre -- L

[wxlua-users] A simple general spin control

2011-01-01 Thread Andre Arpin
) sc:Connect(wx.wxEVT_SCROLL_LINEDOWN, spinEvt) sc:Connect(wx.wxEVT_SCROLL_LINEUP, spinEvt) tc:Connect(wx.wxEVT_KEY_UP, textEvt) return spinner end local sp = GetSpin(baseID, wx.wxPoint(0,0) ) sp = GetSpin(baseID + 1, wx.wxPoint(0,75)) frame:Show(true) Andre -

Re: [wxlua-users] Dot versus colon?

2011-01-01 Thread Andre Arpin
Andre Arpin writes: > Odd but it might be explained. Look at the definition of wxSpinCtrl in > Reference Manual. There are two versions for set. > > void SetValue(const wxString& text) > void SetValue(int iValue) > > If you look in wxWidgets there is only one def

Re: [wxlua-users] Dot versus colon?

2011-01-01 Thread Andre Arpin
are two versions for set. void SetValue(const wxString& text) void SetValue(int iValue) If you look in wxWidgets there is only one definition namely the string version. I don't know why the numeric version was added in wxlua probably so yo

Re: [wxlua-users] Dot versus colon?

2010-12-31 Thread Andre Arpin
frame:Show(true) tc.Value = 'a' tc.Value = tc.Value .. ' 123' Andre -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize th

Re: [wxlua-users] Dot versus colon?

2010-12-31 Thread Andre Arpin
a:f(...) === f(a, ...) wxlua make extensive use of this extension as well. I do not expect this syntax to ever change in the future. Andre note given: text = wx.wxTextCtrl(... then v = text.Value v = text[Value] v = text:GetValue() v = text.GetValue(text) are all equivalent

Re: [wxlua-users] Dot versus colon?

2010-12-30 Thread Andre Arpin
s Foo = Function(arg) etc Most language and system supports these type of things. I find it more readable and I like it, other may not. Its a free world (sometime). Andre PS: I have rewritten the Lua editor to suggest all these variances by using the dynamic binding support. So to me it is easy

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

2010-12-30 Thread Andre Arpin
= wx.wxSpinButton(frame, ID, wx.wxPoint(0,top)) table.insert(textControls, {textControl, spinControl}) spinControl:SetRange(10,20) spinControl:Connect(wx.wxEVT_SCROLL_LINEUP, spin) spinControl:Connect(wx.wxEVT_SCROLL_LINEDOWN, spin) textControl:Connect(wx.wxEVT_KEY_DOWN, text)

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

2010-12-30 Thread Andre Arpin
t to always be numeric etc leaving this to the reader, always mean to me the writer has no clue how to doit :) Good luck Andre -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidat

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

2010-12-30 Thread Andre Arpin
if you hold the mouse down on a button it does not report a hi or lot hit properly. so maybe highHit = theValue == localSpinControl.Max or localSpinControl.Max == localSpinControl.Value would be a better test Andre Happy new year

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

2010-12-30 Thread Andre Arpin
Lostgallifreyan writes: > > > 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. > >

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

2010-12-29 Thread Andre Arpin
CUS, function(event) print('k') end) wx.wxGetApp():MainLoop() You can enter any text in the control and focus does not change it. Andre -- Learn how Oracle Real Application Clusters (

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

2010-12-29 Thread Andre Arpin
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. frame = wx.wxFrame(wx.NULL, wx.wxID_ANY,'') frame:Show(true) sp=wx.wxSpinCtrl(frame) s

Re: [wxlua-users] change to wxldtarg.cpp

2010-12-09 Thread Andre Arpin
Andre Arpin writes: > > in EvaluateExpr // an expression int nOldTop = lua_gettop(L); wxString rExpr = wxT("return ") + strExpr; wxLuaCharBuffer charbuf(rExpr); int nResult = luaL_loadbuffer(L, charbuf.GetData(), charbuf.Length(), "debug"); adding the "return&

Re: [wxlua-users] change to wxldtarg.cpp

2010-12-09 Thread Andre Arpin
Andre Arpin writes: > > in EvaluateExpr > checking for local variables while (!fFound && lua_getstack(L, iLevel++, &ar) != 0) { int iIndex = 0; wxString name = lua2wx(lua_getlocal(L, &ar, ++iIndex)); while(!fFound && !name.IsEmpty())

[wxlua-users] change to wxldtarg.cpp

2010-12-08 Thread Andre Arpin
in EvaluateExpr checking for local variables int iIndex = 0; wxString name = lua2wx(lua_getlocal(L, &ar, ++iIndex)); while(!name.IsEmpty()) { name = lua2wx(lua_getlocal(L, &ar, ++iIndex)); } this allows the local variables to be evaluate

Re: [wxlua-users] Modification to luamodule.cpp

2010-12-04 Thread Andre Arpin
micLibrary dllComCtl32(_T("comctl32.dll"), wxDL_VERBATIM); works actually static wxDynamicLibrary dllComCtl32(_T("comctl32")); works as well it is the static which does the trick. Andre PS: Is this the way you wanted this tested --

Re: [wxlua-users] settings.wx.lua assert in 64 bits mode

2010-12-04 Thread Andre Arpin
Andre Arpin writes: > > E:\Programs\wxWidgets\wxLua\samples\settings.wx.lua > > AddListItem({"wx.wxGetFreeMemory():ToLong()", wx.wxGetFreeMemory():ToLong()}) > > wx.wxGetFreeMemory() = 4294967295 > changing wxGetFreeMemory to return a wxULongLong s

Re: [wxlua-users] Modification to luamodule.cpp

2010-12-01 Thread Andre Arpin
Andre Arpin writes: > > Sorry to tell you that > ::LoadLibrary(_T("comctl32.dll")); > has to be used. I think that I managed to lock the comctl32.dll > permanently when I tested wxDynamicLibrary. > I should have mentionned this is on window 64 bits. I th

[wxlua-users] settings.wx.lua assert in 64 bits mode

2010-12-01 Thread Andre Arpin
t solution Andre -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get star

Re: [wxlua-users] Modification to luamodule.cpp

2010-11-27 Thread Andre Arpin
John Labenski writes: > > On Sat, Nov 20, 2010 at 4:55 PM, Andre Arpin wrote: > > The following modification allow wx.dll to work on window 7 / 64 bits. > > Without it you get a warning specifiying that comctl32.dll is not loaded. > > Why this suddenly happen is unk

Re: [wxlua-users] [ wxlua-Bugs-3115780 ] minor fix to editor.lua

2010-11-26 Thread Andre Arpin
a/wxLua/samples/editor.wx.lua? r1=1.60&r2=1.61 > Actually the test should be for '#' not '#!' to be consistent with lua. Andre -- Increase Visibility of Your 3D Game App & Earn a Chance T

Re: [wxlua-users] [ wxlua-Bugs-3115780 ] minor fix to editor.lua

2010-11-25 Thread Andre Arpin
John Labenski writes: Look good to me -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Techn

Re: [wxlua-users] [ wxlua-Bugs-3115780 ] minor fix to editor.lua

2010-11-24 Thread Andre Arpin
ditorText, #firstLine) > end > the folloding code is better local editorText = iff(string.char(editor:GetCharAt(0)) == '#', '\n'..editor:GetTextRange(editor:PositionFromLine(1), editor.Length), editor.Text) Andre -

Re: [wxlua-users] Modification to luamodule.cpp

2010-11-23 Thread Andre Arpin
John Labenski writes: > > What compiler and version are you using? > Visual Studi0 2008 -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes o

[wxlua-users] change to lua module.cpp

2010-11-21 Thread Andre Arpin
return true; } Andre -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time

[wxlua-users] Modification to luamodule.cpp

2010-11-20 Thread Andre Arpin
() { #ifdef __WXMSW__ wxDynamicLibrary comctl32(_T("comctl32.dll"), wxDL_NOW); #endif return true; } Andre -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-29 Thread Andre Arpin
g in C you can always explicitly cast the various pointers and look at the information. I sure cannot think of a better way to so it. You could store a delta instead of a pointer and save a few bytes but it would make the whole thing very obscure. This looks great. Andre --

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-27 Thread Andre Arpin
Andre Arpin writes: > > Andre > This previous message is redundant an was sent because the previous one did no appear within 24 hrs. Sorry for the noise. Andre -- Come build with us! The BlackBerry®

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-27 Thread Andre Arpin
b = new AB() ; f((void *)ab); return 0; } If you knew which class is being past to procedure f typing the argument would save you the first cast and provide some checking redundancy. Andre -- Come build w

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-26 Thread Andre Arpin
347e2c } int _tmain(int argc, _TCHAR* argv[]) { AB *ab = new AB() ; f((void *)ab); return 0; } I would expect dynamic_cast to be more portable then any explicit pointer manipulation. even better if you know that f expect AB * then code define f as: void f(AB *p) Andre

Re: [wxlua-users] console

2009-09-25 Thread Andre Arpin
to really get the multiple base classes > working first. > > Thanks, > John As you well expected I am not in a rush. I hope that you can get the binding redone this is a huge amount of work. We all a

[wxlua-users] console

2009-09-24 Thread Andre Arpin
YPE, wxNORMAL, wxNORMAL)); after the m_textCtrl is created would do the trick. Andre -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart y

Re: [wxlua-users] Year view in wxCalendarCtrl

2009-08-13 Thread Andre
inLoop is already running or will be started by the C++ program. wx.wxGetApp():MainLoop() end I am not too sure what you mean by Year View Andre -- Let Crystal Reports handle the reporting - Fre

Re: [wxlua-users] [ wxlua-Feature Requests-2833584 ] Game

2009-08-08 Thread Andre
John Labenski writes: > > On Fri, Aug 7, 2009 at 5:17 AM, Andre wrote: > > SourceForge.net writes: > > > >> Basis to build a simple game using either keyboard or joystick. > > > > Maybe this could be added to the examples. > > That is very cool.

Re: [wxlua-users] [ wxlua-Feature Requests-2833584 ] Game

2009-08-07 Thread Andre
SourceForge.net writes: > Basis to build a simple game using either keyboard or joystick. Maybe this could be added to the examples. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial

Re: [wxlua-users] controls.wx.lua

2009-07-26 Thread Andre
Andre writes: > I made the following changes to controls.wx.lua > this is probably much more then needed a change is needed because wxLuaBindClass as multiple base classes. I guess you have to support multiple inheritance somemwhere. The extensive changes were needed while t

[wxlua-users] controls.wx.lua

2009-07-25 Thread Andre
for debugging, this means we need to add it to the wxEvent_GetFuncs table if evtClassName ~= "wxObject" then s='UNHANDLED EVENT: '..s if not UnhandledEvents[evtClassName] then print("Unhandled wxEventXXX type in OnEvent:", evtClassName)

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-03-27 Thread Andre Arpin
John Labenski writes: > > Hi Andre, > > I have finally committed a robust fix for this. I haven't tested it w/ > VC6, but it should work. > > Regards, > John > the current version is codes as unsigned int mask = (int)wxlua_getnumbertype(L, 3);

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-25 Thread Andre Arpin
> > int mask = (int)wxlua_getnumbertype(L, 3); > sorry int mask = (int)wxlua_getnumbertype(L, 3); does not work int mask = (unsigned)wxlua_getnumbertype(L, 3); does Andre -- Open Source

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-24 Thread Andre Arpin
ree that it's broken. Yes you are right this is really strange... > >int i = (int)wxlua_getintegertype(); > or maybe int i = (unsigned int)wxlua_getintegertype(); unsigned int is what we wish for int is what we have to use. Wh

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-22 Thread Andre Arpin
Andre Arpin writes: > > John Labenski writes: > > > > > On Fri, Feb 20, 2009 at 9:26 AM, Andre Arpin wrote: > > > John Labenski writes: > > I have tried the following > Tried it again with gcc and I get 800 as an output both gcc and vc will

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-22 Thread Andre Arpin
Andre Arpin writes: > > John Labenski writes: > > > > > On Fri, Feb 20, 2009 at 9:26 AM, Andre Arpin wrote: > > > John Labenski writes: > Using the same code #define v 0xfe00 double d = v; int i = d; printf("%x&quo

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-22 Thread Andre Arpin
John Labenski writes: > > On Fri, Feb 20, 2009 at 9:26 AM, Andre Arpin wrote: > > John Labenski writes: I have tried the following #define v 0xfe00 double d = v; int i = d; printf("%x", i); return 0; on vs 2008, 2005, on both my

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-21 Thread Andre Arpin
f these before resorting to bit manipulation. I wonder why this very small change in casting. Andre -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-20 Thread Andre Arpin
John Labenski writes: > > On Thu, Feb 19, 2009 at 10:15 AM, Andre Arpin wrote: > > John Labenski writes: > > > > The C++ function has this signature: > wxStyledTextCtrl::SetMarginMask(int margin, int mask) > > Even if wxLua handed it with an unsigned int it

Re: [wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-19 Thread Andre Arpin
John Labenski writes: > > On Wed, Feb 18, 2009 at 7:58 PM, Andre Arpin wrote: > > The value for wxstc.wxSTC_MASK_FOLDERS has to be -33554432 or maybe - 0x200 > > > > or SetMarginMask should expect an unsigned int (I did not check that). > > > > I'

[wxlua-users] wxstc.wxSTC_MASK_FOLDERS

2009-02-18 Thread Andre Arpin
nt(string.format('%x',wxstc.wxSTC_MASK_FOLDERS)) print(-0x200 == wxstc.wxSTC_MASK_FOLDERS) output: fe00 fe00 fe00 false the values display identical string but are not equal. Andre -- Open So

Re: [wxlua-users] wxAUI sample application, closing and reopening panels

2009-01-30 Thread Andre Arpin
variable in that class to indicate pane closed. > if MyFrame then set the pane to close else message I do not have the frame end this would be a quick check if you do not have MyFrame it should be nil. Andre ---

  1   2   3   >