by
Allistar Melville >> Mon, 20 Oct 2003 21:26:40 GMT
Note that you can in a script change the backColor property of forms, but there are some caveats. Firstly you still have to open and save the form in the painter after running the script. Also this is probably not officially endorsed or supported but we have used this ability to change all labels in our product to transparent (imagine doing that by hand when there are over 17,000 of them).
Alternatively change the backColor on each form explicitely on the load event. If all of your forms are subclassed from a common form this is even easier.
It would seem to make more sense to me if you used transparency in your images. Using the .png format you have access to the alpha channel so you can make portions of the image transparent. This would allow your images to look ok no matter what the operating system does with the form colours. I am unsure whether JADE fully supports transparency of pngs, or whether it is a hacked version like that in Internet Explorer which only (unfortunately) supports full or no transparency, and not the various levels of translucency that you can do in more advanced browsers.
Regards,
Allistar.
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst
allistar@silvermoon.co.nz
Auckland, NEW ZEALAND
Silvermoon Software
Specialising in JADE development and consulting
Visit us at:
http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at:
www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------