Search found 64 matches

by chenbin.sh
Thu Aug 06, 2009 6:26 am
Forum: C++ Development
Topic: how to change the look of button in wxFilePickerCtrl
Replies: 3
Views: 859

how to change the look of button in wxFilePickerCtrl

Here is my code, but after clicking the "browse" button, the appearance of button goes wrong? Any help? class CMyFilePickerCtrl:public wxFilePickerCtrl { }; void CMyFilePickerCtrl::OnPaint(wxPaintEvent & evt) { wxControl *ctrl=GetPickerCtrl(); wxPaintDC dc(ctrl); wxString lbl=ctrl->GetLabel(); dc.Se...
by chenbin.sh
Tue Jul 21, 2009 7:05 am
Forum: C++ Development
Topic: how to display a big image in a dialog
Replies: 2
Views: 597

a better solution Add wxWindow to the panel, and draw images on the wxWindow. //create control wxBoxSizer *sizer=new wxBoxSizer(wxVERTICAL); sizer->Add(new wxWindow(this,ID_MY_CONTROL)); //paint it BEGIN_EVENT_TABLE(MyPanel, wxPanel) EVT_PAINT(MyPanel::OnPaint) END_EVENT_TABLE() void MyPanel::OnPain...
by chenbin.sh
Mon Jul 20, 2009 7:26 am
Forum: C++ Development
Topic: how to display a big image in a dialog
Replies: 2
Views: 597

how to display a big image in a dialog

Since wxGenericStaticBitmap is not available in 2.8.10 and I have no intention to upgrade to 2.9
by chenbin.sh
Tue Jul 14, 2009 2:50 am
Forum: C++ Development
Topic: upcase,can I use menubar with wxSkin?
Replies: 3
Views: 796

figured out I can use wxFlateMenu instead.
by chenbin.sh
Mon Jul 13, 2009 1:55 am
Forum: C++ Development
Topic: upcase,can I use menubar with wxSkin?
Replies: 3
Views: 796

upcase,can I use menubar with wxSkin?

hi, upcase

I want to use normal menubar with wxskin, is it possible?

now the menubar is on the top of the whole frame, see attached wxskin.jpg
by chenbin.sh
Fri Jul 10, 2009 5:34 am
Forum: C++ Development
Topic: xrc and wxskin
Replies: 1
Views: 568

xrc and wxskin

I've finished GUI of my application, using some xrc file. Now how can I use wxSkin? Is it possible to use wxSkin with xrc together?

I found wxSkin try to SetSizer the main frame window.

and what about menu? I didn't find wxSkinMenu
by chenbin.sh
Mon Jul 06, 2009 12:49 am
Forum: C++ Development
Topic: a minor bug in 2.8.10
Replies: 1
Views: 478

a minor bug in 2.8.10

see http://trac.wxwidgets.org/ticket/9937


I met the same problem when compiling thread in sample.

see attached patch for fix.

Since it's already fixed in 2.9.0, I think it's meaningless to file the bug on 2.8.10. Am I right?
by chenbin.sh
Tue Jun 23, 2009 2:08 am
Forum: wxWidgets Development (Chinese)
Topic: 两个Sqlite C++ 的通用库
Replies: 7
Views: 3791

建议使用cmake作为build工具

手动配置ide或者gcc太麻烦了.
除了编译器配置外,项目还有其他一些杂活(牵涉到文件拷贝,字符串替换等等)都可以让cmake来处理.

如过使用cmake,那么附件是我的wxsqlite配置.没有包含sqlite代码,你需要自己下载.

BTW:
配置wxsqlite很简单,大概花了我半小时左右.其他一些常用库,使用cmake配置都很简单,我通常在google code 上搜索 "keyword file:CMakeLists.txt",然后拷贝一下现成的模板就行了.
by chenbin.sh
Mon Jun 22, 2009 1:28 pm
Forum: Compiler / Linking / IDE Related
Topic: compile wxSkin (unicode version) with vc2005 express
Replies: 0
Views: 431

compile wxSkin (unicode version) with vc2005 express

looks like upCASE does not test wxskin unicode version with VC. Attached patch fixed some minor bugs of wxskin 0.9 alpha. I've also attached my cmakelists.txt which takes advantage of the latest cmake macros. There is a still a bug, when wxSkin_example starts, "example.jpg" could not be found. BTW: ...
by chenbin.sh
Mon Jun 15, 2009 12:15 am
Forum: C++ Development
Topic: how to start a process in a non-main thread
Replies: 3
Views: 830

how to start a process in a non-main thread

I read this thread and the wxwidgets documentation. Looks like I can not use wxExecute because I want to start several threads at the same time and each thread starts a process, any solutions except hardcoding for each platform?
by chenbin.sh
Wed Jun 03, 2009 1:14 am
Forum: C++ Development
Topic: unicode problem
Replies: 2
Views: 632

1. As Auria said, link with the unicode build of wxwidgets,
which means every wxChar take 2 bytes (at least on windows), nothing more, nothing less

2. Before you output any wxString into a file, pipe ..., convert wxString into utf8 string.
by chenbin.sh
Mon May 25, 2009 7:07 am
Forum: C++ Development
Topic: what control use to select an output file?
Replies: 1
Views: 593

what control use to select an output file?

I use wxFilePickerCtrl, but it can only choose existing file. What control should I use?
by chenbin.sh
Fri May 22, 2009 3:58 am
Forum: C++ Development
Topic: Is wxSkin's on sourceforge or google code?
Replies: 5
Views: 1361

Is wxSkin's on sourceforge or google code?

Where can I check its current status?
by chenbin.sh
Tue May 19, 2009 5:02 am
Forum: C++ Development
Topic: how to embed wxwizard in the client area of a frame window.
Replies: 2
Views: 599

here is a solution (in python code)

easy to translate into c++, use
http://stackoverflow.com/questions/2243 ... o-a-wizard

instead use:
self.current_page.Destroy()

I use :
self.current_page.DestroyChildren()