| Date: | Wed, 9 Apr 2003 15:57:02 +0100 |
| Reply-To: | Graeme.Kirton@FILCS.COM |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Graeme.Kirton@FILCS.COM |
| Subject: | Fw: AF Frame control |
| Content-type: | text/plain; charset=us-ascii |
|---|
Thanx Richard for this reply.
Dont wat to sound too daft, how do I;
override method onClick of the pushbutton???
Cheers
--------------------------------------------------------------
Graeme Kirton
IT Developer
Filtronic Compound Semiconductors Ltd
----- Forwarded by Graeme Kirton/IT/CS/FILGB on 09/04/03 15:50 -----
"Richard A.
DeVenezia" To: <Graeme.Kirton@filcs.com>
<radevenz@ix.netc cc:
om.com> Subject: Fw: AF Frame control
09/04/03 12:47
Richard A. DeVenezia, http://www.devenezia.com
----- Original Message -----
From: "Richard A. DeVenezia" <radevenz@ix.netcom.com>
Newsgroups: comp.soft-sys.sas
Sent: Tuesday, April 08, 2003 11:45 PM
Subject: Re: AF Frame control
> <Graeme.Kirton@FILCS.COM> wrote in message
>
news:OFCD31DB26.C2A8DBCA-ON80256D01.004F1D8C-80256D01.004F778B@filcs.com...
> > Richard I dont understand how this helps, as I can still close the
calling
> > frame, both ways work the same?
> >
>
> Graeme:
>
> Your right, it doesn't help... in a stand alone frame.
> The way a standalone frame handles events is certainly somewhat annoying
and
> anti-intuitive.
> Suppose you have a frame with a pushbutton and code block
>
> pushbutton1:
> submit continue;
> proc insight data=sashelp.class;
> run;
> endsubmit;
> return;
>
> AF will run insight, apparently in a separate thread, because you can
close
> the frame an insight is still running.
> Even more peculiar, suppose you clicked the button three times and closed
> the frame. AF 'stacks' up the submit continues and thus when you close
> insight, another will pop up and when you close that another pops up and
> finally you can close the third one.
>
> As Randy pointed out, deactivating controls so you can't inadvertantly
> 'stack' up a proc insight is wise, but you can't easily disable the X
> button, you would need to have a term section that tries to determine if
> insight is still running (which isn't real easy either)
>
> Experimentation shows that the following does work and modally blocks the
> frame until the proc insight completes (i.e. is exited by the user)
> suppose your frame is work.graeme.insight.frame
>
> 1. do not have a code section in the frame scl
> 2. use property editor to override method onClick of the pushbutton.
> in SCL work.graeme.insightmethods.scl use
> onClick: method;
> submit continue;
> proc insight data=sashelp.class;
> run;
> endsubmit;
> endmethod;
>
> When you run the frame and click on the push button, insight will launch
and
> the frame will not respond to anything until insight is exited.
>
> For good measure you can tweak some visuals and get the data set name
from
a
> frame variable
>
> frame.scl
> ---
> init:
> insightTable = 'sashelp.class';
> return;
>
> framemethods.scl
> ---
> onclick: method;
> _frame_.backgroundColor = 'Secondary Background';
> _self_._gray();
>
> _frame_._getCharVar ('insightTable', data);
>
> submit continue;
> proc insight data=sashelp.class;
> run;
> endsubmit;
> _self_._ungray();
> _frame_.backgroundColor = 'Background';
> endmethod;
>
> --
> Richard A. DeVenezia, http://www.devenezia.com
>
>
"IMPORTANT NOTICE
This email may contain confidential information and will be protected by
copyright.
It is intended only for the use of the person(s) to whom it is addressed
and any unauthorised
use (including forwarding or dissemination the contents) may be unlawful.
If you receive this email by mistake, please advise the sender immediately
by using the reply facility on
your email software and delete the email from your computer.
Opinions, conclusions and other information in this email that do not
relate to the official business
of this organisation shall be understood as neither given nor endorsed by
it.
If this message forms part of a quotation for the supply of goods, the
quotation is an invitation to treat only. No contract will come into
effect until the Company issuing such quotation (or Filtronic plc or one of
its subsidiaries on its behalf) issues an acknowledgment of order for the
supply of such goods. The contract will be on the terms of such
acknowledgment of order.
Website address: http://www.filtronic.com"
|