Forms and windows...

From: Tito Serenti (serenti_at_operamail.com)
Date: 12/29/03


Date: Mon, 29 Dec 2003 21:30:57 -0000

Hi everyone,

I have 3 questions:

1). I'd like to ask, how can I bring to front and activate a single form of
an application, without bringing to front the rest of the forms that belong
to the application?
Namely, I have a post-it program that has several post-it forms visible. The
main form of the application is hidden, and the user communicates with the
application via an icon in the system tray. When I create a new post-it form
and activate it so I can type some text there, all the other forms get
brought to front as well. An entirely undesired effect; they're supposed to
stay posted on the desktop in the back. Any thoughts?

2). In the same application, when I create the first post-it window via the
menu in the system tray, the focus stays on the task-bar. When I click on
the new post-it form (thus activating the program), the following post-its
receive the focus fine. Only the first one doesn't. I tried an entire
spectrum of bring-to-front and set-active API functions, but without much
success. (I'm using RxTrayIcon)

3). When creating a new post-it form, I'm having a trouble bringing it to
front on Windows XP. I sort of solved the problem by setting the FormStyle
to fsStayOnTop before I show the form and then setting it to fsNormal, but
maybe there's a better solution? (Again, I tried every bring-to-front call I
could find...)

Thank you for your help.

Tito