Tooltip with Autocomplete

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Tooltip with Autocomplete

Postby Azlan » Tue May 14, 2013 10:32 pm

How do I use a FocusableToolTip with autocompletion? I'm using BasicCompletion's right now, so is there any way to attach the tooltip to a BasicCompletion or do have to use another kind of Completion?
Azlan
 
Posts: 14
Joined: Thu Apr 11, 2013 4:54 pm

Re: Tooltip with Autocomplete

Postby robert » Fri May 17, 2013 3:29 am

If a BasicCompletion's getShortDescription() method returns an HTML snippet, it is rendered in a tool tip-like documentation window along-side the completion choices, similar to populare IDE's. For this to happen though, you have to call setShowDescWindow(true) on your AutoCompletion instance first.

This isn't actually a FocusableTip, but it's essentially the same thing - a popup window that the user can click in, move around, and copy/paste from.
User avatar
robert
 
Posts: 794
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron