[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: IUP oddity
- From: "Antonio Scuri" <scuri@...>
- Date: Sun, 18 Oct 2009 19:36:25 -0200
IupTree is the only control that the NAME attribute does not work. This happens because we kept backward compatibility with IUP 2. The IupTree originally had an attribute called NAME, it was renamed to TITLE but until old application are not updated we have to keep NAME working.
I should have added a comment in the IupTree documentation, but I did only in the History page. Sorry.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:lua-
> email@example.com] On Behalf Of David Given
> Sent: domingo, 18 de outubro de 2009 12:41
> To: Lua list
> Subject: IUP oddity
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> I'm having some trouble with IUP 3.0RC3 on GTK.
> When I run this:
> - ---snip---
> require "iuplua"
> local d = iup.dialog
> name = "tree",
> expand = "YES"
> print(iup.GetDialogChild(d, "tree"))
> if (not iup.MainLoopLevel or iup.MainLoopLevel()==0) then
> - ---snip---
> ...I would *expect* to get a valid IUP handle printed to stdout, and
> a window containing an empty tree. What I *get* is 'nil' and a tree
> containing a single node, labelled 'tree'.
> This doesn't seem to correspond with what the documentation is telling
> me --- can anyone enlighten?
> - --
> ┌─── ｄｇ＠ｃｏｗｌａｒｋ．ｃｏｍ ───── http://www.cowlark.com ─────
> │ "People who think they know everything really annoy those of us who
> │ know we don't." --- Bjarne Stroustrup
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----