home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0925.lha
/
DonsGenies
/
FrenchGenies.lha
/
Rexx
/
PositionGrille.pprx
< prev
next >
Wrap
Text File
|
1993-08-08
|
2KB
|
81 lines
/*
@BPositionGrille @P @I Ecrit et ⌐ par Don Cox en FΘvrier 1993 et Aug 93.
@IN'est pas du Domaine Publique. Tous Droits RΘservΘs.
Traduit par Fabien Larini le 30/07/93.
Ce GΘnie met en place une grille en demandant sa position plut⌠t que sa
taille, en activant l'alignement sur grille. Il sauve les anciennes
dimensions de la grille afin de pouvoir les rappeler en utilisant le
GΘnie "RestoreGrille".
*/
/*GridSetPosition*/
/* This Genie sets up a grid to a user-defined position (rather than size), with snap enabled.
Written by Don Cox ⌐ Feb 93. Mods Aug 93. Not public domain. All rights reserved. */
signal on error
signal on syntax
address command
call SafeEndEdit.rexx()
call ppm_AutoUpdate(0)
cr="0a"x
currentunits = ppm_GetUnits()
gsize = ppm_GetGridSize()
gwidth = word(gsize,1)
gheight = word(gsize,2)
call ppm_SaveText("ram:gridsize",gsize)
form = "Abscisse"cr"OrdonnΘe"
form = ppm_GetForm("Saisie de l'Abscisse et/ou de l'OrdonnΘe",8,form)
if form = "" then exit_msg("Position non fixΘe")
parse var form xpos "0a"x ypos
if xpos>=4 then do
xnum = xpos%2.0
xspacing = xpos/xnum
end
else if xpos>=2 then xspacing = xpos/2
else xspacing = xpos
if ypos>2 then do
ynum = ypos%2.0
yspacing = ypos/ynum
end
else if ypos>=2 then yspacing = ypos/2
else yspacing = ypos
select
when xpos = 0 | xpos = "" then call ppm_SetGridSize(0.01,yspacing)
when ypos = 0 | ypos = "" then call ppm_SetGridSize(xspacing,0.01)
otherwise call ppm_SetGridSize(xspacing,yspacing)
end
call ppm_SetGrid(1)
call ppm_SetGridSnap(1)
call exit_msg()
end
error:
syntax:
do
exit_msg("ArrΩt du GΘnie d√ α l'erreur: "errortext(rc))
end
exit_msg:
do
parse arg message
if message ~= "" then
call ppm_Inform(1,message,)
call ppm_ClearStatus()
call ppm_AutoUpdate(1)
exit
end