9 |
|
|
10 |
{ |
{ |
11 |
public: |
public: |
12 |
CMyWindow(PG_Widget *parent,const PG_Rect& r,char *text,Uint32 flags,const char* style = "Window"); |
CMyWindow(PG_Widget *parent,const PG_Rect& r,char *text,WindowFlags flags,const char* style = "Window"); |
13 |
}; |
}; |
14 |
|
|
15 |
CMyWindow::CMyWindow(PG_Widget *parent,const PG_Rect& r,char *text,Uint32 flags,const char* style) : PG_Window(parent,r,text,flags,style) |
CMyWindow::CMyWindow(PG_Widget *parent,const PG_Rect& r,char *text, WindowFlags flags,const char* style) : PG_Window(parent,r,text,flags,style) |
16 |
|
|
17 |
{ |
{ |
18 |
} |
} |
27 |
CMyWidget::CMyWidget(PG_Widget *parent,PG_Rect rect) : PG_ThemeWidget(parent,rect, true) |
CMyWidget::CMyWidget(PG_Widget *parent,PG_Rect rect) : PG_ThemeWidget(parent,rect, true) |
28 |
|
|
29 |
{ |
{ |
30 |
CMyWindow *mywindow = new CMyWindow(this,PG_Rect(50,50,150,100),"Fenster",WF_DEFAULT); |
CMyWindow *mywindow = new CMyWindow(this, PG_Rect(50,50,150,100), "Fenster", PG_Window::DEFAULT); |
31 |
AddChild(mywindow); |
AddChild(mywindow); |
32 |
} |
} |
33 |
|
|
55 |
"Modal Messagebox", "Click \"Ok\" to close me", |
"Modal Messagebox", "Click \"Ok\" to close me", |
56 |
PG_Rect(90, 120, 50, 50), |
PG_Rect(90, 120, 50, 50), |
57 |
"Ok", |
"Ok", |
58 |
PG_TA_CENTER); |
PG_Label::CENTER); |
59 |
|
|
60 |
PG_DropDown* drop = new PG_DropDown(msgbox, 15, PG_Rect(5, 60, 200,25)); |
PG_DropDown* drop = new PG_DropDown(msgbox, 15, PG_Rect(5, 60, 200,25)); |
61 |
drop->SetIndent(5); |
drop->SetIndent(5); |
93 |
"Modal Messagebox", "Click \"Ok\" to close me", |
"Modal Messagebox", "Click \"Ok\" to close me", |
94 |
PG_Rect(90, 120, 50, 50), |
PG_Rect(90, 120, 50, 50), |
95 |
"Ok", |
"Ok", |
96 |
PG_TA_CENTER); |
PG_Label::CENTER); |
97 |
|
|
98 |
msgbox->Show(); |
msgbox->Show(); |
99 |
msgbox->WaitForClick(); |
msgbox->WaitForClick(); |