[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Think I found a bug in the List Manager



I've been having problems trying to use a rCtlColorTbl resource with a list
control resource. It seems as though the color res. is being ignored. 

Determined to keep my sanity, I decided to check things out very 
carefully so I pulled out my trusty NiftyList/GSBug combo and hunkered down.

First, I figured out the location of the list manager's ctl def proc. using
GetListDefProc (of course! :)  Now I set out to trace each one of the def.
calls as they were encountered.

Everything went OK until the drawCtl routine ($0000) got going. It seems as
though it assumes any value other than 0, in the ctlColor field of the List
control is a valid POINTER to a color table. IT TOTALLY IGNORED MY COLOR
RESOURCE. I don't think it even checked the color resource flag in moreFlags.

Could someone else double check these findings, just to be sure I'm not 
wrong :)

BTW, think I found the correct format for the List color table. It should be:
   word - $000v   -- frame color
   word - $000w   -- foregnd text when not hilited
   word - $000x   -- foregnd text when hilited
   word - $000y   -- bkgnd text when not hilited
   word - $000z   -- bkgnd text when hilited

TB Ref. 1 has all that info EXCEPT the formatting.

  -- John Mills
===================================
INet: mills@Max.EE.LSU.Edu (pref)
GEnie: J.MILLS11