mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-26 13:09:57 +03:00
Add shown event to Form class
This commit is contained in:
parent
19e9bbd6e8
commit
17156ca25c
1 changed files with 13 additions and 0 deletions
|
@ -2118,6 +2118,7 @@ class Form: ContainerControl, IDialogResult // docmain
|
|||
}
|
||||
|
||||
show();
|
||||
onShown(EventArgs.empty);
|
||||
|
||||
wmodal = true;
|
||||
for(;;)
|
||||
|
@ -2204,6 +2205,8 @@ class Form: ContainerControl, IDialogResult // docmain
|
|||
Event!(Form, CancelEventArgs) closing; ///
|
||||
//EventHandler load;
|
||||
Event!(Form, EventArgs) load; ///
|
||||
//EventHandler shown;
|
||||
Event!(Form, EventArgs) shown; ///
|
||||
|
||||
|
||||
///
|
||||
|
@ -2248,6 +2251,16 @@ class Form: ContainerControl, IDialogResult // docmain
|
|||
if(!hwfocus || !IsChild(hwnd, hwfocus))
|
||||
_selectNextControl(this, null, true, true, true, false);
|
||||
}
|
||||
|
||||
if (isHandleCreated)
|
||||
onShown(EventArgs.empty);
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
protected void onShown(EventArgs ea)
|
||||
{
|
||||
shown(this, ea);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue