Discussion:
Retain Autocomplete Box when user is typing
HHT Support
2012-03-31 13:04:46 UTC
Permalink
Is it possible to somehow retain Autocomplete Box as user types so
that the List will keep reducing itself until the word is found or
list is empty without hacking the source code?
Thanks,
Stefano
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Neil Hodgson
2012-03-31 23:31:02 UTC
Permalink
Post by HHT Support
Is it possible to somehow retain Autocomplete Box as user types so
that the List will keep reducing itself until the word is found or
list is empty without hacking the source code?
Your application may do whatever it wants in response to characters
being typed, including displaying an autocompletion box with different
items.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
HHT Support
2012-04-01 16:19:02 UTC
Permalink
Hi Neil,
Post by HHT Support
Is it possible to somehow retain Autocomplete Box as user types so
that the List will keep reducing itself until the word is found or
list is empty without hacking the source code?
   Your application may do whatever it wants in response to characters
being typed, including displaying an autocompletion box with different
items.
Thanks for response. I wanted to know if there was scintilla specific
way before I try to implement.
Somehow I was convinced there is someway. Sorry if it is something
obvious.
Regards,
Stefano
   Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Philippe Lhoste
2012-04-02 11:40:39 UTC
Permalink
Post by HHT Support
Thanks for response. I wanted to know if there was scintilla specific
way before I try to implement.
Somehow I was convinced there is someway. Sorry if it is something
obvious.
As I wrote to somebody else, it is often interesting to take a look at the SciTE code,
even if you don't use it, as it is (also) a kind of test implementation for (most)
Scintilla features.

You can be interested in SciTEBase.cxx, particularly SciTEBase::StartAutoCompleteWord and
SciTEBase::FillFunctionDefinition (two different functionalities using auto-completion).
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
HHT Support
2012-04-04 06:49:56 UTC
Permalink
Thanks
Post by Philippe Lhoste
Post by HHT Support
Thanks for response. I wanted to know if there was scintilla specific
way before I try to implement.
Somehow I was convinced there is someway. Sorry if it is something
obvious.
As I wrote to somebody else, it is often interesting to take a look at the SciTE code,
even if you don't use it, as it is (also) a kind of test implementation for (most)
Scintilla features.
You can be interested in SciTEBase.cxx, particularly SciTEBase::StartAutoCompleteWord and
SciTEBase::FillFunctionDefinition (two different functionalities using auto-completion).
--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Mike Lischke
2012-05-23 11:59:01 UTC
Permalink
Hi Phil,
Post by HHT Support
Thanks for response. I wanted to know if there was scintilla specific
Post by HHT Support
way before I try to implement.
Somehow I was convinced there is someway. Sorry if it is something
obvious.
As I wrote to somebody else, it is often interesting to take a look at the SciTE code,
even if you don't use it, as it is (also) a kind of test implementation for (most)
Scintilla features.
SciTE uses the simple approach by simply again showing the ac list.
However, since showing auto completion while it is already active cancels
the list first before showing the new one, this leads to flickering on the
screen, which doesn't look very good. The list should smoothly grow and
shrink as the user types as seen by any other such implementation.

What we'd need is an API to simply replace the entries in the listbox. Any
other idea?

Mike
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scintilla-interest/-/zi3M8myTObsJ.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Neil Hodgson
2012-05-23 22:49:36 UTC
Permalink
Post by Mike Lischke
What we'd need is an API to simply replace the entries in the listbox.
I'll accept a well-written implementation.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Markus Nißl
2013-07-24 21:15:26 UTC
Permalink
Post by Neil Hodgson
Post by Mike Lischke
What we'd need is an API to simply replace the entries in the listbox.
I'll accept a well-written implementation.
I guess nobody has worked on this yet!?

I don't think we need a new API: when SCI_AUTOCSHOW is called and
autocompletion is already active, the listbox should discard its existing
entries and accept the new ones handed over without destroying and
recreating the listbox. Do you agree?

Markus
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-07-24 23:09:26 UTC
Permalink
I don't think we need a new API: when SCI_AUTOCSHOW is called and autocompletion is already active, the listbox should discard its existing entries and accept the new ones handed over without destroying and recreating the listbox. Do you agree?
I recall problems with not recreating the list box particularly on GTK+. Adding an API means that only people using the new API will be exposed to any such issues.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...