If you do for instance:
IupSetAttributeHandle(ih, IMAGE, ih_image)
Then:
char* value = IupGetAttribute(ih, IMAGE);
value contains the internal name used to associate the ih_image handle
to the attribute. Because the call above does in fact:
IupSetHandle + IupSetAttribute
So you can use IupGetAttributeHandle or IupGetAttribute + IupGetHandle.
This could explain the differences in the returned values you mentioned.
And, no, the image is not copied internally only a reference to its handle
is stored.
Best,
Scuri
From: Robert Persson [mailto:[email protected]]
Sent: terça-feira, 20 de novembro de 2012 07:39
To: IUP discussion list.
Subject: [Iup-users] IMAGE copy?
I have a question about when setting the IMAGE, IMPRESS etc. attributes.
After setting one of thoose attributes, querying the same attribute returns
a diffren Ihandle* than the one set. Is this because the image object is
copied? If so, is it safe to assume the image is always copied?
/Robert
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users