View Single Post
  #1  
Old 06-20-2006, 03:03 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
addRow&GuiTextListCtrl

Hi,

well I'm creating a GuiTextListCtrl in a GuiWindowCtrl
then im creating rows with
NPC Code:

with(addRow(id,string)){
profile="GuiTextListEntryProfile";
useownprofile=true;
profile.fontcolor="255,0,0";
}


worked just fine now i only want some rows to be in color, i tried something like a switch
NPC Code:

if(condition)
profile.fontcolor="0,255,0";
else
profile.fontcolor="255,0,0";


didnt work, it was green and then went red after a sec...
i tried adding 2 rows with addRow with different profile.fontcolors, seems like it always takes over the last set color for all rows, so how do i only color specific rows?
Reply With Quote