| Date: | Thu, 11 Sep 1997 14:22:40 -0700 |
| Reply-To: | Greg Bryant <gbryant@SLIPNET.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | Greg Bryant <gbryant@SLIPNET.COM> |
| Organization: | Slip.Net (http://www.slip.net) |
| Subject: | Re: change widget defaults by program. |
| Content-Type: | text/plain; charset=us-ascii |
AJR,
Don't take offense, but this is one of those questions that causes
me to ask why you would want to perform this task. It is a simple
nough proposition to assign the test whenever you invoke a FRAME,
but I'm sure you have sound reasons.
One option you have is to build subclasses for each of the widgets
whose text value (or any property) that you want to establish a default
value
for. Within the saub-class, you would then appropriate initialization
values.
This is a fairly advanced FRAME technique that is well-documented in the
FRAME Application Development Concepts manual (A MUST!!!!! HAVE).
By creating custom classes that you or other developers can access, you
can tailor the defaults of all frame widgets. You options, in this
area,
are
virtually unlimited.
I know this is not a hard answer to your question, but you will
see
that it
is fairly involvded process that will require some quality programming
time
to
understand. Tech Support is your best avenue for getting started, but I
wil
be
happy to assist in anyway I can. Just direct mail me.
greg
ajr@galileo.micro.lucent.com wrote:
> My problem is to change the default text of a widget by program.
> By "change the default text" I mean that the new text has to be
> stored in the right place (wherever SAS/AF stores widget default
> values), replacing the default value; so, next time you open the
> frame, the widget shows its new text.
>
> I thought the _bupdate_ method invoked after _set_text_ should
> do this, but it seems _bupdate_ just updates defaults when
> invoked in build time by clicking OK in the Object Attributes window.
>
> Regarding the kind of widget, there can be a number of them:
> - label
> - push button
> - command push button
> - image icon
> - ...
>
> -------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
|