Hello, While creating a programmatic language binding for IUP using the Internal SDK, I ran into a case where some containers include a canvas as part of the Iclass childcount. I was hoping to use childtype as a way to determine whether the language binding should accept a single child, list of children or some fixed number of children as argument lists, but I'll be off-by-one in some cases where IUP provides a canvas.
e.g. in C: Ihandle* IupSbox(Ihandle* child); i.e. 1 child But childtype = IUP_CHILDMANY+2; /* canvas+child */ i.e. 2 children I can special-case these, but I was looking for a more robust way for the programmatic language binding. Is there some other way to deduce the maximum number of "user-provided" children? I had started looking into Iclass's format field (used by LED, it seems)... Is that my best bet? Thanks, Matt _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users