Hi guys

I've tried several ways but haven't been able to get it to work, but I want the text to be in focus when I open the dialog box

Code
alias focus { dialog -m focus focus }

dialog focus {
  title "Dialog focus the text"
  icon $mircexe,0
  option pixels
  size -1 -1 306 76
  edit "", 1, 8 12 290 21, autohs
  button "&OK", 2, 142 43 76 23, ok default
  button "&Cancel", 3, 223 43 76 23, cancel
}
on *:dialog:focus:*:*:{
  if ($devent == init) { did -a $dname 1 Focus the text }
}

When you open the dialog, it shows this:

[Linked Image from i.ibb.co]

And I intend that when it opens, it appear like this:

[Linked Image from i.ibb.co]

I already tried using did -f but it still didn't work.

I would appreciate it if someone could find the solution wink


TECO
irc.PTirc.org (Co-Admin)