On Wed, Feb 18, 2009 at 7:58 PM, Andre Arpin <ar...@kingston.net> wrote: > The value for wxstc.wxSTC_MASK_FOLDERS has to be -33554432 or maybe -0x2000000 > > or SetMarginMask should expect an unsigned int (I did not check that). >
I'm not sure what you're trying to do, but this is the C++ code that defines it. #define wxSTC_MASK_FOLDERS 0xFE000000 which is decimal 4261412864 print(wxstc.wxSTC_MASK_FOLDERS == 0xFE000000) is 'true' print(wxstc.wxSTC_MASK_FOLDERS == 4261412864) is 'true' I don't know where you got the -33554432 number from, but I suspect that it's equivalence to the positive numbers above is only because of some limited number of bytes from something you're using to calculate it? Regards, John > > the following > print(string.format('%x',-33554432)) > print(string.format('%x',-0x2000000)) > print(string.format('%x',wxstc.wxSTC_MASK_FOLDERS)) > print(-0x2000000 == wxstc.wxSTC_MASK_FOLDERS) > > output: > > fe000000 > fe000000 > fe000000 > false > > the values display identical string but are not equal. > > Andre ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users