-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprefsdlg.cpp
33 lines (25 loc) · 1.26 KB
/
prefsdlg.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "prefsdlg.h"
FXDEFMAP(FXPrefsDlg) MessageMap[] =
{
//________Message_Type_____________________ID_______________Message_Handler_______
FXMAPFUNC(SEL_COMMAND, FXPrefsDlg::ID_ACCEPT, FXPrefsDlg::onAccept),
};
FXIMPLEMENT(FXPrefsDlg, FXDialogBox, MessageMap, ARRAYNUMBER(MessageMap))
FXPrefsDlg::FXPrefsDlg(FXWindow* owner, const FXString& name, FXIcon* icon, FXuint opts, FXint x, FXint y, FXint w, FXint h)
: FXDialogBox(owner, name, opts, opts, x, y, w, h)
{
setIcon(icon);
// buttons on bottom of the dialog
FXHorizontalFrame* buttons = new FXHorizontalFrame(this, LAYOUT_SIDE_BOTTOM | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH | PACK_UNIFORM_HEIGHT, 0, 0, 0, 0, 0, 0, 0, 0);
new FXButton(buttons, "&Abbrechen", NULL, this, ID_CANCEL, BUTTON_DEFAULT | FRAME_RAISED | LAYOUT_FILL_Y | LAYOUT_RIGHT);
new FXButton(buttons, "&Ok", NULL, this, ID_ACCEPT, BUTTON_INITIAL | BUTTON_DEFAULT | FRAME_RAISED | LAYOUT_FILL_Y | LAYOUT_RIGHT);
// new FXHorizontalSeparator(this, SEPARATOR_GROOVE | LAYOUT_SIDE_BOTTOM | LAYOUT_FILL_X);
}
long FXPrefsDlg::onAccept(FXObject* sender, FXSelector sel, void* ptr)
{
return FXDialogBox::onCmdAccept(sender, sel, ptr);
}
void FXPrefsDlg::create()
{
FXDialogBox::create();
}