On 10/19/06, Chad Crabtree <[EMAIL PROTECTED]> wrote:
I would like to change the icon that shows up on the on the upper left of
the form.
self.form1.icon := TIcon
afaik
It will change the icon on run time ...
It would be cooler still if the icon showed up over the
executable. I know this can not be done design time (quite a shame) so I
tried to do it pragmatically. With no success.
There are few ways to do it, the first one, that is the easiest way,
is to use a form without a border that all it does it to display the
image.
Other options are to draw outside your form, but that is a bit
problematic, and it is a gui sensitive issue. For example, in
Microsoft Windows, you can get the canvas handle of the desktop and
draw it in the desktop (I do not know if it will be drawn also over
another window in the background, and that's a big problem). On
xserver based GUI, everything is a window, including your title, so
there are ways to hack that... but it's very platform/gui dependant
issue.
Could someone give me a clue. I don't understand what is needed from
TBitmap to create it. Or what the TBitmap.createfromintfimg function needs.
Basically I'm thinking
self.form1.Icon:={a tbitmap instance}
This isn't a show stopper obviously but it bothers me, that I can't figure
it out.
Ido
--
http://ik.homelinux.org/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives