/* $AUTHOR: Manuel Lemos (UpperDesign@zeus.ci.ua.pt) $VER: EditGroupCoordinates 1.00 (3.10.94) Description: ARexx macro for FinalWriter to let coordinates of grouped graphic objects be manually edited. */ options results GraphicTool OBJECTO_GRUPO = 8 selecionados = 0 FirstObject SELECTED do until result = 0 selecionados = selecionados + 1 objectid.selecionados = result NextObject objectid.selecionados SELECTED end if selecionados >= 1 then do call addlib("rexxreqtools.library", 0, -30, 0) COORDENADA_OK = 1 COORDENADA_PAGINA = 2 COORDENADA_ESQUERDA = 3 COORDENADA_CIMA = 4 COORDENADA_LARGURA = 5 COORDENADA_ALTURA = 6 do objecto = 1 to selecionados GetObjectType objectid.objecto tipo = result if tipo = OBJECTO_GRUPO then do GetObjectCoords objectid.objecto coords = RESULT PARSE VAR coords pagina esquerda cima largura altura do until coordenadas = COORDENADA_OK do coordenadas = rtezrequest( "Group Coordinates",, "_Ok|_Page|_Left|_Top|_Width|_Height|_Cancel",, "" ) select when coordenadas = COORDENADA_OK then do SetObjectCoords objectid.objecto pagina esquerda cima largura altura redraw break end when coordenadas = COORDENADA_PAGINA then do nova_pagina = rtgetlong( pagina,, "Page",, "Group Coordinates",, "_Ok|_Cancel") if rtresult = 1 then pagina = nova_pagina end when coordenadas = COORDENADA_ESQUERDA then do nova_esquerda = rtgetstring( esquerda,, "Left",, "Group Coordinates",, "_Ok|_Cancel") if rtresult = 1 then esquerda = nova_esquerda end when coordenadas = COORDENADA_CIMA then do nova_cima = rtgetstring( cima,, "Top",, "Group Coordinates",, "_Ok|_Cancel") if rtresult = 1 then cima = nova_cima end when coordenadas = COORDENADA_ALTURA then do nova_altura = rtgetstring( altura,, "Height",, "Group Coordinates",, "_Ok|_Cancel") if rtresult = 1 then altura = nova_altura end when coordenadas = COORDENADA_LARGURA then do nova_largura = rtgetstring( largura,, "Width",, "Group Coordinates",, "_Ok|_Cancel") if rtresult = 1 then largura = nova_largura end otherwise break end end end end end /* voltar a selecionar todos os objectos selecionados antes */ do objecto = 1 to selecionados SelectObject objectid.objecto MULTIPLE end redraw end