No, there's no difference in behaviour between wd'q' and wd'qd'.
Both return an out-of-date value for atel edit.

How do I post a (simulated) mouseClick event? That would fix it, I'm sure.

Ian


On Sun, Nov 28, 2010 at 11:43 PM, bill lam <[email protected]> wrote:
> Does wd'qd' help?
>
> Вск, 28 Ноя 2010, Ian Clark писал(а):
>> Is there a system verb I can call which simulates a button event? Or a
>> call I can make from my code to post a keyDown or mouseclick event?
>>
>> I've often met the need to do this, but most recently as one possible
>> solution to the following problem:
>>
>> I have an edit control named atel, on a form named cab. After executing:
>>    wd 'set atel *xyz'
>> the form shows 'xyz' in the appropriate field, but the buffer noun
>> atel still shows its previous value. It does not get updated until I
>> next interact with the screen. Even calling: wd'q' returns the old
>> value of atel.
>>
>> (This is what happens on the Mac. I haven't tried it under Windows to
>> see if the same thing happens.)
>>
>> How, at any given stage in my code, do I ensure that atel (and other
>> edit buffers) are all in-step with their visible contents?
>> Must my code explicitly assign the required contents to atel at the
>> time it calls: wd 'set atel ...'?
>>
>> Ian
>> ----------------------------------------------------------------------
>> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to