Search found 77 matches

by bloodlee
Mon Mar 10, 2008 11:13 am
Forum: C++ Development
Topic: How to handle the un-selected event of wxListBox in wx 2.6.2
Replies: 1
Views: 249

How to handle the un-selected event of wxListBox in wx 2.6.2

Hi, guys. Now i have a wxListBox with wxLB_EXTENDED style, so I can multi-select the items with CTRL or SHIFT keys. And I use the EVT_LISTBOX to handle the select change event. In Windows, it's OK. But in Linux(Fedora 6), it doesn't work. It can just handle the select event. When I unselected some i...
by bloodlee
Thu Mar 06, 2008 3:06 pm
Forum: C++ Development
Topic: Could tooltip be shown when the wxWindow is disabled?
Replies: 5
Views: 1018

Yes, I've wrote a wxEvtHandler to implement my custom disable button.

Thanks. :D
by bloodlee
Wed Mar 05, 2008 12:45 pm
Forum: C++ Development
Topic: Could tooltip be shown when the wxWindow is disabled?
Replies: 5
Views: 1018

Thanks, Jorg. But sorry, I don't quite understand. Do you mean it's the matter of the Windows? The sample is like this: wxButton* pBTN = new wxButton(...); pBTN->SetToolTip(wxT("..."); If the button is enabled, the tooltip is shown well. But if I disable it, the tooltip went away also. I just want t...
by bloodlee
Wed Mar 05, 2008 11:55 am
Forum: C++ Development
Topic: Could tooltip be shown when the wxWindow is disabled?
Replies: 5
Views: 1018

Could tooltip be shown when the wxWindow is disabled?

Hi, all!
Is there any way to make tooltip enabled when the wxWindow like wxButton is disabled?
Thanks.
by bloodlee
Mon Jan 14, 2008 5:39 am
Forum: C++ Development
Topic: Trying to use wxClientDC but I'm a newbie!
Replies: 4
Views: 692

Your DC need to be initialized, like wxPaintDC(this), I think.
And it's better to use the DCs in EVT_PAINT event handler. :)
by bloodlee
Fri Jan 11, 2008 7:58 am
Forum: C++ Development
Topic: Question about updating wx
Replies: 2
Views: 308

That's very helpful.
I will read the document carefully.

Thx, upCASE! :D
by bloodlee
Fri Jan 11, 2008 7:36 am
Forum: C++ Development
Topic: Question about updating wx
Replies: 2
Views: 308

Question about updating wx

Hi, all! I've developed my project based on wx2.6.2 for a couple of months. And I found some problem about this version. So recently I am considering whether to update it. But I don't want any risk. :) Which version is the best choice? And what should I care about? Since I am not very familiar with ...
by bloodlee
Fri Dec 07, 2007 8:07 am
Forum: C++ Development
Topic: wxScrolledWindow problem
Replies: 5
Views: 1005

I've checked the wxGTK source.
DrawLine will call gdk_draw_line to draw the line.

I have no exp. about GTK+. Is it a bug of wxGTK or GTK?
by bloodlee
Thu Dec 06, 2007 9:55 am
Forum: C++ Development
Topic: wxScrolledWindow problem
Replies: 5
Views: 1005

The complete code is shown below: ========================================= BEGIN_EVENT_TABLE(wxMyScrolledWindow, wxScrolledWindow) EVT_PAINT(wxMyScrolledWindow::OnPaint) END_EVENT_TABLE() wxMyScrolledWindow::wxMyScrolledWindow(wxWindow* parent, wxWindowID id) : wxScrolledWindow(parent, id) { SetScr...
by bloodlee
Thu Dec 06, 2007 2:43 am
Forum: C++ Development
Topic: wxScrolledWindow problem
Replies: 5
Views: 1005

Thanks for your reply, Auria, again. :D My test code is simple. 1) Create a wxScrolledWindow control on a wxDialog, add several statements on its ctor ================================== .... int interval = 10; int scorr = 80000 / 10; SetScrollBars(interval, 0, scorr + 1, 0, scorr - 1, 0); .... =====...
by bloodlee
Wed Dec 05, 2007 9:28 am
Forum: C++ Development
Topic: wxScrolledWindow problem
Replies: 5
Views: 1005

wxScrolledWindow problem

Hi, guys. I developed a program on Window XP Home. It contains a wxScrolledWindow control. And wxPaintDC used to paint something like histogram on that wxScrolledWindow. I think my lines are very long about more that 80000 pixels. On window xp, my program it works well. But on linux, it paints wrong...
by bloodlee
Wed Dec 05, 2007 9:18 am
Forum: Platform Related Issues
Topic: Problem about multi-processor system
Replies: 7
Views: 1297

Thanks.
Now I am developing on that SMP machine.
by bloodlee
Tue Dec 04, 2007 1:29 am
Forum: Platform Related Issues
Topic: Problem about multi-processor system
Replies: 7
Views: 1297

Yesterday we changed the multi-processor machine's kernel from a SMP kernel to a common single processor kernel. And the crash didn't happen again.

So I think the crash is related to RHEL's kernel.

I will try my best to fix this bug. Anyway, thanks for your help, Auria! :D
by bloodlee
Mon Dec 03, 2007 3:46 am
Forum: Platform Related Issues
Topic: Problem about multi-processor system
Replies: 7
Views: 1297

Do you mean Multithreading overview?
by bloodlee
Mon Dec 03, 2007 3:40 am
Forum: Platform Related Issues
Topic: Problem about multi-processor system
Replies: 7
Views: 1297

Thanks so much.

I used the multi-threading.

Could you please tell me which chapter should I see?