Dec 16, 2003 #1 lolo327 Programmer Joined Nov 25, 2003 Messages 14 Location GB Hello all, I have to change the font.face and font.charset of a datawindow (grid). But, when I change the property, it is done for the entire column and I want it line per line (and not all lines). How is it possible ? Thx
Hello all, I have to change the font.face and font.charset of a datawindow (grid). But, when I change the property, it is done for the entire column and I want it line per line (and not all lines). How is it possible ? Thx
Dec 16, 2003 #2 TheGreenOne Programmer Joined Jan 11, 2003 Messages 56 Location US If you want the font to be different for for each row you can put an expression in the font.face property. Current row Arial: Code: dw_1.modify("columnname.Font.face=~"~tif(getrow()=currentrow(),'Arial','Courier')~"") Based on value: Code: dw_1.modify("columnname.Font.face=~"~t if(columnname='value','Arial','Courier')~"") I don't know a way to do it for the whole row, I think you have to do it for each column individually. Upvote 0 Downvote
If you want the font to be different for for each row you can put an expression in the font.face property. Current row Arial: Code: dw_1.modify("columnname.Font.face=~"~tif(getrow()=currentrow(),'Arial','Courier')~"") Based on value: Code: dw_1.modify("columnname.Font.face=~"~t if(columnname='value','Arial','Courier')~"") I don't know a way to do it for the whole row, I think you have to do it for each column individually.
Dec 17, 2003 Thread starter #3 lolo327 Programmer Joined Nov 25, 2003 Messages 14 Location GB It works fine, thanks I work with unicode Database (for Greek, ...). I have tried to do the same with the Charset but it returns an error. Does anyone have an idea ? Thanks Upvote 0 Downvote
It works fine, thanks I work with unicode Database (for Greek, ...). I have tried to do the same with the Charset but it returns an error. Does anyone have an idea ? Thanks