00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef FXDIALOGBOX_H
00025 #define FXDIALOGBOX_H
00026
00027 #ifndef FXTOPWINDOW_H
00028 #include "FXTopWindow.h"
00029 #endif
00030
00031 namespace FX {
00032
00033
00040 class FXAPI FXDialogBox : public FXTopWindow {
00041 FXDECLARE(FXDialogBox)
00042 protected:
00043 FXDialogBox(){}
00044 private:
00045 FXDialogBox(const FXDialogBox&);
00046 FXDialogBox &operator=(const FXDialogBox&);
00047 public:
00048 long onKeyPress(FXObject*,FXSelector,void*);
00049 long onKeyRelease(FXObject*,FXSelector,void*);
00050 long onCmdAccept(FXObject*,FXSelector,void*);
00051 long onCmdCancel(FXObject*,FXSelector,void*);
00052 public:
00053 enum {
00054 ID_CANCEL=FXTopWindow::ID_LAST,
00055 ID_ACCEPT,
00056 ID_LAST
00057 };
00058 public:
00059
00061 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);
00062
00064 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);
00065
00067 virtual FXuint execute(FXuint placement=PLACEMENT_CURSOR);
00068 };
00069
00070 }
00071
00072 #endif