Search found 421 matches

by Utensil
Wed Oct 15, 2008 12:18 am
Forum: Announcements and Discoveries
Topic: wxWidgets needs your help to improve its documentation!
Replies: 63
Views: 13229

It's possible that Francesco checked in a slightly older version. If you can diff your latest version against the one in trunk, and create a new patch, I'll apply any changes. Oh, not really. I'm keeping in touch with Francesco lately, so the version on the trunk is the latest... So it means my fix...
by Utensil
Tue Oct 14, 2008 4:02 pm
Forum: Announcements and Discoveries
Topic: wxShapeFramework 1.6.2 has been released
Replies: 8
Views: 2356

Oops! Sorry, I overwirted your post.....I thought I was quoting but I was actually editing your post.... -Utensil Her is the recovery: While it compiles with 2.8.8, why doesn't it compile with wxWidgets trunk? I realy don't know why because I don't use trunk version. Maybe I should try it someday......
by Utensil
Tue Oct 14, 2008 3:20 pm
Forum: Announcements and Discoveries
Topic: wxWidgets needs your help to improve its documentation!
Replies: 63
Views: 13229

To Bryan: :D Thanks for adding the wxMac port screenshots into trunk. I wonder if it's generated under Mac with the latest version? Since all the bug I intended to fix in the latest version remains-------I haven't tested it under Mac, because the VM Mac doesn't work again :( so I can't be sure. I'll...
by Utensil
Sun Oct 12, 2008 10:02 am
Forum: Announcements and Discoveries
Topic: wxShapeFramework 1.6.2 has been released
Replies: 8
Views: 2356

Hi, It's really a nice library, with cool features~~~~It's been a long time I wanted to give it a try... Today I did it, the samples work great. But I have three questions: 1) While it compiles with 2.8.8, why doesn't it compile with wxWidgets trunk? I'm under Fedora 8, using the autoconf approach, ...
by Utensil
Sun Oct 12, 2008 5:55 am
Forum: wxWidgets Development (Chinese)
Topic: 读写INI文件怎么指定INI文件的位置在自己程序
Replies: 5
Views: 2966

据书上说: wxRegConfig将会从应用程序名和供应商名称构造一个注册表项,比如前面的例子中将会导致注册表项 HKEY_CURRENT_USER/Software/Acme/MyApp被创建.而如果是Unix系统上的wxFileConfig类,配置文件默认被保存在文件~/.MyApp中. 而在Mac OSX上,则保存在/Library/Preferences/MyApp/Preferences中.这些缺省位置可以通过给wxConfig传递第三个参数来改变。 估计可以用wxFileConfig::GetLocalFile来获得文件所在。如果想保存到自己的位置,似乎wxFileConfig::...
by Utensil
Sun Oct 12, 2008 5:23 am
Forum: wxWidgets Development (Chinese)
Topic: 请教动态事件与静态事件的效率?
Replies: 3
Views: 2396

楼上讲得精辟~学习了~

个人强烈偏好动态事件,也多次用它取消或改变事件的关联,对它爱不释手。

-Utensil
by Utensil
Thu Oct 09, 2008 2:07 pm
Forum: wxWidgets Development (Chinese)
Topic: 如何把一个小图片拉伸成一个大背景?
Replies: 3
Views: 2050

kingkamg wrote::D 斑竹挺负责任的说,这样的问题都回答啊
呵呵~只要我会答的,我都会尽量提供答案。RTFM(阅读文档)几乎是一切问题的答案,但是初学者并不容易在全英的文档里找到路。

可惜最近实在太少时间来忙wxWidgets文档中文化的事情。

-Utensil
by Utensil
Thu Oct 09, 2008 2:02 pm
Forum: wxWidgets Development (Chinese)
Topic: 关于环境变量的几个问题
Replies: 1
Views: 2334

wxWidgets提供了一整套函数来作关于环境变量的事情,参见:

http://docs.wxwidgets.org/stable/wx_env ... nfunctions

-Utensil
by Utensil
Mon Oct 06, 2008 2:33 pm
Forum: wxWidgets Development (Chinese)
Topic: sqlite3的几个小问题!
Replies: 2
Views: 1761

1 3的答案分别是

ATTACH [DATABASE] database-filename AS database-name

DETACH [DATABASE] database-name

遇到不会请多阅读文档: http://sqlite.org/lang.html

我也只是看到你的问题后才去看文档的,并不难找。

问题2请看:

http://sqlite.org/datatype3.html
by Utensil
Mon Oct 06, 2008 2:28 pm
Forum: wxWidgets Development (Chinese)
Topic: 如何把一个小图片拉伸成一个大背景?
Replies: 3
Views: 2050

可使用wxImage::Rescale。

参见samples/image。

-Utensil
by Utensil
Mon Oct 06, 2008 2:23 pm
Forum: wxWidgets Development (Chinese)
Topic: 为什么不选择wxSmith?我放弃wxFormBuilder了
Replies: 13
Views: 98802

wxAddition在wxFB里面倒是玩过,但是没在实际中用过,似乎所涉及的部件(因为不在wxWidgets自己里面,是外部扩展)编译有点不容易。

-Utensil
by Utensil
Sat Oct 04, 2008 11:34 pm
Forum: wxWidgets Development (Chinese)
Topic: 一个弱弱的问题--wxString
Replies: 7
Views: 3103

不是(wxString)str,是wxString(str)。两个是完全不同的。你用的那个是类型转换,是不存在的。我说的那个是构造函数。

请多翻阅文档:http://docs.wxwidgets.org/stable/wx_wxs ... inwxstring

你的是Unicode build吗?那么可能得这样做:

const char* ascii_str = "Some text";
wxString str(ascii_str, wxConvUTF8);
by Utensil
Sat Oct 04, 2008 12:09 pm
Forum: wxWidgets Development (Chinese)
Topic: 开源数据库
Replies: 12
Views: 4996

可以用ORACLE 和SQLserver的数据库吗。 可以。应该是通过ODBC的接口来访问。可以试试wxODBC。但是用SQL Server就不能跨平台咯。 可看看 http://wxcode.sourceforge.net/complist.php?compperpage=1000&viewmode=full&browseby=category§ion=database&page=1 如果不局限于wx自己的部件,可以看看下面这些类库,都可以做引擎: http://www.sqlapi.com/ http://libodbcxx.sourceforge.net/ http://www...
by Utensil
Sat Oct 04, 2008 12:01 pm
Forum: wxWidgets Development (Chinese)
Topic: 一个弱弱的问题--wxString
Replies: 7
Views: 3103

s = wxString(str); 应该可以了。

也可以这样:

wxString s = _T("123");
by Utensil
Sat Oct 04, 2008 11:57 am
Forum: wxWidgets Development (Chinese)
Topic: 为什么不选择wxSmith?我放弃wxFormBuilder了
Replies: 13
Views: 98802

呵呵~很遗憾哪,那个系列目前拖延的原因主要有三: 1)就是比较忙,呵呵,忙着探索新的东西,也在忙着生活中的事情,大四了嘛。 2)我现在主操作系统变成Fedora 8下,已经适应了这里的生活,如果回到XP下还要搭建一大堆东西。而OpenOffice越用越不顺手,跟Office 2007没法比,但现在按照网上介绍的办法,又还没成功装到 Office 2007,所以暂时没有继续写(原先的样式和多级列表舍弃太可惜了)。由于Linux下没有和OneNote 2007相当的东西,我现在很郁闷,正在自己写一个类似的东西来用——想用基于Ajax的办法来做,所以近期一直在PHP、Ruby on Rails、jQ...