mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
bazaar: PopUpC
git-svn-id: svn://ultimatepp.org/upp/trunk@14149 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
eae1b88db4
commit
ff3ff6be3d
1 changed files with 5 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ void PopUpC::Break(int ID)
|
||||||
bool PopUpC::AcceptBreak(int ID)
|
bool PopUpC::AcceptBreak(int ID)
|
||||||
{
|
{
|
||||||
if(Accept()) {
|
if(Accept()) {
|
||||||
WhenAccept();
|
|
||||||
Break(ID);
|
Break(ID);
|
||||||
|
WhenAccept();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -29,8 +29,8 @@ bool PopUpC::AcceptBreak(int ID)
|
||||||
void PopUpC::RejectBreak(int ID)
|
void PopUpC::RejectBreak(int ID)
|
||||||
{
|
{
|
||||||
Reject();
|
Reject();
|
||||||
WhenReject();
|
|
||||||
Break(ID);
|
Break(ID);
|
||||||
|
WhenReject();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PopUpC::PopUp(Ctrl* owner)
|
void PopUpC::PopUp(Ctrl* owner)
|
||||||
|
|
@ -46,6 +46,9 @@ void PopUpC::PopUp(Ctrl* owner)
|
||||||
y = r.top - sz.cy;
|
y = r.top - sz.cy;
|
||||||
|
|
||||||
Rect rt = RectC(x, y, sz.cx, sz.cy);
|
Rect rt = RectC(x, y, sz.cx, sz.cy);
|
||||||
|
|
||||||
|
Backup();
|
||||||
|
|
||||||
if(GUI_PopUpEffect()) {
|
if(GUI_PopUpEffect()) {
|
||||||
sPaintRedirectCtrl pb;
|
sPaintRedirectCtrl pb;
|
||||||
pb.ctrl = this;
|
pb.ctrl = this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue