Hey all,

Writing an IDE for D , and it has a construct called pragma that can be
called for automatic linking like :

pragma ( link, "libname.lib" );

Im trying to autocshow a list of available libraries for them after they
type the ',' ( and the previous line contains both pragma and link ) ,
called with 0 word length and a space seperator, but it keeps autocompleting
the first entry in the list.  At first I thought this was because there was
a comma before it, but even if I insert a space right after the comma and
then call it , it still completes the first entry automatically.  Am i doing
something wrong ?  Code below.



else if ( scn->ch == ',' )
{
 char text[100] ;
 rCtrl.GetCurLine(100,text);
 CString line = text;
 if ( line.Find("pragma") != -1 && line.Find("link") != -1 )
 {

  CScintillaCtrl& rCtrl = GetCtrl();

  string list =
parseKeywordsForDisplay(Globals::proxyParser->libraryClass->libs);

  rCtrl.AutoCShow(0 , list.c_str() );

 }


}


Thanks,

Charlie


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to