1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Make popup notifications go into foreground

This commit is contained in:
chylex 2016-04-11 21:13:37 +02:00
parent b3c5c3caa0
commit 69dcfe17a7
2 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public FormBrowser(){
Controls.Add(browser);
notification = new FormNotification(this,true);
notification.Show(this);
notification.Show();
}
protected override void WndProc(ref Message m){

View File

@ -22,6 +22,8 @@ public FormNotification(Form owner, bool autoHide){
this.owner = owner;
this.autoHide = autoHide;
owner.FormClosed += (sender, args) => Close();
browser = new ChromiumWebBrowser("about:blank"){ MenuHandler = new MenuHandlerEmpty() };
panelBrowser.Controls.Add(browser);
}
@ -54,6 +56,7 @@ public void ShowNotificationForSettings(bool resetAnimation){
public void HideNotification(){
browser.LoadHtml("","about:blank");
Location = new Point(32000,32000);
TopMost = false;
timerProgress.Stop();
}
@ -107,6 +110,8 @@ private void MoveToVisibleLocation(){
Location = config.CustomNotificationPosition;
break;
}
TopMost = true;
}
private void timerHideProgress_Tick(object sender, EventArgs e){