home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0925.lha
/
DonsGenies
/
FrenchGenies.lha
/
Rexx
/
GrilleTiréeDeLaBoîte.pprx
< prev
next >
Wrap
Text File
|
1993-08-03
|
2KB
|
66 lines
/*
@BGrilleTirΘeDeLaBoεte @P @I Ecrit et ⌐ par Don Cox en Ao√t 1992
@IRΘvision en FΘvrier 1993. N'est pas du Domaine Publique. Tous Droits
@IRΘservΘs.
Traduit par Fabien Larini le 23/07/93.
Ce GΘnie utilise les dimensions d'une boεte choisie pour les placer dans
la grille. Active l'alignement sur la grille. Sauve les dimensions de
l'ancienne grille pour pouvoir les rappeler avec le GΘnie "RestoreGrille".
*/
/*GridFromBox*/
/* This Genie sets up a grid to match a box, with snap enabled. Written
by Don Cox ⌐ August 92*/
signal on error
signal on syntax
address command
call SafeEndEdit.rexx()
call ppm_AutoUpdate(0)
cr="0a"x
currentunits = ppm_GetUnits()
box = ppm_ClickOnBox("Clickez dans la Boεte pour les Dimensions de la Grille.")
if box = 0 then exit_msg("Pas de Boεte SΘlectionnΘe")
gsize = ppm_GetGridSize()
gwidth = word(gsize,1)
gheight = word(gsize,2)
call ppm_SaveText("ram:gridsize",gsize)
size = ppm_GetBoxSize(box)
width = word(size,1)
height = word(size,2)
choice = ppm_Inform(3,"Quelle(s) dimension(s) de la Boεte ?","Largeur","Hauteur","Les Deux")
select
when choice = 0 then call ppm_SetGridSize(width,gheight)
when choice = 1 then call ppm_SetGridSize(gwidth,height)
otherwise call ppm_SetGridSize(width,height)
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