Hi list,

I have a problem hard to understand (for me), and hard to explain.
I am writing a win32 application to let me quickly open files and
folders; i'm going to place it in the quick launch bar near "start",
so that with one click I get the (XML configurable) list of objects.
I do not show the main form, but only the popup menu, right there
where I clicked.
If I can click something on the list, a TProcess will take care of
opening that file.
If I do not click anything within 5 seconds or if I click somewhere
else, the application shall close itself.

The main problem is this:
- if I hoover with the mouse on one of the objects shown on the popup
without clicking, after 5 seconds the application closes correctly
- if I hoover somewhere else (for example on "Cancel", using my
attached example) without clicking, the popup closes, but the
application does not. And then I have to kill the process.

What I really do not understand is that I can get it to work, i.e.
application closing, only by adding the lines

//**** here is the trick
      showmessage('Timed out');
  //**** end of the trick

that you can see in the UnitMain.pas

Can anyone explain me this behaviour? Besides, what is the right way
to have the application close itself after the popup.close(), without
the trick?

Thanks a lot,

  Roberto

Attachment: UnitMain.pas
Description: Binary data

Attachment: TryPopup.lpi
Description: Binary data

Attachment: TryPopup.lpr
Description: Binary data

Attachment: UnitMain.lfm
Description: Binary data

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to