home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 7,910 of 9,834   
   Jim Moseley to All   
   Fonts & Colors   
   10 Nov 06 17:00:14   
   
   From: jmose@mapson.attglobal.net   
      
   Greetings   
      
   Is there an easy way to determine whether a uiObject's color is too dark   
   to use font.color=black, and instead replace it with font.color=white?   
      
   If I check each rgb() value, what would the breaking point be?  Or should   
   I add then together (red+green+blue > x)?  Or does someone have a better   
   solution?   
      
   Thanks,   
   Jim Moseley   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca