[comp.sys.mac.programmer] Windoid & Palette Manager saga

mpradhan@f.adelaide.edu.au (03/06/91)

 Hi, I could use some words of advice on how to maintain a floating
windoid and use the palette manager.

 I am using TCL and Think C 4.0.2 in which I make use of a tear off
menu/ floating windoid. The problem arises when I load up my colour
PICT file and create a palette. The Palette Manager examines the 
front window and installs the palette's colours when it changes.
The floating windoid is always in front so the colour PICTs don't
get their proper colours installed. When the windoid is not visible
it is still the front window but hidden off screen, so it still 
stuffs things up.
 My hack has been to remove the close box from the windoid so it
hangs there all the time and attach palettes to it when a normal
window becomes active. It works, but its not neat.
 HyperCard 2.0 doesn't have this problem but then I think it
fiddles the FrontWindow trap, PhotoShop interestingly enough has
a floating palette that hangs around all the time too!
 Any suggestions? Any help is appreciated.
 On a slightly separate issue has anyone had trouble getting the
GWorld traps to work with System 6.0.7. On NewGWorld I keep getting
back a nil pointer, no error and the memory seems to be allocated!
I don't know why it doesn't return a handle to me!

 Thanks in advance
 Regards,
 Malcolm

_________________________________________________________________
    Malcolm Pradhan                               _--_|\
    Medical Computing, Faculty of Medicine       /      \
    University of Adelaide, South Australia      \_.--._/
    InterNet: mpradhan@f.adelaide.edu.au               v
    Fax: + 618 223 2076