Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: hs2
« on: August 27, 2006, 07:43:23 AM »

No problem - see this thread:
http://community.slickedit.com/index.php?topic=259.0

or use Slicks callback scheme.
Example to change to the project root dir:
Code: [Select]
void _prjopen_DanW ()
{
   // say ("_prjopen_DanW");
   _str cwd=_ProjectGet_WorkingDir (_ProjectHandle (_project_name));
   if ( cwd != '' )
   {
      cwd=absolute (cwd,strip_filename (_project_name,'n'));
      cd (cwd, 'm');
      // HS2: added to sync with 'Open' tab in project toolbar and process buffer
      _cd_tbopen ();
      _process_cd (cwd);
   }
}

HS2
Posted by: DanW
« on: August 25, 2006, 08:22:44 PM »

Is it possible to load a macro from somewhere other than under slickedit directory when a project is loaded.

We have Perforce here, and I would like to set it up so a macro is executed when a project is opened.
This way, when a developer loads a project, the project ENV variables are set based on the depot location
they loaded the project from.

Thanks.
Dan.