<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2021/02/22 10:52, Juha Manninen via
      lazarus wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPN1EhBWZAeaMay_tLaMDCXEX0hDXT-nHQ7RK5xtPYfOvKRv4w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div class="gmail_quote"><br>
                                      <div>Yes, in Windows terminology
                                        bringing to front means blinking
                                        an icon in Taskbar.</div>
                                      <div>A Lazarus user however wants
                                        to see the help window right
                                        after pressing F1.</div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>YES, this is very important.</p>
    <p>I am not looking to weigh in on the issue of how Lazarus help
      works, but I can say something about Windows and the next
      comment:.</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAPN1EhBWZAeaMay_tLaMDCXEX0hDXT-nHQ7RK5xtPYfOvKRv4w@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div class="gmail_quote">
                                      <div><br>
                                      </div>
                                      The name is not
                                      BlinkAnIconInTaskbar().
                                      <div>If you know how to fix it,
                                        please do. I don't use Windows
                                        much myself. Does this idea go
                                        against some Windows convention?<br>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>Blinking and Bringing to Front are two very distinct ideas in
      Windows and two different use-cases, though they often coincide.
      If I recall the Microsoft discussions correctly, the idea wasn't
      to ever blink when a user clicks the application into the
      foreground, or for instance pulls up the Help. Blinking the
      taskbar was only to be done if your application is *in the
      Background* AND something happens that is important for which you
      need to grab the User's attention towards it. (If your program is
      in the foreground/focused, you have carte-blanche on how to flash
      it or grab attention and don't need a flickering taskbar icon
      specifically, though *also* doing it isn't a sin)<br>
    </p>
    <p>The event that lead to you needing to blink the taskbar icon may
      well also require bringing to front, but it might also not (the
      judgement is left up to the software designer).<br>
    </p>
    <p>A good example is the Lazarus IDE after a debug session in
      Windows. After running your program (i.e. once your program
      terminates) Lazarus will both pop to front *and* flash the taskbar
      icon IF, and only IF, the debugged program was the focused desktop
      window. If I switch to any other program while the debugged
      program was running (pushing more apps onto the "focus" stack of
      the desktrop manager), Lazarus correctly does not "steal" the
      focus back by popping to front, but it does still flash the
      taskbar icon to make the user aware.</p>
    <p>With the above in mind, I'd say when the user press F1 (or invoke
      help in any way) there should be a help window popping up/to
      front/focusing/etc, but no need for any blinking. The user
      KNOWS/EXPECTS what is coming, no need to try and draw their
      attention to it.</p>
    <p>A final note: Lots of Windows users HATE taskbar icons blinking,
      they turn it off. (Just search google on how to turn it off, you
      will find oodles of hate rants).<br>
    </p>
    <p><br>
    </p>
    <p>For more info, see: <br>
<a class="moz-txt-link-freetext" href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-flashwindowex">https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-flashwindowex</a><br>
      <br>
      <br>
    </p>
    Cheers,<br>
    <p>Ryan</p>
    <p><br>
    </p>
  </body>
</html>