]> git.saurik.com Git - wxWidgets.git/blob - src/univ/topluniv.cpp
partial implementation of wxTopLevelWindow for wXUniv
[wxWidgets.git] / src / univ / topluniv.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: topluniv.cpp
3 // Author: Vaclav Slavik
4 // Id: $Id$
5 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 // ============================================================================
10 // declarations
11 // ============================================================================
12
13 // ----------------------------------------------------------------------------
14 // headers
15 // ----------------------------------------------------------------------------
16
17 #ifdef __GNUG__
18 #pragma implementation "univtoplevel.h"
19 #endif
20
21 // For compilers that support precompilation, includes "wx.h".
22 #include "wx/wxprec.h"
23
24 #ifdef __BORLANDC__
25 #pragma hdrstop
26 #endif
27
28 #include "wx/defs.h"
29 #include "wx/toplevel.h"
30
31
32 // ----------------------------------------------------------------------------
33 // event tables
34 // ----------------------------------------------------------------------------
35
36 IMPLEMENT_DYNAMIC_CLASS(wxTopLevelWindow, wxWindow)
37
38
39 // ============================================================================
40 // implementation
41 // ============================================================================
42
43 void wxTopLevelWindow::Init()
44 {
45 }
46
47 bool wxTopLevelWindow::Create(wxWindow *parent,
48 wxWindowID id,
49 const wxString& title,
50 const wxPoint& pos,
51 const wxSize& sizeOrig,
52 long style,
53 const wxString &name)
54 {
55 if ( !wxTopLevelWindowNative::Create(parent, id, title, pos,
56 sizeOrig, style, name) )
57 return FALSE;
58
59 // FIXME_MGL -- this is temporary; we assume for now that native TLW
60 // can do decorations, which is not true for MGL
61
62 return TRUE;
63 }
64
65 bool wxTopLevelWindow::ShowFullScreen(bool show, long style)
66 {
67 if ( show == IsFullScreen() ) return FALSE;
68
69 return wxTopLevelWindowNative::ShowFullScreen(show, style);
70
71 // FIXME_MGL -- must handle caption hiding here if not in
72 // native decorations mode
73 }
74