iupmatrixformatattrib1  db ',%i:%i="%s"',0
iupmatrixformatattrib2  db '%i:%i="%s"',0

proc iupmatrix_formatattrib lns, col, straddr
; 
------------------------------------------------------------------------------------------------------------------------
        .if [col] <> 1
                cinvoke 
wsprintf,[matheaplns],iupmatrixformatattrib1,[lns],[col],[straddr]
        .elseif
                cinvoke 
wsprintf,[matheaplns],iupmatrixformatattrib2,[lns],[col],[straddr]
        .endif
        ret
endp

i will put a "," if the col is not 1, then write to buffer

so 1 col 4:1="4"
2nd col = ,4:2="Ac"er"
3rd col = ,4:3="8.7"
4th col = ,4:4="9983877"

then if i detect LF (line feed),
i will do a

IupSetAttributes 4:1="4",4:2="Ac"er",4:3="8.7",4:4="9983877"


but the output on matrix control is ------------------------- er"
i tried to escape the quote with \ but why it still doesn't works? my
weird code..

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to