Contents | Index | < Browse | Browse >
WINBACKGROUND SOLID|PATTERN|ICON|IMAGE APen|IconName BPen
This command allows you to have nice backgrounds for your window and
you can thank Michael Van Elst for giving me the needed backfill hook
code for it.
The background used can be :
SOLID : A Solid color which will be of color APen.
- ex : WinBackground SOLID 3 0
Here the last argument (0) is disregarded.
PATTERN : A Hash pattern made up of 2 colors.
- ex : WinBackground PATTERN 3 1
Here, the background is a pattern made up of colors No 3 and 1
ICON : An Icon which will be tiled to the background of your window.
- ex : WinBackground ICON DF0:MyIcon 0
Here, again, the last argument is disregarded.
The 2nd argument is the full path & name of the icon, without
the .info extension.
IMAGE : An image, which *MUST* have already been loaded with the
LOADIMAGE command, will be tiled to your windows background.
- ex : WinBackground IMAGE ImageAlias(name) 0
The loading of the image can be done in the xONLOAD event,
before you have opened the window, so its there, loaded
and ready to be used when the window opens.
NOTE :
The GadTools library was not designed to be used with colored
backgrounds, so some gadgets (such as listviews or text-in gadgets)
have parts of them which should (if this was a perfect world) have
been blanked out by GadTools, instead filled in with the BackGround
you give.
As I said.. it's not a perfect world..