PDA

View Full Version : how to display file properties when pointing to it?



ismee
01-10-2008, 01:39 AM
when user use cursor pointing the icon/button (not clicking)
it will display a small dialog to display the properties ,just like windows do.
"Size:1MB,name:1.txt"

how to do it?

nicoh
01-10-2008, 02:44 PM
You can use the OnMouseOver propiety.

Then, in the button OnMouseOver label you enter:


Image.SetVisible("Image1", true);

and on OnMouseOver


Image.SetVisible("Image1", false);

Also you must put on the page's OnPreload label:


Image.SetVisible("Image1", true);

PD: Image1 must have the propieties of the file


That is the short way, you also can make this with a TextLabel or a Paragraph, getting the propierties with some like "File.GetSize" and using the same visibility propierties like the image..

PD2: Apologize for my english :S