datetime with popup2 and desktop2 Thread last updated on 2005-12-28 05:55:03

Posted by member 130127 on 2005-12-24 06:38:45

is it possible to assign datetime to the left mouse button?
this is what i have tried:

*Desktop LButton !Popup "Time: %H:%M.%S" !DateTime

and some variations with quotes...

it only shows me the normal popup. what i have done wrong?
any help would be great.

thanx.

Posted by member 12025 on 2005-12-24 08:00:11 link

You can't do that. What you need to do is make a label that uses similar settings for looks to the popup (or several labels, but one 'main' label container, at the least), with the time for text.

Then, set its action for losing focus to close itself.
Finally, set the desktop action to show it. It will then look and act like a popup

Posted by member 130127 on 2005-12-24 08:15:13 link

thanx i will try that... ;-)

Posted by member 212670 on 2005-12-24 13:54:15 link

Wouldn't it be easier to just use xpopup's !info? Like create a new popup with *Popup !Info "[time]" in it?

Posted by member 12025 on 2005-12-24 15:36:56 link

...or you could do that, like xcal said, and save time and effort. :)

Posted by member 562 on 2005-12-25 03:47:00 link

of course you can do it without using a label and/or x-modules:
*Popup !New !clock
*Popup "%H:%M:%S" !DateTime
*Popup ~New
*Desktop LButton !clock

Posted by member 130127 on 2005-12-27 12:20:26 link

sorry for the delay (busy xmas) ;-)

i tried ceeslans hint and it works fine for me.
this leads me to another question: is it possible to get the clock popup pinned like: PopupTasksStartPinned?
replies would be great and of course thanx guys.

Posted by member 212670 on 2005-12-27 14:14:53 link

Don't think you can with Popup2. I know if you drag a sub item it will automatically pin. Don't think it works on parents, though.

xPopup supports pinning any popup on start.

Posted by member 130127 on 2005-12-27 14:59:16 link

thanks xcal but the theme is for use with a win95 system. therefore im using an old lsbuilt around 2001 with hopefully less usage of systemresources. so i guess x-modules wont work. :-(
furthermore im currently testing the dynamic of the left datetime and im not sure to keep it. just wanted to know if its possible.
so if it is pinnable, please tell me.

Posted by member 12025 on 2005-12-27 16:19:11 link

!popupname pin

Posted by member 212670 on 2005-12-27 17:34:58 link

Ahh right. You could do something like

NetLoadModuleOnLoad !popupname pin

if you're not using mzscript/lslua, and you want it pinned on startup, too.

Btw, newer Litestep builds may actually run better. Also, the xmodules seem ok on Win9x. I think it's just an issue with true transparencies. Also, .editbox doesn't look right.

Posted by member 130127 on 2005-12-28 05:55:03 link

i tried it but it didnt work. perhaps it depends on the old release.
(i cant switch to a newer built because im using grdTray3 which i really like. ;-) )
but its ok, so thanx for your time.