Hello Anita,   

use a execute fc command. 
This command scrolls the current selection to the middle of the document 
window.  

Set lv_objDocument = Session.ActiveDoc;
Run SelectAndViewAFrame Using pv_objDocument(lv_objDocument); 

Sub SelectAndViewAFrame Using pv_objDocument
  
  Local lv_objGraphic;
  Local lv_objPgf;
  Local lv_rangePgf;
  Local lv_btnRet;
   
  Set lv_objGraphic = pv_objDocument.FirstGraphicInDoc;
  Loop While(lv_objGraphic)
    If lv_objGraphic.ObjectName = 'AFrame'
      
      Set lv_objPgf = lv_objGraphic.pgf;
      New TextRange NewVar(lv_rangePgf) Object(lv_objPgf);
      Set pv_objDocument.TextSelection = lv_rangePgf;
      Execute FC HighClear;
      Set lv_objGraphic.GraphicIsSelected = True;
      MsgBox 'Press Yes or No' Mode(YesNo) Button(lv_btnRet);
      If lv_btnRet = YesButton
        Write Console 'The user pressed the Yes button';
      Else
        Write Console 'The user pressed the No button';
      EndIf
    EndIf
    Set lv_objGraphic = lv_objGraphic.NextGraphicInDoc;
   EndLoop
 EndSub

Best regards   
Karsten  

------------------------------------------------------------
Sie können kein DSL bekommen?  
Auch vergleichbare Techniken sind bei Ihnen Fehlanzeige?  
Sie sind nicht allein! Wir fordern gleiche Chancen für jeden! 
Unterstützen Sie uns mit Ihrer Unterschrift.   

www.petition.geteilt.de  
------------------------------------------------------------ 

 

 

 

Hi all --   

   

Framescript question--Frame 7.0p579, FrameScript 4.1R2.  

   

I have a script that moves through a book and sets the left margin of  

each graphic to a certain distance based on the context of the anchored  

frame.  The basic logic is: If the preceding paragraph tag is A, set the  

margin to X.  If it's B, set it to Y ... and so on.  This part works  

great.  

   

I now have a book that requires individual inspection of each graphic.  

I need to see it to know whether to change it.  The problem is that when  

my existing script runs, it doesn't bring each anchored frame into view  

in the Frame window.  All I see is the first page of the document and a  

bunch of flickering as the graphics are changed.  Is there a way to get  

the focus of the window to change as part of the script, so that I just  

click Yes or No for each frame?  I'd rather not have to scroll manually  

to each anchored frame.  

   

Thanks for any wisdom!  

Anita  

   

   

   

   

Anita Maria Gutierrez  

Principal Curriculum Developer  

Sage Software  

15195 NW Greenbrier Parkway  

Beaverton, Oregon 97006  

(503) 439-7286  

   

_______________________________________________  

 

 

You are currently subscribed to Framers as [EMAIL PROTECTED]  

 

Send list messages to [EMAIL PROTECTED]  

 

To unsubscribe send a blank email to  

[EMAIL PROTECTED]  

or visit   

http://lists.frameusers.com/mailman/options/framers/frameusers%40natebus.de  

 

Send administrative questions to [EMAIL PROTECTED] Visit  

http://www.frameusers.com/ for more resources and info.
_______________________________________________


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.

Reply via email to