[haiku-development] Re: Attaching notes to any open windows

  • From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 01 Apr 2009 20:22:14 +0200 CEST

Salvatore Benedetto <emitrax@xxxxxxxxx> wrote:
 ...
> It'd be nice to be able to have note's for
> example on your web browser window, or email
> client window, so that when you open it, you
> remember you had to do something.

I don´t know how to attach stuff to specific windows
in a persistent way, but at least it would be easy 
to create an application that can be set to do things
when you open that browser or email client the next time.
(BRoster::StartWatching()) Like show a popup or an alert. 

These could be placed over the app´s currently active
window, but there is little support, AFAIK, for having
it stay on top of the window, unless you make it stay
on top of everything. To move them together you might
have to ask the window for its location, continously,
via app scripting.

Or maybe its possible to cheat by listening to mouse 
events, comparing this with the active application
and its active window properties, and try to guess
if the user is moving the window. And then move the
note window with it. That migth work. Might save some
CPU, not having to ask the window for its position
continously.

/Jonas.


Other related posts: