Search found 10 matches

by ikolev
Thu Feb 25, 2010 7:04 pm
Forum: C++ Development
Topic: wxStringOutputStream non-seekable
Replies: 1
Views: 306

wxStringOutputStream non-seekable

Hi, After investigating why wxImage::SaveFile() into a wxStringOutputStream won't work with TIFF I discovered today that wxStringOutputStream does not support seeking back into the string (or seeking forward past the current size), which the TIFF handler needs when writing. It's not too hard to impl...
by ikolev
Mon Feb 22, 2010 2:54 pm
Forum: C++ Development
Topic: wxGetWindowFromHWND defect
Replies: 0
Views: 472

wxGetWindowFromHWND defect

Hi. The function wxGetWindowFromHWND in src\msw\window.cpp does the following after it fails to find the window in the hash table of all wxWindow's: if ( ::SendMessage(hwnd, WM_GETDLGCODE, 0, 0) & DLGC_RADIOBUTTON ) { win = (wxWindow *)wxGetWindowUserData(hwnd); } This relies on the fact that only r...
by ikolev
Thu Nov 05, 2009 9:12 am
Forum: C++ Development
Topic: SetBellOnError inverted logic?
Replies: 3
Views: 575

Indeed, deprecating the old function and adding a new one seems the best way to solve this.
by ikolev
Tue Oct 20, 2009 9:17 am
Forum: C++ Development
Topic: Modal PopupMenu
Replies: 0
Views: 357

Modal PopupMenu

Hi, Usually when opening a context menu the application expects an immediate answer by the user (select something from the menu). So it would be more convenient if we had a common function which would open the menu and immediately return the result, instead of sending an event at some later time. So...
by ikolev
Mon Oct 19, 2009 8:42 am
Forum: C++ Development
Topic: Events for a combo box inside a wxAuiToolBar
Replies: 4
Views: 698

OK, after a lot of trials I found a way to avoid the problem. I reproduced the situation in the AUI sample. I added the following code just before tb2->Realize() in samples\aui\auidemo.cpp : wxPanel* tmpPanel = new wxPanel( this ); wxChoice* ch = new wxChoice; ch->Create( tmpPanel, ID_Choice ); ch->...
by ikolev
Fri Oct 16, 2009 9:53 am
Forum: C++ Development
Topic: Events for a combo box inside a wxAuiToolBar
Replies: 4
Views: 698

I decided to try a wxToolBar (not managed by AUI) and it worked - the wxChoice sends selection events. However, when I placed the wxToolBar under AUI's management, the wxChoice stopped sending events. So it turns out it is AUI's fault, probably related to wxAuiManager's event handling.
by ikolev
Thu Oct 15, 2009 7:45 am
Forum: C++ Development
Topic: Events for a combo box inside a wxAuiToolBar
Replies: 4
Views: 698

It seems the problem is caused by the additional list control which is created as a child of the choice control. It sends a message to its parent when the user selects an option from the list, but it seems the parent doesn't receive it or something else goes wrong, so the choice control never sends ...
by ikolev
Wed Oct 14, 2009 3:11 pm
Forum: C++ Development
Topic: Events for a combo box inside a wxAuiToolBar
Replies: 4
Views: 698

The same happens with the simpler wxChoice control - EVT_CHOICE does not fire when wxChoice is inside a wxAuiToolBar, but it fires when wxChoice is inside a normal wxPanel.
It seems the only control which can send events from a wxAuiToolBar is a text box.
by ikolev
Mon Oct 12, 2009 9:57 am
Forum: C++ Development
Topic: SetBellOnError inverted logic?
Replies: 3
Views: 575

SetBellOnError inverted logic?

Hi, I think the parameter of wxValidator::SetBellOnError(bool) has inverted logic. The method name implies that true should cause beeps, while false should disable them. At the moment it is the opposite. Either the name of the method should be changed to SetSilent(), or the implementation should be ...
by ikolev
Fri Sep 18, 2009 8:14 am
Forum: C++ Development
Topic: Events for a combo box inside a wxAuiToolBar
Replies: 4
Views: 698

Events for a combo box inside a wxAuiToolBar

Hi, With wxWidgets 2.8.10 I put a wxComboBox control inside a wxAuiToolBar. The EVT_TEXT_ENTER event fires and I can handle it, but EVT_COMBOBOX never reaches the handler I provide. If I move the same wxComboBox inside a wxPanel, the events work fine. I tried to debug the event handling in both case...