That's very efficient for windows!!

Unfortunately I don't think it works for Powerpro notes.

-Rick

--- In [email protected], "pjagaraj.rm" <pjaga...@...> wrote:
>
> I use the following simple command(s) to bring any off-screen window to the 
> main display:
> 
> Window Show Menu
> Window Position! 0 0 active 
> 
> 
> 
> > -Rick  
> > 
> > ;Move notes back on screen
> > 
> > local v=vec.createFromWords(win.handlelist("*")) 
> > ;;create a list of windows
> > local v2=vec.create(v.length,1) 
> > ;;create a vector to hold powerpro windows
> > local v3=vec.create(v.length,1) 
> > ;;create a vector to hold powerpro handles
> > local b = 0
> > local off = 10  ;;create offset value
> > 
> > for(local i=0; i<v.length; i++)
> >     if (win.exename(v[i])=="powerpro") do
> >             v2[b] = win.caption(v[i]) 
> > ;;if they are powerpro put the captions in the vector
> >             v3[b] = v[i]  ;;get the handles for powerpro windows
> >             b++
> >     endif
> > endfor
> > v2[b] = "All" ;;Add a choice for all
> > 
> > answ1 = v2.showmenu ;;show the menu answ1 is an index
> > answ = v2[answ1] ;;answ is the value
> > 
> > if (answ == "All") do
> >     for (local i=0; i<v3.length; i++)
> >             win.move(v3[i], 400-off, 400-off) ;;move the window
> >             off = off + 20 ;;offset windows
> >     endfor
> > else
> >     win.move(v3[answ1], 100, 100) ;;Move one note
> > endif
> >
>


Reply via email to