New topic: 

color color

<http://forums.realsoftware.com/viewtopic.php?t=47036>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        oxae          Post subject: color colorPosted: Fri Feb 22, 2013 
2:09 pm                         
Joined: Fri Feb 22, 2013 2:06 pm
Posts: 1                Hi,
When using the IDE with a dark background, the color elements &cxxxxxx are 
unreadable, is there a way to change that ?   
                             Top                doofus          Post subject: 
Re: color colorPosted: Fri Feb 22, 2013 5:17 pm                                 
Joined: Thu Sep 10, 2009 2:50 am
Posts: 354
Location: Santa Cruz, CA, USA                I don't think so. A workaround is 
to create a function like...

Function ampc(s As String) As Color
  return RGB(Val("&h"+s.Mid(1,2)), Val("&h"+s.Mid(3,2)), Val("&h"+s.Mid(5,2)))
End Function


hmm, could be better. but then call it like

dim c As Color = ampc("FF00FF")   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to