ID:109231
 
Resolved
Trying to use winget() to get the read-only "id" parameter did not work. This now returns the control's name. It does not return the full window.control version of the name.
BYOND Version:479
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Firefox 4.0
Applies to:Dream Seeker
Status: Resolved (480)

This issue has been resolved.
Descriptive Problem Summary: In the table provided in the skin reference that comes with 479 and some earlier versions, 'id' is listed as a valid read-only property of all controls, but you can not actually winget() it.

Numbered Steps to Reproduce Problem:
1.) Load up a new environment with a new interface left with default stuff.
2.) Try the following code.

Code Snippet (if applicable) to Reproduce Problem:
mob/Login()
..()
winget(src, "default", "id")


Expected Results:
winget() to return the 'id' property of 'default' ('default').

Actual Results:
winget: Parameter default.id not found.

Does the problem occur:
Every time? Or how often? Every time.
In other games? Yeah.
On other computers? Yeah.
That makes no sense, if you just did winget(src, "default", "id"), you obviously knew what the id was, what would be the point if the second parameter is id and you want to find out what the id is, seems like a paradox.
You can use a wildcard after the window name to get a property from all controls.

winget(src, "mydynamicwindow.*", "id")

What I was aiming for was a list of all of the controls on 'mydynamicwindow'- what I got was that 'id' was not found, even though the reference lists it as a read-only property.