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 (February 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 11 Feb 2003 18:24:25 -0500
Reply-To:     Randy Herbison <RandyHerbison@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy Herbison <RandyHerbison@WESTAT.COM>
Subject:      Re: Form Viewer and ToolTipText attribute
Comments: To: "Pierre.Felx@STATCAN.CA" <Pierre.Felx@STATCAN.CA>
Content-Type: text/plain; charset="iso-8859-1"

Pierre,

Let's modify the code included in my previous post under this thread. Rather than deleting the SCL lists in the model SCL's dfterm section, delete them in the dfinit section. No need to keep them around until the formviewer closes.

* Model SCL; dcl list __details={} __columns={}; dcl object __id; dcl num __i __rc;

dfinit: _viewer_.modelID._getDisplayedColumns(__columns); do __i=1 to listlen(__columns); _viewer_._getComponentID(getitemc(__columns,__i),__id); __id.toolTipText=getitemc(__columns,__i); end; __rc=dellist(__details); __rc=dellist(__columns); return;

RandyHerbison@westat.com

-----Original Message----- From: Pierre Felx [mailto:Pierre.Felx@STATCAN.CA] Sent: Tuesday, February 11, 2003 2:47 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Form Viewer and ToolTipText attribute

Hey SAS-L Gang,

I am trying to dynamically change the tooltiptext attribute of a variable (text entry filed) in my form viewer. I would like the tooltiptext to be defined based on the value of the variable in question. (i.e. on mouse over, a value of 1 would display "weekly", while a value of 2 would display "monthly") I am using a table-lookup technique to get the value for the tooltiptext but I cannot for the life of me figure out how to change the tooltiptext attribute from within the model SCL. I can change the background color of the text entry field by using the following code.

IF variable1 = 1 THEN CALL SEND(_viewer_,'_setViewerAttribute','variable1','bcolor','gray');

However the tooltiptext is not a viewer attribute. Am I missing something?

Any help is appreciated.

Thanks, Pierre Felx


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