]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/fl/cbcustom.cpp
Applied patch [ 795491 ] Multimon sample compatibility with various conditions
[wxWidgets.git] / contrib / src / fl / cbcustom.cpp
index 43f5683ff337a258148fcbc22bccccd1d02f807d..1fca0c0b23d776e6a1a7f249a565adacb23c17dc 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        No names yet.
-// Purpose:     Contrib. demo
+// Name:        cbcustom.cpp
+// Purpose:     cbSimpleCustomizationPlugin class declaration
 // Author:      Aleksandras Gluchovas
 // Modified by:
 // Created:     06/09/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Aleksandras Gluchovas
-// Licence:    wxWindows license
+// Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
@@ -97,8 +97,8 @@ void cbSimpleCustomizationPlugin::OnCustomizeBar( cbCustomizeBarEvent& event )
 
 void cbSimpleCustomizationPlugin::OnCustomizeLayout( cbCustomizeLayoutEvent& event )
 {
-       wxString helpStr1 = "Select this item to show the corresponding control bar";
-       wxString helpStr2 = "Select this itme to hide the corresponding control bar";
+       wxString helpStr1 = wxT("Select this item to show the corresponding control bar");
+       wxString helpStr2 = wxT("Select this itme to hide the corresponding control bar");
 
        int id = CB_CUSTOMIZE_MENU_FIRST_ITEM_ID;
 
@@ -121,8 +121,11 @@ void cbSimpleCustomizationPlugin::OnCustomizeLayout( cbCustomizeLayoutEvent& eve
                ++id;
        }
 
+    // Customization dialog not implemented, so don't show the menu item
+#if 0
        pMenu->AppendSeparator();
        pMenu->Append( id, "Customize...", "Show layout customization dialog", FALSE );
+#endif    
        mCustMenuItemId = id;
 
        cbContextMenuHandler* pHandler = new cbContextMenuHandler();
@@ -150,7 +153,7 @@ void cbSimpleCustomizationPlugin::OnMenuItemSelected( wxCommandEvent& event )
 {
        if ( event.GetId() == mCustMenuItemId )
        {
-               wxMessageBox("Customization dialog box is not supported by this plugin yet");
+               wxMessageBox(wxT("Customization dialog box is not supported by this plugin yet"));
 
                return;
        }