Search found 5 matches

by weeks
Fri Dec 15, 2006 6:33 pm
Forum: C++ Development
Topic: Dialogs in 2.8
Replies: 5
Views: 1322

Since I started with wxWidgets only after 2.7, I can't say how it was before, however, when I connect an event handler to wxID_OK and call event.Skip() after doint my own stuff, I don't need to do anything to close the dialog myself. Maybe this helps... void MyDialog::OnOk( wxCommandEvent& event ) ...
by weeks
Fri Dec 15, 2006 2:14 pm
Forum: C++ Development
Topic: Dialogs in 2.8
Replies: 5
Views: 1322

Hi there, I'm currently migrating my projects to 2.8.0 and the following worked fine for me: void bgIDialog::onOk(wxCommandEvent& event){ DoSomeFinalStuffHere(...); // old code: // wxDialog::OnOK(event); // new code: if ( Validate() && TransferDataFromWindow() ){ if ( IsModal() ) EndModal(wxID_OK);...
by weeks
Fri Dec 15, 2006 1:33 pm
Forum: C++ Development
Topic: Dialogs in 2.8
Replies: 5
Views: 1322

Dialogs in 2.8

Alright so up to now I was using wxDialog::OnCancel(); and wxDialog::OnOK(), now these are gone in 2.8 I looked through the samples and in place they use wxDialog::EndModal() this however this is not working for me it destroys my dialog without validation. It says in the documentation to use wxDialo...
by weeks
Fri Oct 27, 2006 6:09 pm
Forum: C++ Development
Topic: ImageList in wxComboBox
Replies: 1
Views: 565

I think I have my solution,
http://www.lpthe.jussieu.fr/~zeitlin/wx ... apcombobox

time to update wx again :roll:
by weeks
Fri Oct 27, 2006 5:43 pm
Forum: C++ Development
Topic: ImageList in wxComboBox
Replies: 1
Views: 565

ImageList in wxComboBox

Hi,

I need a component that is like a combo box with strings in it but also has a bitmap to the left of the text? (like the address bar of a browser) Any suggestions on a solution.

thanks,