mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-30 23:00:18 -05:00
Changed Tray behavior.
This commit is contained in:
parent
ebf4b496d6
commit
f1587b0209
@ -2471,7 +2471,7 @@ object Form1: TForm1
|
||||
00000000000000000000
|
||||
}
|
||||
Visible = True
|
||||
OnClick = NoTray
|
||||
OnClick = MTrayIconClick
|
||||
left = 528
|
||||
top = 104
|
||||
end
|
||||
|
@ -285,12 +285,12 @@ type
|
||||
procedure MenuItemTabCloseClick(Sender: TObject);
|
||||
procedure MenuItemTabCloseOthersClick(Sender: TObject);
|
||||
procedure MenuItemFunctionListClick(Sender: TObject);
|
||||
procedure MTrayIconClick(Sender: TObject);
|
||||
procedure NewsTimerTimer(Sender: TObject);
|
||||
procedure OnLinePSScript(Sender: TObject);
|
||||
procedure ButtonPickClick(Sender: TObject);
|
||||
procedure ButtonSelectorDown(Sender: TObject; Button: TMouseButton;
|
||||
Shift: TShiftState; X, Y: Integer);
|
||||
procedure NoTray(Sender: TObject);
|
||||
procedure PageControl1Change(Sender: TObject);
|
||||
procedure ButtonTrayClick(Sender: TObject);
|
||||
procedure PageControl1Changing(Sender: TObject; var AllowChange: Boolean);
|
||||
@ -2337,6 +2337,13 @@ begin
|
||||
FunctionListShown(not MenuItemFunctionList.Checked);
|
||||
end;
|
||||
|
||||
procedure TForm1.MTrayIconClick(Sender: TObject);
|
||||
begin
|
||||
self.Show;
|
||||
if Self.CanFocus then
|
||||
self.SetFocus;
|
||||
end;
|
||||
|
||||
function TForm1.GetSimbaNews: String;
|
||||
var
|
||||
t: TDownloadThread;
|
||||
@ -2404,14 +2411,6 @@ begin
|
||||
FormWritelnEx('New window: ' + IntToStr(Selector.LastPick));
|
||||
end;
|
||||
|
||||
procedure TForm1.NoTray(Sender: TObject);
|
||||
begin
|
||||
if Not Form1.IsVisible then
|
||||
Self.MenuItemShowClick(Sender)
|
||||
else
|
||||
Form1.Hide;
|
||||
end;
|
||||
|
||||
procedure TForm1.PageControl1Change(Sender: TObject);
|
||||
begin
|
||||
RefreshTab();
|
||||
|
Loading…
Reference in New Issue
Block a user