home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d9xx
/
d925
/
donsgenies.lha
/
DonsGenies
/
FrenchGenies.lha
/
Rexx
/
BoîteEnAvant.pprx
< prev
next >
Wrap
Text File
|
1993-08-03
|
3KB
|
89 lines
/*
@BBoîteEnAvant @P @I Ecrit et © par Don Cox
@IN'est pas du Domaine Publique. Tous Droits Réservés.
Traduit par Fabien Larini le 22/07/93.
Ce Génie permet de mettre une boîte en avant en la sélectionnant dans une
liste de boîtes. Pratique dans des constructions complexes ou les boîtes
se recouvrent les unes les autres.*/
/* Box to Front
Select a box by name or number and bring it to the front. Useful in complex layouts where there are several boxes on top of each other.
Written by Don Cox */
trace n
signal on error
signal on syntax
call ppm_AutoUpdate(0)
cr = "0a"x
address command
call SafeEndEdit.rexx()
call ppm_ShowStatus("Liste les Boîtes ...")
thispage = ppm_CurrentPage()
totalboxes = ppm_NumBoxes(thispage)
list = ""
box = ppm_PageFirstBox(thispage)
do i = 1 to totalboxes
number = right(ppm_BoxNum(box),4," ")
info = ppm_GetBoxInfo(box)
boxtype = word(info,1)
boxname = ppm_GetBoxName(box)
select
when upper(boxtype) = "TEXTE" then do
boxtext = ppm_GetBoxText(box,0)
shorttext = substr(boxtext,1,15)
if boxname = "" then boxname = shorttext
end
when upper(boxtype) = "BITMAP" then do
filename = word(info,5)
filename = substr(filename, lastpos("/",filename)+1)
if boxname = "" then boxname = filename
end
when upper(boxtype) = "EPSF" then do
filename = word(info,3)
filename = substr(filename, lastpos("/",filename)+1)
if boxname = "" then boxname = filename
end
when upper(boxtype) = "CLIP" then do
objects = "Clip, "||word(info,2)||" objets"
if boxname = "" then boxname = objects
end
when upper(boxtype) = "VECTORISÉ" then do
objects = "Aegis, "||word(info,2)||" objets"
if word(info,2)=1 then objects = "Aegis, 1 object"
if boxname = "" then boxname = objects
end
when upper(boxtype) = "VIDE" then do
if boxname = "" then boxname = "Vide"
end
otherwise boxname = "Type de Boîte Inconnu"
end
boxtype = substr(boxtype,1,1)
list = list||number" "boxtype" "boxname||cr
box = ppm_PageNextBox(box)
end
call ppm_ClearStatus()
chosen = ppm_SelectFromList("Sélectionnez une Boîte...",35,18,0,list)
box = ppm_SelectBox(word(chosen,1))
call ppm_BoxToFront(box)
exit_msg()
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