I'm not sure what your problem was if the default behavior already worked. If it doesn't, please provide a simple test script to reproduce the problem for dicussion.
focuspolicy can be googled using qt::focuspolicy which should lead to qt official documentation. Пт, 09 авг 2013, Tom Arneson писал(а): > Bill, > > > > I don't find a wd 'set id focuspolicy policy' NB. policy is either click, > no, strong or tab command in demo > controls. > > > > if set focuspolicy is used, then it does effect moving to a control with the > tab key, but this is getting away from what I want to do. > > > > I want the button with focus to activate, or run its code when the enter key > is pushed. In other words to have the same behavior as when it's > left-clicked. > > > > http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Command%20Reference is > what I'm trying to use to learn the new JQt wd system, but it is a bit sparse > and requires a lot of experimentation. Some things don't seem to work at all. > > > > Can we have an explanation on the effects of the 4 policies: click, no, > strong or tab? > > > > Thank you > > > > > > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of bill lam > Sent: Thursday, August 08, 2013 21:08 > To: [email protected] > Subject: Re: [Jbeta] Qt wd button > > > > Without knowing what VXMAINFORM is, your test script cannot run. > > > > But if I try qt demo > controls, tab key can move focus to the bottom buttons. > > > > Чт, 08 авг 2013, Tom Arneson писал(а): > > > Bill, > > > > > > Sorry for the delay replying. I tried all options of wd 'set id > > focuspolicy' and none did what I wanted. When I used click or no, the tab > > key wouldn't move focus to that button. > > > > > > NB. --------------------------------------------------------- > > > vxmainform_run=: 3 : 0 > > > wd VXMAINFORM > > > NB. initialize form here > > > wd 'setcaption timestamp *',6!:0 'hh:mm:ss' > > > NB. try focuspolicy on 2013-08-02 in response to message from Bill Lam > > > NB. strong didn't seem to do anything, try click > > > NB. when set to click, tab wouldn't move to button, try no > > > wd 'set getnew focuspolicy tab' > > > wd 'set getnew focus' > > > wd 'set selftrade enable 0' > > > wd 'set processnew enable 0' > > > wd 'pshow;' > > > ) > > > > > > -----Original Message----- > > > From: <mailto:[email protected]> > > [email protected] > > > [ <mailto:[email protected]> > > mailto:[email protected]] On Behalf Of bill lam > > > Sent: Thursday, August 01, 2013 20:08 > > > To: <mailto:[email protected]> [email protected] > > > Subject: Re: [Jbeta] Qt wd button > > > > > > I think so. Can you try strong and tell us if it will works? > > > > > > Чт, 01 авг 2013, Tom Arneson писал(а): > > > > I want a button, which has focus, to run its code when the Enter key > > > > is pressed. I thought this worked under J6xx wd. > > > > > > > > > > > > > > > > Is focuspolicy something that would do this? > > > > > > > > > > > > > > > > From wiki: set id focuspolicy policy; policy is either click, no, > > > > strong or tab. > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > -- For information about J forums see > > > > <http://www.jsoftware.com/forums.htm> http://www.jsoftware.com/forums.htm > > > > > > -- > > > regards, > > > ==================================================== > > > GPG key 1024D/4434BAB3 2008-08-24 > > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > > > ---------------------------------------------------------------------- > > > For information about J forums see <http://www.jsoftware.com/forums.htm> > > http://www.jsoftware.com/forums.htm > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see <http://www.jsoftware.com/forums.htm> > > http://www.jsoftware.com/forums.htm > > > > -- > > regards, > > ==================================================== > > GPG key 1024D/4434BAB3 2008-08-24 > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > > ---------------------------------------------------------------------- > > For information about J forums see <http://www.jsoftware.com/forums.htm> > http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
