Author Topic: How to retrieve text from the Build Window?  (Read 4573 times)

slickMark

  • Community Member
  • Posts: 11
  • Hero Points: 0
How to retrieve text from the Build Window?
« on: November 08, 2006, 02:12:14 pm »
I run an external command using 'concur_command()' from a Slick-C MACRO. How can I retrieve the text from the build window and display it in another window using a Slick-C macro?

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: How to retrieve text from the Build Window?
« Reply #1 on: November 08, 2006, 06:56:58 pm »
This might get you started. This just shows how to find that build window buffer and get some info from it.

Code: [Select]
_command void lines_of_build() name_info(',')
{
   // See if the build window is an MDI window
   int wid = _mdi.p_child._find_tile(".process");
   if(!wid){
      // Not MDI. Get the .process buffer window from
      // the build toolwindow form, without activating it.
      int formwid = _find_formobj('_tbshell_form','n');
      if (formwid){
         _nocheck _control _shellEditor;
         wid = formwid._shellEditor;
      }
   }
   if(wid){
      message('Build window has 'wid.p_Noflines' line of text');
   }
   else{
      message('Build window not found');
   }
}