[Iup-users] A problem with IupMatrix

Pierrick Varin Pierrick0.Varin at laposte.net
Thu May 1 07:41:47 GMT+2 2008


Hi !

Concerning the unended quotes in the TITLE attribute, I changed it some 
minutes after posting the message on the forum. You're right, it should be :

IupSetAttributes(mainDlg,"TITLE=""Listing ["+List.FileName+"]""")

I'm using more quotes for IUP to accept spaces in the attribute. But 
i'll try to change all these IupSetAttributeS to IupStoreAttribute or at 
least IupSetAttribute.
And the same with IupMatStoreAttribute. Freebasic accepts all those 
functions but IupSetAttributes was fine for me :p I'll change that and 
see if it changes something :)

Your answer was concrete :) It gave me a direction, something to do (it 
makes 4/5 days I don't do anything on this code excepted looking to the 
lines without seeing anything .. lol)

Thanks !

Jeremy Cowgar a écrit :
> I've never used FreeBasic, but use IupMatrix all the time w/no problems.
> I use it both in C and in Euphoria. I did notice it looks like you have
> an unended " in the TITLE?
>
> IupSetAttributes(mainDlg,"TITLE=""Listing ["+List.FileName+"]")
>
> I am not sure how FreeBasic works, but is "" a begining quote? I do not
> then, see an ending quote. Again, have no idea if this means anything.
> Also, if your just setting 1 attribute, you can use (in C at least):
>
> IupStoreAttribute(mainDlg, "TITLE", "Listing [" + List.FileName + "]")
>
> The same thing for your NUMLIN. In C, we also have:
>
> IupMatStoreAttribute(Cells, "", Row, Col, "Value")
>
> Which might simplify your code further.
>
> In any coding, when I have a problem I cannot explain, I start
> simplifying as much as I can, hopefully the problem will disappear
> during one change, then I can figure it out, or other times I simply so
> much that the problem becomes very apparent.
>
> Sorry I could offer no concrete answer. But I do use IupMatrix all the
> time in some pretty heavily used applications w/no problem.
>
> Jeremy
>
>
> _______________________________________________
> iup-users mailing list
> iup-users at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
>
>
>   




More information about the iup-users mailing list