Create a popup with hdd space info Thread last updated on 2006-06-26 03:28:13

Posted by member 173795 on 2006-06-25 05:37:48

Hello again fellows!

I ones again need your help that im not sure of how to pull off or where to even start. I wanna hover/click a image and when i do then i wanna have a window just like a popup to apear with all the harddrives space info on. I kinda hope u get my point on how i want it, where do i start to make this reality?

Posted by member 148416 on 2006-06-25 06:28:13 link

You can create custom popups using xPopup.

*Popup "HDD" !new !popuphdd hdd

That would start your popup definition and point the 'look' of it to a popup named "hdd".

*Popup "HDD" !new !popuphdd xPopup

That would start your popup definition and point the 'look' of it to the default popup--your right-click menu.

Then after that you put in what you want to be displayed on the popup as far as contents. You can actually "hook" a xLabel into an xPopup, so you could make your label look/contain whatever you want, and the just slap it right into the popup.

The docs for hooking in xPopup are here:
http://www.xdocs.ls-universe.info/pie.php?xPopup#ModuleHook

So then after you get all that in there, finish up your popup definition with a quick:
*Popup ~new


Then you just display this popup with !popuphdd. You can call that bang when you press an xLabel 'button' or call it manually or whatever:
http://www.xdocs.ls-universe.info/pie.php?xPopup#Bangs

Basically, read over this:
http://www.xdocs.ls-universe.info/pie.php?xPopup

And this:
http://www.xdocs.ls-universe.info/pie.php?xLabel

Posted by member 173795 on 2006-06-25 07:05:06 link

hrm, you would not mind helping me write the whole code for it, would you ? =), i found out this tho [diskAvailable('drive', units)].

Posted by member 212670 on 2006-06-25 14:54:20 link

Just make your image hide/show a label that has the text you want.

If you want a more direct answer, show what you've already tried and then you'll get better help.

Posted by member 148416 on 2006-06-25 16:06:42 link

Yeh guess I took that word "popup" too literally.

You just need a simple label that startshidden (there's a setting for that) and that shows when you hit that button (look at events and bangs).

No I will not write it for you.

Posted by member 212670 on 2006-06-25 16:08:54 link

Using popup isn't a bad idea either. He could use the !info option. :)

Posted by member 173795 on 2006-06-26 03:28:13 link

well yes it should be rater easy to make just a label hide and show when i hover another label, thanks :)