ok...here's a combination of my code that works and the code that you started with..I've changed my code to use the ID and dialog name from your original post
Code:
  dialog setup {
  title "My Idle Time"
  size -1 -1 60 20
  option dbu
  edit "", 33, 5 5 50 10, read
  button "Button", 999, 5 3 37 12, hide default ok cancel
}
menu * {
  &My Idle Time : dialog -m setup setup
}
on *:dialog:setup:init:*:{
.timeridle 0 1 did -ra $dname 33 $duration($idle)
}
 

You'll have to make appropriate changes to your actual code so that the item shows up in the correct location. If you already have an OK and/or Cancel buttons, then you can delete the button that's in the above code.

If you've written a mega huge script already, you should have no problems incorporating what I have above into your code.

Last edited by RusselB; 20/02/06 11:47 PM.