Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [Feature request] Libraries!
Re: [Feature request] Libraries! [message #6916 is a reply to message #6908] Mon, 04 December 2006 13:14 Go to previous messageGo to previous message
g00fy is currently offline  g00fy
Messages: 15
Registered: December 2006
Location: Mechelen, Belgium, Europe
Promising Member
Ok,


I double checked how messageboxes are working:

* OK alone: ESC -> removes the messagebox, returns "OK"
* Cancel in the box (for example ok/cancel or yes/no/cancel or ...): ESC -> removes the box, returns "Cancel"
* yes/no: ESC -> Doesn't work.


Greetz,
Steven


void show_msgbox( const wxString& w, int buttons )
{
  int id = wxMessageBox( w, wxMessageBoxCaptionStr, buttons );
  switch( id )
  {
  case wxOK:      wxMessageBox( w + wxT(" -> wxOK") );     break;
  case wxCANCEL:  wxMessageBox( w + wxT(" -> wxCANCEL") ); break;
  case wxYES:     wxMessageBox( w + wxT(" -> wxYES") );    break;
  case wxNO:      wxMessageBox( w + wxT(" -> wxNO") );     break;
  default:
    wxMessageBox( wxString::Format(wxT("%ld"), id ) );
    break;
  }
}

#define wxBOX(a) show_msgbox(wxT(#a), a)
  wxBOX(wxOK);
  wxBOX(wxYES_NO);
  wxBOX(wxYES_NO|wxCANCEL);
  wxBOX(wxOK|wxCANCEL);

[Updated on: Mon, 04 December 2006 13:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ 612-dev 3 HomeBudget run time problem
Next Topic: assign enum to variable?
Goto Forum:
  


Current Time: Mon Jun 23 08:41:05 CEST 2025

Total time taken to generate the page: 0.05097 seconds