ExtendedBorders and TrayIcon Root › Technical support › Troubleshooting This topic has 5 replies, 4 voices, and was last updated 10 years, 7 months ago by minou. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts March 23, 2014 at 10:31 am #36084 minouParticipant I think that there is a mistake during the following procedure Code: TrayIcon1.Visible := False; Form1.Show; WindowState := wsNormal; Application.BringToFront(); if ReadString_ini('setting','ClockStatus','1')='1'then AnalogClock1.Active:=True else AnalogClock1.Active:=False; Happens if not disable (sSkinManager1.ExtendedBorders) version 8.41 Delphi XE3 After some changes became work March 23, 2014 at 8:00 pm #51734 StertorParticipant Это не относится к вашей имеющейся проблеме, но посмотрите на этот: Code: if ReadString_ini('setting','ClockStatus','1')='1'then не лучше ли будет, эта функция была бы вызвана 1 раз – при старте/запуске приложения? Значение, которое вернет функция, будет сохранено в переменной, из которой потом может быть считано. Это сделает ваш код быстрее. March 30, 2014 at 8:13 am #51771 SupportKeymaster Hello, minou I tried to repeat an issue, but without success. Could you give me a demo with this issue, please? April 7, 2014 at 4:29 pm #51793 minouParticipant now it is freezing Code: TrayIcon1.Visible:=False; Form1.Show; Application.BringToFront // << here April 8, 2014 at 2:52 pm #51794 CheshireCatParticipant Hello minou, please try this in your OnClick event: Code: procedure TForm1.TrayIcon1Click(Sender: TObject); begin TrayIcon1.Visible := False; Application.Restore; Application.BringToFront; Form1.Show; end; April 9, 2014 at 2:03 pm #51797 minouParticipant 'CheshireCat' wrote: Hello minou, please try this in your OnClick event: Code: procedure TForm1.TrayIcon1Click(Sender: TObject); begin TrayIcon1.Visible := False; Application.Restore; Application.BringToFront; Form1.Show; end; work fine Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Technical support › Troubleshooting