Hans-Bernhard Br=F6ker wrote:=20
> Suresh Govindachar wrote:
>>=20
>> The following command
>> =20
>> pause -1 "Show this message"
>>
>> puts up a dialog box with buttons named OK and Cancel.
>=20
> ... on MS Windows. Other platforms handle it differently.
I see.
=20
>> I would like to branch based on whether the user pressed
>> on OK or Cancel.
>=20
> That won't work. If "pause -1" is in a script, and the user
> pressed 'Cancel', the script is terminated. You wouldn't reach
> that branch to decide anything.
>=20
>> Can this be done and, if so, how? =20
>=20
> That's what "pause mouse" is for, so use it.
=20
As indicated in the original post, I was aware of the "pause
mouse" feature. But I did not elaborate on why I did not want to
use it; here's why: With pause -1, the user can examine the plot
by using all the commands that show up after typing h (such as p
for previous zoom). With "pause mouse", I do not know how to
continue to offer the user those commands -- can it be done, and
if so how?
Thanks,
--Suresh
|