|
View previous topic :: View next topic
|
| Author |
Message |
Ashwin_mudikon
New User

Joined: 03 Apr 2007 Posts: 32 Location: Chennai
|
|
|
|
Hi,
I have created a panel and i am displaying it as pop-up window using a rexx program.
Is there any way to set the position, width and height of the pop-up panel?
Thanks,
Ashwin |
|
| Back to top |
|
 |
Mickeydusaor
Active User

Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
In the panel in the BODY section.
)BODY Window(65,12)
this is 65 characters wide and 12 lines in length. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| And the position is specified in the ADDPOP service. |
|
| Back to top |
|
 |
Ashwin_mudikon
New User

Joined: 03 Apr 2007 Posts: 32 Location: Chennai
|
|
|
|
i ve got that ADDPOP parameters
it's row(m) column(n) to set the position of a popup panel.
And also just an info, the width of a window should be greater than 8 and less than the screen size. This I got as an error message while using the window option in the panel. |
|
| Back to top |
|
 |
Pandora-Box
Global Moderator
.jpg)
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
| Can you please give your REXX program and the panel code? |
|
| Back to top |
|
 |
Ashwin_mudikon
New User

Joined: 03 Apr 2007 Posts: 32 Location: Chennai
|
|
|
|
This is my panel definition
| Code: |
)attr
+ type(text) just(left) color(red)
_ type(output) just(left) intens(high)
)body window(70,3)
+ Message
_msg
+
)end |
This is my panel display part in rexx
| Code: |
"ispexec addpop row(5) column(2)"
"ispexec display panel(msgpanel)
"ispexec rempop" |
|
|
| Back to top |
|
 |
Pandora-Box
Global Moderator
.jpg)
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
| Code: |
code:
/*REXX*/
"ISPEXEC LIBDEF ISPPLIB DATASET ID(' xxx ')"
"ISPEXEC ADDPOP ROW(5) COLUMN(2)"
"ISPEXEC DISPLAY PANEL(EX1)"
IF RC\=0 THEN DO
SAY 'COMMAND CANCELLED'
EXIT
END
ELSE
SAY 'YOUR NAME IS' URNAME
EXIT
|
give your dataset name where ur panel definition is present and execute.
Hope this helps
Thanks,
Prem
|
|
| Back to top |
|
 |
Pandora-Box
Global Moderator
.jpg)
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
In Display panel give the name of the panel which has panel definition.
Thanks,
Prem |
|
| Back to top |
|
 |
|
|