Chapter Contents |
Previous |
Next |
IMGCTRL |
Category: | Image |
Syntax |
rc=IMGCTRL(task-id,command,<other-arguments>); |
0 | successful |
>0 | not successful |
Type: Numeric
Type: Numeric
Type: Character
Type: Character or Numeric
Commands Used with IMGCTRL |
'WAIT'
seconds'WRAISE'
'WSIZE'
width,
height <xpos, ypos>'WTITLE'
title'Details |
IMGCTRL enables you to control the Image window. It includes, for example, commands to assign a window title and set the window size.
Examples |
Extract the name of the IMAGE entry and then use the WTITLE command to assign that name to the window:
path=lnamemk(5,catname,'format=cat'); rc=lnameget(path,type,name,form); gname=scan(name,3,'.'); rc=imgop(taskid,'READ',path); rc=imgctrl(taskid,'WTITLE',gname); rc=imgop(taskid,'PASTE',1,1);
Wait 5 seconds before displaying the image after each PASTE command:
rc=imgop(taskid,'READ',path); rc=imgop(taskid,'PASTE'); rc=imgctrl(taskid,'WAIT',5); rc=imgop(taskid,'READ',path2); rc=imgop(taskid,'PASTE'); rc=imgctrl(taskid,'WAIT',5);
Force the Image window to the top:
pop: rc=imgctrl(taskid,'WRAISE'); return;
Make the Image window match the size of the image that is being displayed:
height=0; width=0; rc=imgop(taskid,'READ',path); rc=imgop(taskid,'QUERYN','WIDTH',iwidth); rc=imgop(taskid,'QUERYN','HEIGHT',iheight); rc=imgctrl(taskid,'WSIZE',iwidth,iheight); rc=imgop(taskid,'PASTE',1,1);
Change the window title and then force the Image window to the top:
path=lnamemk(5,catname,'format=cat'); rc=lnameget(path,type,name,form); gname=scan(name,3,'.'); rc=imgop(taskid,'READ',path); rc=imgctrl(taskid,'WTITLE',gname); rc=imgop(taskid,'PASTE',1,1); rc=imgctrl(taskid,'WRAISE');
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.