DRAWING

Use custom colours for windows

Table de couleurs personnalisée

There are 3 possibilities:
1/ the easiest - you want to apply the color scheme to ALL the windows in your app.
2/ the middling - you are not using PG and and not using FB windows, just growing your own in the toolbox
3/ the hardest - not 1 nor 2.

Heregoes:
1/ create a window 'WIND' in resEdit, make it a color window, attach all the fancy colors you want now, save and close all the windows.
reopen and wipeout the WIND ressource
select the 'wctb' resource and set its ID to zero, using Get Info.
save and quit.
FYI: a wctb of ID 0 will color by default all the windows of your app - however not while you run it interactively in FB.
You'll have to compile and run outside of FB to see the effect.

2/ Proceed as for 1. Except of course you can design your window
in resEdit, attach the 'wctb' and then call it with FN NEWCWINDOW.
Of course, you can't use FB edit fields and btns in the window as it is not an FB window.
See provisos in 1/ about visualising the effects of the 'wctb'

3/ There is a routine in the FB examples that allows you to use a 'WIND' resource to create a window, but this window can be then used as a standard FB window, with all the FB dressing.
So proceed as for 2/, then call this routine to make your window.
See provisos in 1/ about visualising the effects of the 'wctb'