Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXDialogBox.h
1 /********************************************************************************
2 * *
3 * D i a l o g B o x *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1998,2022 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXDIALOGBOX_H
22 #define FXDIALOGBOX_H
23 
24 #ifndef FXTOPWINDOW_H
25 #include "FXTopWindow.h"
26 #endif
27 
28 namespace FX {
29 
30 
37 class FXAPI FXDialogBox : public FXTopWindow {
38  FXDECLARE(FXDialogBox)
39 protected:
40  FXDialogBox(){}
41 private:
42  FXDialogBox(const FXDialogBox&);
43  FXDialogBox &operator=(const FXDialogBox&);
44 public:
45  long onCmdAccept(FXObject*,FXSelector,void*);
46  long onCmdCancel(FXObject*,FXSelector,void*);
47 public:
48  enum {
49  ID_CANCEL=FXTopWindow::ID_LAST,
51  ID_LAST
52  };
53 public:
54 
56  FXDialogBox(FXApp* a,const FXString& name,FXuint opts=DECOR_TITLE|DECOR_BORDER,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=4,FXint vs=4);
57 
59  FXDialogBox(FXWindow* owner,const FXString& name,FXuint opts=DECOR_TITLE|DECOR_BORDER,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=4,FXint vs=4);
60 
66  virtual FXuint execute(FXuint placement=PLACEMENT_CURSOR);
67  };
68 
69 }
70 
71 #endif
DialogBox window.
Definition: FXDialogBox.h:37
Window is the base class for all widgets in FOX.
Definition: FXWindow.h:130
Closes the dialog, cancel the entry.
Definition: FXDialogBox.h:50
The Application object is the central point of a FOX user-interface.
Definition: FXApp.h:134
Toolbar asks to dock.
Definition: FXTopWindow.h:149
Definition: FX4Splitter.h:28
Abstract base class for all top-level windows.
Definition: FXTopWindow.h:97
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42

Copyright © 1997-2022 Jeroen van der Zijp