Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / June 2004

Tip: Looking for answers? Try searching our database.

IVsCompletionSet Help please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack Peters - 25 Jun 2004 07:25 GMT
Hi,

how to set the width of the completion window. I can make it appear and it
is functionnaly correct but, the completion window always has the same
width, and it is way to short to display my set of displayNames. I have
tried with several name length.

The with is about the icon + 6 characters.

I have tried several flags both in the UpdateCompletionSet and GetFlags, but
it doesn't change anything.

I can't find any information in the documentation.

Thanks

Jack
Scot Nielsen - 27 Jun 2004 17:26 GMT
Hello Jack - if you're using Babel not sure what the answer is. But my
GetInitialExtent does the following (sets start and end cols to be the same)
which seems to look okay when displayed.

STDMETHODIMP CTypeBrowserCompletionSet::GetInitialExtent(long *piLine, long
*piStartCol, long *piEndCol) {
   try
   {
       ASSERT(piLine && piStartCol && piEndCol);
       if (!piLine || !piStartCol || !piEndCol)
           return E_POINTER;

       if (m_pTextView->GetCaretPos(piLine, piStartCol) != S_OK)
           return S_FALSE;

       *piEndCol = *piStartCol;

       m_bVisible = true;

       return S_OK;
   }
   catch(...)
   {
       ATLASSERT(false);
   }

   return S_FALSE;
}

> Hi,
>
[quoted text clipped - 13 lines]
>
> Jack
Jack Peters - 28 Jun 2004 16:12 GMT
Thanks scott.

I don't use babel. I am using C#.

I have already tried to set start and end same or to use GetWordExtent() to
compute start and end, but it doesn't make any difference.

I have even tried to force the end to be say 50 chars more that start

> Hello Jack - if you're using Babel not sure what the answer is. But my
> GetInitialExtent does the following (sets start and end cols to be the same)
[quoted text clipped - 43 lines]
> >
> > Jack

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.