]> git.saurik.com Git - wxWidgets.git/blame - src/msw/data.cpp
fix for textctrl height
[wxWidgets.git] / src / msw / data.cpp
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose: Various data
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
e146b8c8 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
a3b46648 13#pragma implementation "data.h"
2bda0e17
KB
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20#pragma hdrstop
21#endif
22
23#ifndef WX_PRECOMP
24#include "wx/wx.h"
25#endif
26
2a47d3c1
JS
27#include "wx/prntbase.h"
28
2bda0e17
KB
29#define _MAXPATHLEN 500
30
31// Useful buffer, initialized in wxCommonInit
837e5743 32wxChar *wxBuffer = NULL;
2bda0e17
KB
33
34// Windows List
e146b8c8 35wxWindowList wxTopLevelWindows;
2bda0e17
KB
36
37// List of windows pending deletion
cde9f08e 38wxList WXDLLEXPORT wxPendingDelete;
2bda0e17 39
2bda0e17
KB
40// Custom OS version, as optionally placed in wx.ini/.wxrc
41// Currently this can be Win95, Windows, Win32s, WinNT.
42// For some systems, you can't tell until run-time what services you
43// have. See wxGetOsVersion, which uses this string if present.
44char *wxOsVersion = NULL;
45
46int wxPageNumber;
47
48// GDI Object Lists
49wxBrushList *wxTheBrushList = NULL;
50wxPenList *wxThePenList = NULL;
51wxFontList *wxTheFontList = NULL;
52wxBitmapList *wxTheBitmapList = NULL;
53
54wxColourDatabase *wxTheColourDatabase = NULL;
55
56// Stock objects
57wxFont *wxNORMAL_FONT;
58wxFont *wxSMALL_FONT;
59wxFont *wxITALIC_FONT;
60wxFont *wxSWISS_FONT;
61wxPen *wxRED_PEN;
62
63wxPen *wxCYAN_PEN;
64wxPen *wxGREEN_PEN;
65wxPen *wxBLACK_PEN;
66wxPen *wxWHITE_PEN;
67wxPen *wxTRANSPARENT_PEN;
68wxPen *wxBLACK_DASHED_PEN;
69wxPen *wxGREY_PEN;
70wxPen *wxMEDIUM_GREY_PEN;
71wxPen *wxLIGHT_GREY_PEN;
72
73wxBrush *wxBLUE_BRUSH;
74wxBrush *wxGREEN_BRUSH;
75wxBrush *wxWHITE_BRUSH;
76wxBrush *wxBLACK_BRUSH;
77wxBrush *wxTRANSPARENT_BRUSH;
78wxBrush *wxCYAN_BRUSH;
79wxBrush *wxRED_BRUSH;
80wxBrush *wxGREY_BRUSH;
81wxBrush *wxMEDIUM_GREY_BRUSH;
82wxBrush *wxLIGHT_GREY_BRUSH;
83
84wxColour *wxBLACK;
85wxColour *wxWHITE;
86wxColour *wxRED;
87wxColour *wxBLUE;
88wxColour *wxGREEN;
89wxColour *wxCYAN;
90wxColour *wxLIGHT_GREY;
91
92wxCursor *wxSTANDARD_CURSOR = NULL;
93wxCursor *wxHOURGLASS_CURSOR = NULL;
94wxCursor *wxCROSS_CURSOR = NULL;
95
96// 'Null' objects
57a7b7c1 97wxAcceleratorTable wxNullAcceleratorTable;
2bda0e17
KB
98wxBitmap wxNullBitmap;
99wxIcon wxNullIcon;
100wxCursor wxNullCursor;
101wxPen wxNullPen;
102wxBrush wxNullBrush;
103wxPalette wxNullPalette;
104wxFont wxNullFont;
105wxColour wxNullColour;
106
107// Default window names
8d772832 108const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
109const wxChar *wxButtonNameStr = wxT("button");
110const wxChar *wxCanvasNameStr = wxT("canvas");
111const wxChar *wxCheckBoxNameStr = wxT("check");
112const wxChar *wxChoiceNameStr = wxT("choice");
113const wxChar *wxComboBoxNameStr = wxT("comboBox");
114const wxChar *wxDialogNameStr = wxT("dialog");
115const wxChar *wxFrameNameStr = wxT("frame");
116const wxChar *wxGaugeNameStr = wxT("gauge");
117const wxChar *wxStaticBoxNameStr = wxT("groupBox");
118const wxChar *wxListBoxNameStr = wxT("listBox");
119const wxChar *wxStaticTextNameStr = wxT("message");
120const wxChar *wxStaticBitmapNameStr = wxT("message");
121const wxChar *wxMultiTextNameStr = wxT("multitext");
122const wxChar *wxPanelNameStr = wxT("panel");
123const wxChar *wxRadioBoxNameStr = wxT("radioBox");
124const wxChar *wxRadioButtonNameStr = wxT("radioButton");
125const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
126const wxChar *wxScrollBarNameStr = wxT("scrollBar");
127const wxChar *wxSliderNameStr = wxT("slider");
128const wxChar *wxStaticNameStr = wxT("static");
129const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
130const wxChar *wxTextCtrlNameStr = wxT("text");
131const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
132const wxChar *wxButtonBarNameStr = wxT("buttonbar");
133const wxChar *wxEnhDialogNameStr = wxT("Shell");
134const wxChar *wxToolBarNameStr = wxT("toolbar");
135const wxChar *wxStatusLineNameStr = wxT("status_line");
136const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
137const wxChar *wxMessageBoxCaptionStr = wxT("Message");
138const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
139const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
140const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
141const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
142const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
143const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
144const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
2bda0e17
KB
145
146// See wx/utils.h
223d09f6
KB
147const wxChar *wxFloatToStringStr = wxT("%.2f");
148const wxChar *wxDoubleToStringStr = wxT("%.2f");
2bda0e17 149
2049ba38 150#ifdef __WXMSW__
223d09f6 151const wxChar *wxUserResourceStr = wxT("TEXT");
2bda0e17
KB
152#endif
153
2bda0e17
KB
154
155const wxSize wxDefaultSize(-1, -1);
156const wxPoint wxDefaultPosition(-1, -1);