Remove obsolete symbols from the samples
Mostly don't mention OS/2 in the comments about the icons. Also replace a couple of occurrences of "wxWindows" with "wxWidgets". Closes https://github.com/wxWidgets/wxWidgets/pull/138
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -704,7 +704,7 @@ MyPanel::MyPanel(wxWindow *parent)
|
||||
m_calendar = DoCreateCalendar(wxDefaultDateTime,
|
||||
wxCAL_MONDAY_FIRST | wxCAL_SHOW_HOLIDAYS);
|
||||
|
||||
// adjust to vertical/horizontal display, check mostly dedicated to WinCE
|
||||
// adjust to vertical/horizontal display
|
||||
bool horizontal = ( wxSystemSettings::GetMetric(wxSYS_SCREEN_X) > wxSystemSettings::GetMetric(wxSYS_SCREEN_Y) );
|
||||
m_sizer = new wxBoxSizer( horizontal ? wxHORIZONTAL : wxVERTICAL );
|
||||
|
||||
|
@@ -42,7 +42,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
@@ -35,7 +35,7 @@
|
||||
#include "wx/display.h"
|
||||
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -1,4 +1,4 @@
|
||||
Drag-and-Drop Support in wxWindows
|
||||
Drag-and-Drop Support in wxWidgets
|
||||
==================================
|
||||
|
||||
1. Overview
|
||||
@@ -7,9 +7,7 @@
|
||||
a) What is it?
|
||||
|
||||
We're calling drag-and-drop (or d&d for short) the OLE mechanism of data
|
||||
transfer. Please note that it's not the same thing as the file oriented d&d
|
||||
of Windows 3.1 "File Manager" which is designed for and limited to the file
|
||||
names only.
|
||||
transfer.
|
||||
|
||||
OLE d&d allows application to transfer data of any type to the same or
|
||||
another process.
|
||||
|
@@ -822,7 +822,7 @@ void MyCanvas::DrawText(wxDC& dc)
|
||||
dc.DrawRotatedText( wxT("That is text"), 20, 10, -45 );
|
||||
|
||||
// use wxSWISS_FONT and not wxNORMAL_FONT as the latter can't be rotated
|
||||
// under Win9x (it is not TrueType)
|
||||
// under MSW (it is not TrueType)
|
||||
dc.SetFont( *wxSWISS_FONT );
|
||||
|
||||
wxString text;
|
||||
|
@@ -53,7 +53,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "joytest.h"
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
@@ -36,7 +36,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
@@ -45,7 +45,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -870,7 +870,7 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
|
||||
SetMenuBar(menuBar);
|
||||
|
||||
// create a status bar just for fun (by default with 1 pane only)
|
||||
// but don't create it on limited screen space (WinCE)
|
||||
// but don't create it on limited screen space (mobile device)
|
||||
bool is_pda = wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA;
|
||||
|
||||
#if wxUSE_STATUSBAR
|
||||
|
@@ -1,20 +1,20 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: samples/samples.rc
|
||||
// Purpose: a standard Win32 .rc file for the wxWindows samples
|
||||
// Purpose: a standard MSW .rc file for the wxWidgets samples
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 04.08.03
|
||||
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// this minimal resource file is all what is needed for most of the wxWindows
|
||||
// this minimal resource file is all what is needed for most of the wxWidgets
|
||||
// samples
|
||||
|
||||
// note that the icon used by the Explorer (i.e. the programs icon) is the
|
||||
// first icon in the executable and the icons are sorted both by their order
|
||||
// (Win9x) and by alphabetically (!) (NT), so put this icon first and give it
|
||||
// a name starting with "a"
|
||||
// and alphabetically (!), so put this icon first and give it a name
|
||||
// starting with "a"
|
||||
aaaaaaaa ICON "sample.ico"
|
||||
|
||||
// this icon is used with wxFrame::SetIcon()
|
||||
|
@@ -34,7 +34,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -37,7 +37,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
@@ -42,7 +42,7 @@
|
||||
// resources
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
@@ -125,8 +125,7 @@ MyDialog::MyDialog(const wxString& title)
|
||||
|
||||
m_taskBarIcon = new MyTaskBarIcon();
|
||||
|
||||
// we should be able to show up to 128 characters on recent Windows versions
|
||||
// (and 64 on Win9x)
|
||||
// we should be able to show up to 128 characters on Windows
|
||||
if ( !m_taskBarIcon->SetIcon(wxICON(sample),
|
||||
"wxTaskBarIcon Sample\n"
|
||||
"With a very, very, very, very\n"
|
||||
|
@@ -1164,7 +1164,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
||||
m_enter->SetClientData((void *)wxT("enter"));
|
||||
|
||||
m_textrich = new MyTextCtrl(this, wxID_ANY, wxT("Allows more than 30Kb of text\n")
|
||||
wxT("(even under broken Win9x)\n")
|
||||
wxT("(on all Windows versions)\n")
|
||||
wxT("and a very very very very very ")
|
||||
wxT("very very very long line to test ")
|
||||
wxT("wxHSCROLL style\n")
|
||||
@@ -1545,7 +1545,7 @@ void MyFrame::OnFileSave(wxCommandEvent& WXUNUSED(event))
|
||||
if ( m_panel->m_textrich->SaveFile(wxT("dummy.txt")) )
|
||||
{
|
||||
#if wxUSE_FILE
|
||||
// verify that the fil length is correct (it wasn't under Win95)
|
||||
// verify that the file length is correct
|
||||
wxFile file(wxT("dummy.txt"));
|
||||
wxLogStatus(this,
|
||||
wxT("Successfully saved file (text len = %lu, file size = %ld)"),
|
||||
|
@@ -37,7 +37,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
@@ -38,7 +38,7 @@
|
||||
// resources
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources)
|
||||
// the application icon (under Windows it is in resources)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
@@ -277,7 +277,7 @@ void SliderWidgetsPage::CreateContent()
|
||||
m_chkBothSides = CreateCheckBoxAndAddToSizer
|
||||
(sizerLeft, wxT("&Both sides"), SliderPage_BothSides);
|
||||
#if wxUSE_TOOLTIPS
|
||||
m_chkBothSides->SetToolTip( wxT("\"Both sides\" is only supported \nin Win95 and Universal") );
|
||||
m_chkBothSides->SetToolTip( wxT("\"Both sides\" is only supported \nin Universal") );
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
sizerLeft->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer
|
||||
|
@@ -59,7 +59,7 @@
|
||||
// Regular resources (the non-XRC kind).
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// the application icon (under Windows and OS/2 it is in resources and even
|
||||
// the application icon (under Windows it is in resources and even
|
||||
// though we could still include the XPM here it would be unused)
|
||||
#ifndef wxHAS_IMAGES_IN_RESOURCES
|
||||
#include "../sample.xpm"
|
||||
|
Reference in New Issue
Block a user