On 5/18/06, A.J. Venter <[EMAIL PROTECTED]> wrote:
You may well be right, although I have no idea how to do a borderless window.
My catch is I need this for a project due end of the month - so I'll help you
anyway I can :)
MyForm.BorderStyle := bsNone;
I think the start point should be a new unit, for the notification
form. The form should be fully code generated. What is a good name for
this unit? NotificationForm?
My idea is to have 4 areas on the form:
Title(TCaption) X button (TButton)
TImage Display Area(either a TCaption or a
custom control)
It could be implemented in such a way that if Title and X button are
disabled, then DisplayArea and TImage move to the top of the form. If
TImage is disabled, Display Area moves to the left. I'm not sure what
alignment properties to use here.
Also, should this window be created everytime it's shown? If not, then
it needs to be created at some point.
Also a system to have the display area contain either a caption or a
custom control needs to be created.
KDE just closes on click or after a timeout - no need for an X.
Ummm ... better to make it optional. I find it more confortable for
the user to see the X. It can be confused and not know how to close
the note immediately. Also Windows balloon has it, and they do a lot
of expensive usability researches =)
What I would suggest would be the coolest however is to make our window a
derivative of TIPiPRO htmlpanel.
Ummm ... better to allow adding any component you like. I don't want
to add any dependencies.
I wouldn't bother with much else right now, rounded windows may look pretty
but they are very hard to do without relying on stuff like X composite
extensions.
Yes, let's make it work. Latter someone can make it pretty.
Thanks
It would be nicer to have wole done in GTK2, but that is not urgent, I don't
need gtk2 for developing it.
Just tested latest subversion lazarus + trayicon. It's working normally.
Looking back, I think I should have written it on pure X11. This would
avoid many problems, like having to rewrite on gtk2, qt, reling on
Handles that can change their meaning in the future, etc. But now it
is working well, and Murphy says that if you change something that is
working, it will stop working =)
--
Felipe Monteiro de Carvalho
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives