Page 1 of 1

skin variables suggestion

Posted: 09 Feb 2007 18:51
by joethezombie
In another thread we were talking about user defined boolean variables. I have another suggestion:

- Include current window size (width and height) as variables sizeX and sizeY.
- Allow < and > operations for the visible attribute.

now, using something like visible="sizeX > 200" we can do some really interesting things like hide controls unless the window is large enough to display them.

Posted: 10 Feb 2007 00:25
by ipkiss
I'm not convinced by this one. This would only avoid displaying part of the control when it doesn't fit completely in the window. I think this is not a good behaviour for a GUI, because it doesn't leave any clue to the user that the window would have more controls if its size was increased...

Posted: 10 Feb 2007 00:32
by joethezombie
Fair enough...

A real world example of this would be the iTunes interface-- while in compact mode if one resizes the window small, the "media info" control disappears. I was looking for similar functionality. Ah well.