Search found 77 matches

by bloodlee
Thu Sep 10, 2009 8:39 pm
Forum: C++ Development
Topic: Is this a potential bug in wxEventLoop
Replies: 3
Views: 1750

Is this a potential bug in wxEventLoop

Hi all, I am facing a strange crash now. (I am using wx 2.8.9 on WinXP). There is a frame. On that frame, click some button, a modal dialog pops out. Then on that dialog, click other button, another modal dialog pops out. Then quickly close these two dialogs one by one. Then the crash happens. Actua...
by bloodlee
Fri Dec 26, 2008 6:49 am
Forum: C++ Development
Topic: Grid with button-type cell
Replies: 7
Views: 2071

Good component!
Thanks.
by bloodlee
Fri Dec 05, 2008 3:16 am
Forum: C++ Development
Topic: Use wxGTK in Windows
Replies: 1
Views: 467

Use wxGTK in Windows

Dear all, I am very interesting about a question. Can wxGTK be compiled in Windows with GTK+ developing package and Mingw? If so, it may bring many benefits IMO. You can define your own gtkrc for different themes for GUI; You don't need to face the inconsistency in Windows and Linux. I've found some...
by bloodlee
Thu Oct 30, 2008 8:48 am
Forum: C++ Development
Topic: Custom event handler can't catch wxPaintEvent?
Replies: 1
Views: 492

Sorry, that's my code mistake.
by bloodlee
Thu Oct 30, 2008 3:25 am
Forum: C++ Development
Topic: Custom event handler can't catch wxPaintEvent?
Replies: 1
Views: 492

Custom event handler can't catch wxPaintEvent?

Hi, all.

I wrote a custome event handler and try to catch the wxPaintEvent. Code:

Code: Select all

BEGIN_EVENT_TABLE(....)
EVT_PAINT(...)
END_EVENT_TABLE()
In XP, it's OK. But when using wxGTK, I failed.

Any suggestions?

Thanks. :)
by bloodlee
Thu Oct 30, 2008 3:21 am
Forum: Component Writing
Topic: How to draw custom control based on some standard controls?
Replies: 3
Views: 1882

Thanks. I will have a try.
by bloodlee
Tue Oct 28, 2008 9:42 am
Forum: Component Writing
Topic: How to draw custom control based on some standard controls?
Replies: 3
Views: 1882

How to draw custom control based on some standard controls?

Hi, all. I want to create a custom button which will draw a small bitmap(4x4) at the left-bottom corner of the button. This bitmap is used to indicate some kind of status. Before I will write my own OnPaint(), in which I will draw the border, the label and the bitmap. But the work is complex and it ...
by bloodlee
Mon Oct 13, 2008 6:19 am
Forum: wxWidgets Development (Chinese)
Topic: 线程中启动对话框问题
Replies: 1
Views: 2547

在线程里用wxMessageBox不安全, 有时CRASH.
还是多运用发送事件的方法, 不要直接在线程里调用gui-related的接口.
by bloodlee
Mon Oct 13, 2008 6:15 am
Forum: wxWidgets Development (Chinese)
Topic: 请教动态事件与静态事件的效率?
Replies: 3
Views: 3491

动态事件相当的灵活!
现在经常写Handler-View的结构. View只是一个壳!
by bloodlee
Tue Oct 07, 2008 10:21 am
Forum: C++ Development
Topic: Cannot draw something with DC
Replies: 7
Views: 1460

Maybe you can try to add static event table to handle paint event.
I think

Code: Select all

EVT_PAINT()
is what you need.
by bloodlee
Fri Sep 05, 2008 10:29 am
Forum: Compiler / Linking / IDE Related
Topic: Question about how to use pre-compile in VS2003
Replies: 2
Views: 959

Yes, rodrigod!
It works!

Thanks.
by bloodlee
Fri Sep 05, 2008 2:47 am
Forum: Compiler / Linking / IDE Related
Topic: helloworld linking error in windows with vc++2005
Replies: 8
Views: 1754

Hi, pathzl! I've tried your project. I converted it to a VS 2008 Express project. Because I am still using wx2.6.2(which has many problems! :( ), I change the input libs from 28 to 26. And after that, everything was OK, just some warning message popped out. In my opinion, that's not the problem of y...
by bloodlee
Thu Sep 04, 2008 10:42 am
Forum: Compiler / Linking / IDE Related
Topic: helloworld linking error in windows with vc++2005
Replies: 8
Views: 1754

If you don't mind, maybe you can upload your project here.
I can have a try! :)
by bloodlee
Wed Sep 03, 2008 5:57 pm
Forum: Compiler / Linking / IDE Related
Topic: helloworld linking error in windows with vc++2005
Replies: 8
Views: 1754

Hi, pathzl.

Please check which run library you are using in your compile configuration. It's in C/C++ -> Code Generation -> Run Library.

You should keep it the same with your wxWidgets configuration.

Regards.
by bloodlee
Wed Sep 03, 2008 10:26 am
Forum: Compiler / Linking / IDE Related
Topic: Question about how to use pre-compile in VS2003
Replies: 2
Views: 959

Question about how to use pre-compile in VS2003

Dear all. As my project is getting bigger and bigger, I am trying to use pre-compile to accelerate build speed. I wrote header/src files like below. stdwx.h #ifndef __STDWX_H__ #define __STDWX_H__ #include "wx/wxprec.h" #include "wx/grid.h" #include "wx/xrc/xmlres.h" #i...