You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(60) |
Jul
(35) |
Aug
(32) |
Sep
(5) |
Oct
(5) |
Nov
(58) |
Dec
(34) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(114) |
Feb
(184) |
Mar
(153) |
Apr
(90) |
May
(153) |
Jun
(59) |
Jul
(24) |
Aug
(43) |
Sep
(17) |
Oct
(34) |
Nov
(11) |
Dec
(204) |
| 2007 |
Jan
(84) |
Feb
(119) |
Mar
(38) |
Apr
(28) |
May
(52) |
Jun
(105) |
Jul
(64) |
Aug
(67) |
Sep
(14) |
Oct
(3) |
Nov
(28) |
Dec
(55) |
| 2008 |
Jan
(228) |
Feb
(55) |
Mar
(30) |
Apr
(30) |
May
(15) |
Jun
(20) |
Jul
(12) |
Aug
(3) |
Sep
(13) |
Oct
(54) |
Nov
(35) |
Dec
(35) |
| 2009 |
Jan
(19) |
Feb
(20) |
Mar
(34) |
Apr
(4) |
May
(60) |
Jun
(25) |
Jul
(16) |
Aug
(51) |
Sep
(19) |
Oct
(62) |
Nov
(21) |
Dec
(12) |
| 2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(23) |
Jun
(13) |
Jul
(1) |
Aug
(40) |
Sep
(18) |
Oct
(21) |
Nov
(26) |
Dec
(34) |
| 2011 |
Jan
(17) |
Feb
(23) |
Mar
(1) |
Apr
(10) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(43) |
| 2012 |
Jan
(5) |
Feb
(19) |
Mar
(6) |
Apr
(24) |
May
(39) |
Jun
(83) |
Jul
(29) |
Aug
(36) |
Sep
(64) |
Oct
(55) |
Nov
(12) |
Dec
(7) |
| 2013 |
Jan
(17) |
Feb
(10) |
Mar
(37) |
Apr
(27) |
May
(13) |
Jun
(9) |
Jul
(7) |
Aug
(61) |
Sep
(23) |
Oct
(23) |
Nov
(30) |
Dec
(16) |
| 2014 |
Jan
(23) |
Feb
(13) |
Mar
(9) |
Apr
(17) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(9) |
Oct
(24) |
Nov
(2) |
Dec
(14) |
| 2015 |
Jan
(6) |
Feb
(4) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(21) |
Nov
(6) |
Dec
(2) |
| 2016 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(11) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(4) |
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: John L. <jla...@gm...> - 2007-01-22 20:05:00
|
On 1/22/07, Ryan Pusztai <rpu...@gm...> wrote:
> Does anybody know how to embed a binary file into an executable and then
> extract it back out at runtime. I want to create a utility that can make
> application self contained and if they require dlls or external files they
> can be packed into the .exe file. Then at run-time it extracts them and then
> the main application can run and use the files.
I am also a big fan of single executable programs, but unfortunately
what you ask for is difficult if not impossible.
1) You can embed raw data into wxLua as a table of integers for each
byte. We would probably need to add functions catered to how to use
the data for a specific purposes.
2) Embedding dlls is not so easy I think. I have toyed with the idea
of using the wxWidgets wxZipFileSystem to zip up data and then use it.
I do not know if you can do this with dlls though. If this were
possible wxLuaFreeze could take advantage of that, but unfortunately I
do not have time these days to look into it.
You may want to do a web search for how to embed dlls in C++ and how
use them to see if it's even possible or reasonably easy to do. If so,
we can go from there to see just what it would take to add the same
functionality in wxLua.
Regards,
John Labenski
|
|
From: John L. <jla...@gm...> - 2007-01-22 19:56:20
|
On 1/22/07, Ryan Pusztai <rpu...@gm...> wrote:
> When I wxluafreeze a script that has a Copyright symbol (c), the application
> quits right away with no error or anything. I am using it in an about box
> and I am just wondering if it has to do with Unicode at all. I am using the
> prebuilt wxluafreeze from the 'bin' directory and I have built it myself as
> well. I get the same result. Also, it works great when ran with "wxLua" and
> not frozen. For now I am just changing the (c) to (c).
>
> Any thoughts would be greatly appreciated.
I have tried this in the minimal.cpp sample using MS VS2005 and (c)
does work in the about dialog there. Why it doesn't work in wxLua is
probably because of the wx2lua and lua2wx string conversion functions
in modules/wxlua/include/wxlstate.h.
This has been discussed before, but with no resolution. The problem is
that people make suggestions for changes to make it work for them, but
would break things for other people. I do not understand much about
unicode or even UTF8 strings other than a cursory knowledge so I
cannot help much. I presented a summary of the different suggestions
on the mailing list, but nobody seemed to know definitely what was
right.
see "wx2lua & Unicode was Re: [wxlua-users] Problem in using Turkish
in wxLua scripts"
I think we have two competing needs, unicode for international
languages and UTF8 for ??? Can the two be mixed? I dunno.
Regards,
John Labenski
|
|
From: Ryan P. <rpu...@gm...> - 2007-01-22 19:44:37
|
Does anybody know how to embed a binary file into an executable and then extract it back out at runtime. I want to create a utility that can make application self contained and if they require dlls or external files they can be packed into the .exe file. Then at run-time it extracts them and then the main application can run and use the files. -- Regards, Ryan RJP Computing |
|
From: Ryan P. <rpu...@gm...> - 2007-01-22 19:39:32
|
On 1/22/07, John Labenski <jla...@gm...> wrote: > > I've noticed that it doesn't change too, under MSW, but couldn't > understand why, since it works in GTK. > > Ahhh, I just discovered that you need to use a 32x32 bit XPM file or > load a 32x32 ico from disk in MSW. I just found this as well. The icon I was trying to load from file had multiple icons and sizes in it and it didn't like that either. If you want to change the icon that is displayed in windows explorer > you have to change the icon in the wxluafreeze.rc resource file and > recompile. I found these programs that I think should be able to > change the icon of a precompiled executable, but I haven't tested > either. > > http://www.angusj.com/resourcehacker/ > http://www.wilsonc.demon.co.uk/d10resourceeditor.htm Great. I will look into that. -- Regards, Ryan RJP Computing |
|
From: Ryan P. <rpu...@gm...> - 2007-01-22 19:37:32
|
On 1/22/07, Hakki Dogusan <dog...@tr...> wrote: > > Hi, > > Could it be a size/image/etc. problem? > My "dsbw" icon is a xpm file generated > from a real icon. > > Related code follows: > ... > Well thanks I found it was the size of my xmp. I made it 32x32 and BAM it worked. I am really enjoying my wxLua experiance. It is fun to write a little script and see the GUI right away. Fun!!!! Thanks for you help. -- Regards, Ryan RJP Computing |
|
From: John L. <jla...@gm...> - 2007-01-22 19:19:41
|
On 1/22/07, Ryan Pusztai <rpu...@gm...> wrote:
> On 1/22/07, Hakki Dogusan <dog...@tr...> wrote:
> > Hi,
> >
> > (I don't know whether it is different for wxluafreeze but,)
> >
> > I'm using like:
> >
> > local bitmap = GetImage("dsbw")
> > local icon = wx.wxDefaultIcon()
> > icon:CopyFromBitmap(bitmap)
> > app.frame:SetIcon(icon)
> > bitmap:Delete()
> > icon:Delete()
> >
> > Taken from wxLua's samples
>
> This was close, but I still can't get the frame icon to change. I can use
> the bitmap created by the code above in a wxBitmapButton, but nothing
> happens to the frame icon. I also tried to wxLua smaples that set the frames
> icon and they didn't work either. The samples are wxluasudoku.wx.lua and
> calculator.wx.lua.
I've noticed that it doesn't change too, under MSW, but couldn't
understand why, since it works in GTK.
Ahhh, I just discovered that you need to use a 32x32 bit XPM file or
load a 32x32 ico from disk in MSW.
If you want to change the icon that is displayed in windows explorer
you have to change the icon in the wxluafreeze.rc resource file and
recompile. I found these programs that I think should be able to
change the icon of a precompiled executable, but I haven't tested
either.
http://www.angusj.com/resourcehacker/
http://www.wilsonc.demon.co.uk/d10resourceeditor.htm
Hope this helps,
John Labenski
|
|
From: Hakki D. <dog...@tr...> - 2007-01-22 19:10:37
|
Hi,
Ryan Pusztai wrote:
>
>
> On 1/22/07, *Hakki Dogusan* <dog...@tr... <mailto:dog...@tr...>>
> wrote:
>
> Hi,
>
> (I don't know whether it is different for wxluafreeze but,)
>
> I'm using like:
>
> local bitmap = GetImage("dsbw")
> local icon = wx.wxDefaultIcon()
> icon:CopyFromBitmap(bitmap)
> app.frame:SetIcon(icon)
> bitmap:Delete()
> icon:Delete()
>
> Taken from wxLua's samples
>
>
> This was close, but I still can't get the frame icon to change. I can
> use the bitmap created by the code above in a wxBitmapButton, but
> nothing happens to the frame icon. I also tried to wxLua smaples that
> set the frames icon and they didn't work either. The samples are
> wxluasudoku.wx.lua and calculator.wx.lua.
> --
> Regards,
> Ryan
> RJP Computing
>
>
Could it be a size/image/etc. problem?
My "dsbw" icon is a xpm file generated
from a real icon.
Related code follows:
local dsbw_xpm = {
"32 32 12 1",
" c None",
". c Blue",
"X c DarkSlateGray",
"o c Yellow",
"O c Red",
"+ c Gray60",
"@ c #999900",
"# c Gray100",
"$ c Cyan",
"% c #990099",
"& c Gray80",
"* c Green",
" . ",
" XX X. ",
" XX X ",
" XX o . ",
" XX O + X ",
" XX O@O +#+ . ",
" XX O@o@O + X ",
" XX O@o#o@O . . ",
" X X O@o@O .$. X ",
" X X O@O .$#$. . ",
" X X O O .$. XX ",
" X X OoO . XX. ",
" XX X O XX+X ",
" XXoX X % XX++++. ",
"X#oooX X XX++++&#XX ",
"Xo#oooX X XX++++&#XX. ",
"Xoo#oooX XXX++++&XXXoX*X ",
"Xooo#oooX X++++&XXooooXX*. ",
" Xooo#oooX X++&XXooooXXX***X ",
" Xooo#oooXX&XXooooXX+X*****. ",
" Xooo#oooXXooooXX++++X*****X ",
" Xooo#ooooooXX++++&#XX****X. ",
" Xooo#oooXX++++&#XX****X. ",
" Xooo#XX++++&#XX****XX+. ",
" XooX++++&#XX****XX++++X ",
" XoX++&#XX****XX++++&&X. ",
" XX&#XXXX**XX++++&#X. ",
" XXXX**XXX++++&#X. ",
" X**X++++&#X. ",
" X*X++&#X. ",
" XX&#X. ",
" XX. "}
-----------------------------------------------------------------------------
function GetImage(name)
if name == "dsbw" then
return wx.wxBitmapFromXPMData(dsbw_xpm)
elseif name == "add" then
return wx.wxBitmapFromXPMData(add_xpm)
elseif name == "cancel" then
return wx.wxBitmapFromXPMData(cancel_xpm)
elseif name == "delete" then
return wx.wxBitmapFromXPMData(delete_xpm)
elseif name == "ok" then
return wx.wxBitmapFromXPMData(ok_xpm)
else
error("unknown image name")
end
end
-----------------------------------------------------------------------------
--
Regards,
Hakki Dogusan
|
|
From: Ryan P. <rpu...@gm...> - 2007-01-22 18:28:14
|
On 1/22/07, Hakki Dogusan <dog...@tr...> wrote:
>
> Hi,
>
> (I don't know whether it is different for wxluafreeze but,)
>
> I'm using like:
>
> local bitmap = GetImage("dsbw")
> local icon = wx.wxDefaultIcon()
> icon:CopyFromBitmap(bitmap)
> app.frame:SetIcon(icon)
> bitmap:Delete()
> icon:Delete()
>
> Taken from wxLua's samples
>
This was close, but I still can't get the frame icon to change. I can use
the bitmap created by the code above in a wxBitmapButton, but nothing
happens to the frame icon. I also tried to wxLua smaples that set the frames
icon and they didn't work either. The samples are wxluasudoku.wx.lua and
calculator.wx.lua.
--
Regards,
Ryan
RJP Computing
|
|
From: Hakki D. <dog...@tr...> - 2007-01-22 15:08:32
|
Hi,
Ryan Pusztai yazmış:
> I can't seem to set the icon for the frame in wxLua. I really want to do
> this when it is frozen with wxluafreeze. But I can't seem to get the
> SetIcon() to work at all. A small example would be great. Thanks
> --
> Regards,
> Ryan
> RJP Computing
>
>
(I don't know whether it is different for wxluafreeze but,)
I'm using like:
local bitmap = GetImage("dsbw")
local icon = wx.wxDefaultIcon()
icon:CopyFromBitmap(bitmap)
app.frame:SetIcon(icon)
bitmap:Delete()
icon:Delete()
Taken from wxLua's samples
--
Regards,
Hakki Dogusan
|
|
From: Ryan P. <rpu...@gm...> - 2007-01-22 14:58:31
|
I can't seem to set the icon for the frame in wxLua. I really want to do this when it is frozen with wxluafreeze. But I can't seem to get the SetIcon() to work at all. A small example would be great. Thanks -- Regards, Ryan RJP Computing |
|
From: Ryan P. <rpu...@gm...> - 2007-01-22 13:54:39
|
When I wxluafreeze a script that has a Copyright symbol (c), the application quits right away with no error or anything. I am using it in an about box and I am just wondering if it has to do with Unicode at all. I am using the prebuilt wxluafreeze from the 'bin' directory and I have built it myself as well. I get the same result. Also, it works great when ran with "wxLua" and not frozen. For now I am just changing the (c) to (c). Any thoughts would be greatly appreciated. -- Regards, Ryan RJP Computing |
|
From: Ryan P. <rpu...@gm...> - 2007-01-18 20:17:26
|
On 1/18/07, John Labenski <jla...@gm...> wrote: > > wxString is not used in wxLua. Someone had asked that it be added for > some special purpose so you can create it and get the string back from > it, but lua strings are used exclusively. This means that any > functions that takes or returns a wxString uses a lua string. You can > use the lua string.XXX functions to get most of what wxString offers > and it should work faster since it doesn't have to convert it in the > case where you've build wxWidgets for unicode. > > http://wxlua.sourceforge.net/docs/wxluaref.html#wxString Thanks for the clarification. -- Regards, Ryan RJP Computing |
|
From: John L. <jla...@gm...> - 2007-01-18 18:38:05
|
On 1/18/07, Ryan Pusztai <rpu...@gm...> wrote:
> On 1/18/07, John Labenski <jla...@gm...> wrote:
> > Humm, that is strange. I just tried in VC 2005 with the default
> > include/wx/msw/setup0.h in debug multilib without a problem. The
> > changes you made should probably not matter. I have updated the
> > bindings files to take into account the wxWidgets wxUSE_DATETIME
> > #ifdef for these classes, but that shouldn't matter for you.
>
> I actually have tried release multilib and release monolithic. It actually
> looks like the return type of '__int64' is the problem. Does that need to be
> converted to something Lua specific? I am totally guessing and don't quite
> understand the ins and outs of the internals of wxLua.
Are you building on a 64 bit machine?
The wxFileModificationTime function has been rewritten to return a
wxDateTime instead of time_t since lua only has the double number type
so a wxDateTime is used to encapsulate it.
In wxWidgets 2.8 include/wx/filefn.h we have this
WXDLLIMPEXP_BASE time_t wxFileModificationTime(const wxString& filename);
and in wxLua/modules/wxbind/src/file.cpp
returns = new wxDateTime(wxFileModificationTime(filename));
finally, in include/wx/datetime.h we have
inline wxDateTime(time_t timet);
I don't understand why it doesn't work, wxFileModificationTime returns
time_t and wxDateTime takes time_t so why should it fail? I guess the
real problem is that wxFileModificationTime is missing for you.
==============================
Could you try to edit wxLua/modules/wxbind/src/file.cpp and test this
replacement code or variations of it to force your compiler to
recognize wxFileModificationTime? Maybe even try the wxWidgets minimal
sample and see if wxFileModificationTime works for you there?
returns = new wxDateTime((time_t)wxFileModificationTime(filename));
> I am writing a little wxLuaFreeze utility that will create executables
> through a gui interface. I am calling it "wxLuaFreezer". If you are
> interested in the script when I am done just let me know. I find it useful
> so far but I am not done. I also want it to change the default icon of the
> executable with reshacker.
That would be interesting, please post some updates as you go.
> OK, any other ideas? I would like to use that function at some point. Is it
> because wxLua doesn't support that function?
See above, but there is no reason why wxLua shouldn't be able to have
this work. It's something to do with your compiler or it's settings.
Regards,
John Labenski
|
|
From: John L. <jla...@gm...> - 2007-01-18 18:24:12
|
On 1/18/07, Ryan Pusztai <rpu...@gm...> wrote: > I have tried to use wxString in a wxLua script and I can't get it to work. > Is there a special way to create the variable. Here is an example of what I > tried so far. > > filename = wx.wxString( "Test String" ) > if ( not filename:IsEmpty() ) then > print( "Cancel was pressed" ) > else > print( filename ) > end > wxString is not used in wxLua. Someone had asked that it be added for some special purpose so you can create it and get the string back from it, but lua strings are used exclusively. This means that any functions that takes or returns a wxString uses a lua string. You can use the lua string.XXX functions to get most of what wxString offers and it should work faster since it doesn't have to convert it in the case where you've build wxWidgets for unicode. http://wxlua.sourceforge.net/docs/wxluaref.html#wxString Regards, John Labenski |
|
From: Ryan P. <rpu...@gm...> - 2007-01-18 17:22:52
|
I have tried to use wxString in a wxLua script and I can't get it to work.
Is there a special way to create the variable. Here is an example of what I
tried so far.
filename = wx.wxString( "Test String" )
if ( not filename:IsEmpty() ) then
print( "Cancel was pressed" )
else
print( filename )
end
--
Regards,
Ryan
RJP Computing
|
|
From: Ryan P. <rpu...@gm...> - 2007-01-18 17:11:29
|
On 1/18/07, John Labenski <jla...@gm...> wrote: > > Humm, that is strange. I just tried in VC 2005 with the default > include/wx/msw/setup0.h in debug multilib without a problem. The > changes you made should probably not matter. I have updated the > bindings files to take into account the wxWidgets wxUSE_DATETIME > #ifdef for these classes, but that shouldn't matter for you. I actually have tried release multilib and release monolithic. It actually looks like the return type of '__int64' is the problem. Does that need to be converted to something Lua specific? I am totally guessing and don't quite understand the ins and outs of the internals of wxLua. I am writing a little wxLuaFreeze utility that will create executables through a gui interface. I am calling it "wxLuaFreezer". If you are interested in the script when I am done just let me know. I find it useful so far but I am not done. I also want it to change the default icon of the executable with reshacker. You may want to try to really clean things Yes I actually created a new directory and extracted the source zip file and that is what I get. and rebuild or if you don't > think you'll use that function, just rem out the line in wx_bind.cpp > that calls wxFileModificationTime. OK, any other ideas? I would like to use that function at some point. Is it because wxLua doesn't support that function? -- Regards, Ryan RJP Computing |
|
From: John L. <jla...@gm...> - 2007-01-18 16:37:28
|
On 1/18/07, Ryan Pusztai <rpu...@gm...> wrote:
> Hi I can't seem to build wxLua with Visual C++ 7.1 ToolKit or Visual C++
> 2005 pro. I am really only tring to build wxLuaFreeze.exe using wxWidgets
> statically linked so I don't have any dependencies. I only get one error:
>
> > ------ Rebuild All started: Project: app_wxluafreeze, Configuration:
> Release Multilib Win32 ------
> > 7>Deleting intermediate and output files for project 'app_wxluafreeze',
> configuration 'Release Multilib|Win32'
> > 7>Compiling...
> > 7>wxluafreeze.cpp
> > 7>Compiling resources...
> > 7>Linking...
> > 7>wxlua_msw28_wxbind.lib(wx_bind.obj) : error LNK2019:
> unresolved external symbol "__int64 __cdecl wxFileModificationTime(class
> wxString const &)"
> (?wxFileModificationTime@@YA_JABVwxString@@@Z) referenced
> in function "int __cdecl
> wxLua_function_wxFileModificationTime(struct lua_State *)"
> (?wxLua_function_wxFileModificationTime@@YAHPAUlua_State@@@Z)
> > 7>..\..\..\bin\vc_lib\wxluafreeze.exe : fatal error
> LNK1120: 1 unresolved externals
> >
>
> Please note: I changed 2 settings in all projects in VC 2005.
> 1) Using the multi-threaded run-time library NOT the DLL version
> 2) Set 'Treat wchar_t as built-in Type' to NO. (because my wxWidgets library
> is built using the VC 71. Toolkit and that is the default setting for VC7.1)
Humm, that is strange. I just tried in VC 2005 with the default
include/wx/msw/setup0.h in debug multilib without a problem. The
changes you made should probably not matter. I have updated the
bindings files to take into account the wxWidgets wxUSE_DATETIME
#ifdef for these classes, but that shouldn't matter for you.
You may want to try to really clean things and rebuild or if you don't
think you'll use that function, just rem out the line in wx_bind.cpp
that calls wxFileModificationTime.
Regards,
John Labenski
|
|
From: Ryan P. <rpu...@gm...> - 2007-01-18 16:03:09
|
Hi I can't seem to build wxLua with Visual C++ 7.1 ToolKit or Visual C++ 2005 pro. I am really only tring to build wxLuaFreeze.exe using wxWidgets statically linked so I don't have any dependencies. I only get one error: ------ Rebuild All started: Project: app_wxluafreeze, Configuration: Release > Multilib Win32 ------ > 7>Deleting intermediate and output files for project 'app_wxluafreeze', > configuration 'Release Multilib|Win32' > 7>Compiling... > 7>wxluafreeze.cpp > 7>Compiling resources... > 7>Linking... > 7>wxlua_msw28_wxbind.lib(wx_bind.obj) : error LNK2019: unresolved external > symbol "__int64 __cdecl wxFileModificationTime(class wxString const &)" > (?wxFileModificationTime@@YA_JABVwxString@@@Z) referenced in function "int > __cdecl wxLua_function_wxFileModificationTime(struct lua_State *)" > (?wxLua_function_wxFileModificationTime@@YAHPAUlua_State@@@Z) > 7>..\..\..\bin\vc_lib\wxluafreeze.exe : fatal error LNK1120: 1 unresolved > externals > Please note: I changed 2 settings in all projects in VC 2005. 1) Using the multi-threaded run-time library NOT the DLL version 2) Set 'Treat wchar_t as built-in Type' to NO. (because my wxWidgets library is built using the VC 71. Toolkit and that is the default setting for VC7.1) -- Regards, Ryan RJP Computing |
|
From: Francisco <fra...@gm...> - 2007-01-18 13:53:27
|
John Labenski <jlabenski@...> writes: > wxTE_RICH sets foreground and font, wxTE_RICH2 sets background too > tested in MSW. Thank you, I overlooked this "wxTE_RICH" in WX documentation. Francisco |
|
From: John L. <jla...@gm...> - 2007-01-17 17:17:12
|
On 1/17/07, Francisco <fra...@gm...> wrote:
> Hello,
>
> I'm having problems with wxTextCtl:SetDefaultStyle().
> For the code below, the text appears black in white, left aligned.
> Is this API currently unsupported?
All functions like this should work in wxLua if they work in C++ as
wxLua does nothing, but call the C++ function.
> My version is 2.8.
>
> log = wx.wxTextCtrl (win, wx.wxID_ANY, "", wx.wxDefaultPosition,
> wx.wxDefaultSize,
wx.wxTE_MULTILINE + wx.wxTE_READONLY + wx.wxTE_RICH)
or use wx.wxTE_RICH2
> log:SetDefaultStyle( wx.wxTextAttr(wx.wxRED,wx.wxBLACK, wx.wxNullFont,
> wx.wxTEXT_ALIGNMENT_CENTER) )
> log:AppendText(string.rep("hello text ",10))
wxTE_RICH sets foreground and font, wxTE_RICH2 sets background too
tested in MSW.
Regards,
John Labenski
|
|
From: Francisco <fra...@gm...> - 2007-01-17 16:29:58
|
Hello,
I'm having problems with wxTextCtl:SetDefaultStyle().
For the code below, the text appears black in white, left aligned.
Is this API currently unsupported?
My version is 2.8.
log = wx.wxTextCtrl (win, wx.wxID_ANY, "", wx.wxDefaultPosition,
wx.wxDefaultSize, wx.wxTE_MULTILINE + wx.wxTE_READONLY)
log:SetDefaultStyle( wx.wxTextAttr(wx.wxRED,wx.wxBLACK, wx.wxNullFont,
wx.wxTEXT_ALIGNMENT_CENTER) )
log:AppendText(string.rep("hello text ",10))
Thanks.
|
|
From: Hakki D. <dog...@tr...> - 2007-01-16 01:00:03
|
Hi, klaas.holwerda wrote: > Hakki Dogusan wrote: >> ps. I tried to compile cairo+wx/generic/graphicc with mingw. >> It seems working. Did you try it? >> > No, for speed it is still best to use plain old wxDC stuff i think, but > one day i will use it in wxArt2d, > I think, Cairo has more than I need. Most of my drawings are rectangles. But I need some filled-arc drawing. Path and Stroke abilities seems interesting. I need to learn them. Otherwise wxDC is enough for me too. > Klaas > > Thanks. -- Regards, Hakki Dogusan |
|
From: Hakki D. <dog...@tr...> - 2007-01-16 00:53:07
|
Hi, John Labenski wrote: [snip] > > Looking at the screen captures on your website I think wxLua could > handle all of that. Klaas is probably right that 80000 lines in lua > might be a little much. You'd have to be very structured and probably > implement some type checking using lua's assert. You'd miss out on the > compile-time checks which can catch a lot of bugs though. You might > want to try out one of the OO libraries for lua. On the other hand, if > your 80000 lines are in C, the hashtables and garbage collection lua > would get rid of all of the memory management code and some of the > nice little "tricks" you can use in lua with the tables make for very > tight and readable code. > I'm collecting every OO solution mentioned in lua list. Yes, I believe it could be possible to "shrink" my code with them. > I think that wxLua would be good for managing all of the structures it > looks like you use. You'd probably want to use a dialog designer > program for much of the GUI, XML should work. You might want to create > a C++ module for the graphics if you're worried about the speed. You > can use your own custom wxEvent class to send notifications to wxLua > for major events while the C++ code does all the processor intensive > mouse moving logic. > I have to re-design graphics part anyway, but this time I need to consider lua binding. Maybe we can create a template solution for GUI design? Lua already has more power than XML. > It's incredibly easy to wrap C++ into wxLua using your own headers. > Just take the C++ headers, clean them up and turn them into a *.i > interface file(s), copy and edit one of the *_rules.lua files and run > genwxbind.lua on it. Once you have the C++ files, just add them to > your project and make sure you call the *_init function to install > them at startup. > I already tested this part of wxLua. I generated binding for wxSQLite3 by genwxbind. But didn't use it in the program. It uses exceptions. I need to test it before use. But you're right, it is very easy to generate binding. > The biggest plus for wxLua is that there's no compile time. The main > headache I have with C++ wxWidgets is that if you run into little > problems with sizing or things that need tweaks or misunderstood > flags, having to recompile for each test is a huge time sink. > My thinkings exactly! I'm very excited about development speed. > ----- > > It might be good to feel things out in wxLua, start small with broad > strokes and tackle the bits that seem like they might be cause the > most trouble. Since lua translates into C fairly easily (except for > the tables), if things don't work in wxLua (please tell us why) and > you move to C++ you can reuse much of the code. > > Regards, > John Labenski > Thank you very much for sharing your thoughts and time! -- Regards, Hakki Dogusan |
|
From: klaas.holwerda <kho...@xs...> - 2007-01-15 20:38:53
|
Hakki Dogusan wrote: > > ps. I tried to compile cairo+wx/generic/graphicc with mingw. > It seems working. Did you try it? > No, for speed it is still best to use plain old wxDC stuff i think, but one day i will use it in wxArt2d, Klaas |
|
From: John L. <jla...@gm...> - 2007-01-15 18:36:31
|
On 1/15/07, Hakki Dogusan <dog...@tr...> wrote: > >Klaas Holwerda wrote: > >> > >> Being finished my first "toy" project with wxLua, > >> I'm now considering to use it in a real project. > >> > >> As subject says, I need your thoughts. > >> > >> I'm planning to write my 15 years old program from > >> stratch. I was thinking to write it in C++. > > > > But > >> my little experiment shows that (to me at least), > >> wxLua may be a good chooice :) > > > > I think lua is prefect for scripts and small programs. > > Lua is ideal to extend application with scripting. > > So i say write your app in C++ using wxWidgets and all the OOP things to make your application well organized, and > > document it with doxygen, and next extend it with wxLua. > > Writing application of 80000 lines in wxLua is not so good i think. > > At least in wxArt2D this is how i do it. > > A simple form of such an application is already in wxLua/apps/wxluacan. > > Vote: -1 from you :) ... > > http://www.dynaset.org/index.php?page=kullanim_ornekleri > Looking at the screen captures on your website I think wxLua could handle all of that. Klaas is probably right that 80000 lines in lua might be a little much. You'd have to be very structured and probably implement some type checking using lua's assert. You'd miss out on the compile-time checks which can catch a lot of bugs though. You might want to try out one of the OO libraries for lua. On the other hand, if your 80000 lines are in C, the hashtables and garbage collection lua would get rid of all of the memory management code and some of the nice little "tricks" you can use in lua with the tables make for very tight and readable code. I think that wxLua would be good for managing all of the structures it looks like you use. You'd probably want to use a dialog designer program for much of the GUI, XML should work. You might want to create a C++ module for the graphics if you're worried about the speed. You can use your own custom wxEvent class to send notifications to wxLua for major events while the C++ code does all the processor intensive mouse moving logic. It's incredibly easy to wrap C++ into wxLua using your own headers. Just take the C++ headers, clean them up and turn them into a *.i interface file(s), copy and edit one of the *_rules.lua files and run genwxbind.lua on it. Once you have the C++ files, just add them to your project and make sure you call the *_init function to install them at startup. The biggest plus for wxLua is that there's no compile time. The main headache I have with C++ wxWidgets is that if you run into little problems with sizing or things that need tweaks or misunderstood flags, having to recompile for each test is a huge time sink. ----- It might be good to feel things out in wxLua, start small with broad strokes and tackle the bits that seem like they might be cause the most trouble. Since lua translates into C fairly easily (except for the tables), if things don't work in wxLua (please tell us why) and you move to C++ you can reuse much of the code. Regards, John Labenski |