LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 11 Nov 2004 09:24:26 -0800
Reply-To:     m n <iced_phoenix_news@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Comments:     DomainKeys? See http://antispam.yahoo.com/domainkeys
From:         m n <iced_phoenix_news@YAHOO.COM>
Subject:      SAS/AF: Create Widgets Programmatically
Comments: To: SAS-L@LISTSERV.VT.EDU
Content-Type: text/plain; charset=us-ascii

Dear SAS-L,

I know I can create a new widget object programmatically using the _new_ statement in SCL, as in:

import sashelp.classes; dcl spinbox_c myspin = _new_ spinbox_c();

Suppose the above code is in the handler for a push button, so that when that button is pressed, I want a new spin box to appear at a certain location in the frame. Instead, what happens is that I get a hand icon and a dotted box, asking me to place the spin box during run-time.

After creating the spinbox object, I've set the position and size attributes, but that does not automatically place the object. Thus, my question is: how do I automatically "drop" the new object without the user needing to place it him/herself?

The _refresh() and _update() methods have no effect.

Thanks! Matt

__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com


Back to: Top of message | Previous page | Main SAS-L page