Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

dlgwnd.h

00001 // $Id: dlgwnd.h,v 1.1.1.1 2003/06/24 15:33:11 sjcomp Exp $
00002 // Copyright (c) 2003, Alexander Shyrokov aka SJ
00003 // E-mail: sjcomp[@]users.sourceforge.com
00004 // Web:    http://sjgui.sourceforge.net
00005 //
00006 // This code is under BSD license agreement.
00007 //
00008 // Alexander Shyrokov makes no representations about the suitability of this software 
00009 // for any purpose. It is provided "AS IS" without express or implied warranty.
00010 
00011 #if !defined(SJDLGWINDOW_H_INCLUDED)
00012 #define SJDLGWINDOW_H_INCLUDED
00013 
00014 namespace sjgui{
00015     
00016     namespace SJGUI_USE_STYLE
00017     {
00018         extern GLfloat def_dlg_wnd_border_color[4]; 
00019         extern GLfloat def_dlg_wnd_bg_color[4]; 
00020         extern GLfloat def_dlg_wnd_bg_sel_color[4]; 
00021     }
00022 
00033 template<class Tbase>
00034 class CPlaneWndCtrlTmpl : public Tbase
00035 {
00036 public:
00037     CPlaneWndCtrlTmpl()
00038     {
00039         SetBgColor(SJGUI_USE_STYLE::def_dlg_wnd_bg_color);
00040         SetBgSelColor(SJGUI_USE_STYLE::def_dlg_wnd_bg_sel_color);
00041         // I do not want dialogs to be shown unless
00042         // it is explicitly called.
00043         m_yVisible=false;
00044     }
00045     // I want to capture the focus when shown.
00047     virtual void OnShow(){if(GetParentWnd()!=NULL)GetParentWnd()->BringOnTop(this);}
00049     virtual void OnFocusRecv(){if(GetParentWnd()!=NULL)GetParentWnd()->BringOnTop(this);}
00050 };
00051 
00052 } // namespace sjgui
00053 
00054 #endif // !defined(SJDLGWINDOW_H_INCLUDED)
sjgui logo
Quick Links:

 News
 Description
 Screen Shots
 Projects
 Downloads
 Source Code
 Help/FAQ
 Want to help?
 Credits
 Disclaimer


Documentation:

 Documentation
 Reference
 Lessons


Useful links:

sjcomp logo
sjcomp

opengl logo

nehe logo

SourceForge.net Logo

Last modified:


Started by Alexander Shyrokov. Generated at Wed Apr 28 12:31:04 2004 for the sjgui by doxygen 1.3.1. SourceForge.net Logo