Re: Weird colors
"Marianne" <[email protected]>
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <[email protected]> |
Hi Fer Hope it is going well. I do have the same problem. This must be a Windows 7 issue. The colours on WindowsXP and Windows 7 are different. One place where one can see it easily is with owner drawn list views. When I run the program from the gui then it is not that bad, but if I make an executable (also bundled) then the selected column is so dark on Windows 7 that one cannot see any information. I therefore have to use the LVcolours gui to change every thing to a very light colour, usually white. I think I just mention this to you except if I am missing something. Regards. Frans --- In [email protected], "Fer" <fmstoopman@...> wrote: > > > Hi Dimitris, > > > Some colors show weird results when used as attribute color for > textboxes. When I use the same colors in image rectangles then > everything is OK. See example: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > G4C WeirdColors > > xonload > loadfont 'arial/10' war10 > c = "35/27/229-35/26/127-35/130/28-35/228/26-35/29/24-35/21/81-34/27/29" > parsevar c "-" > for i 0 6 > c$i = $$parse.$i > if $i = 6; txt = OK; else; txt = Wrong; endif > tb = "xtextbox $($i * 100 + 20) -60 90 40 ''\nID tb$i\n" > tb = "$tb\Attr color 0/0/0/$c$i\nattr title 'tc/$c$i $txt'" > addcode #this "$tb" > endfor > image create wbg 750 200; image color 231 231 245 //Win 7 background > for i 0 6 > image back $c$i; image rect $($i * 100 + 20) 50 90 40 //5/5 > image font war10; image text $($i * 100 + 25) 30 90 40 "Col:$c$i" > endfor > image text 25 10 750 20 "Examples of colored rectangles using image > commands:" > image text 20 105 750 20 "Result when applying the same colors on > textboxes:" > guiopen #this > > xonclose > image free wbg; freefont war10 > guiquit #this > > window #center #center 750 200 "Weird colors" > winattr background image wbg > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Strangely this only occurs when the R-value is 35. This happens on Win7 > and Vista. I cannot test it on XP anymore. Could it be a bug or maybe > another Windows weirdness?? > > > > Fer > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gui4cli/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/gui4cli/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/