Discussion:
Autocomplete fore/background
Stefano Mtangoo
2014-02-24 09:28:03 UTC
Permalink
I need to manipulate Autocomple Box styles (BG, Foreground, et al). Is
there any method?
Thanks
--
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
2014-02-25 01:40:55 UTC
Permalink
I need to manipulate Autocomple Box styles (BG, Foreground, et al). Is there any method?
These are hardcoded to the system settings, such as (on Windows) COLOR_HIGHLIGHTTEXT. On Windows the control panel (Window Color and Appearance) may be able to change these system settings although this is not easily found on recent releases.

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.
Stefano D. Mtangoo
2014-02-25 07:39:23 UTC
Permalink
Post by Neil Hodgson
I need to manipulate Autocomple Box styles (BG, Foreground, et al). Is there any method?
These are hardcoded to the system settings, such as (on Windows) COLOR_HIGHLIGHTTEXT. On Windows the control panel (Window Color and Appearance) may be able to change these system settings although this is not easily found on recent releases.
I don't want to mess up with system wide settings so I will remain
content with status quo unless this is added!
Do you plan to add anything that will expose listbox for such and other
modifications?
S.
Post by Neil Hodgson
Neil
--
Stefano D. Mtangoo
Mob: +255 754710410
Twitter: @mtangoo
Web. http://hosannahighertech.co.tz
Linkedin: http://www.linkedin.com/pub/stefano-mtangoo/45/644/281
/The purpose of man is to know his Maker Be known by his Maker
And make his Maker known So that others may know his Maker as their
Maker(Emeal Zwayne) /
--
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
2014-02-26 02:22:47 UTC
Permalink
I don't want to mess up with system wide settings so I will remain content with status quo unless this is added!
Do you plan to add anything that will expose listbox for such and other modifications?
No, as it doesn't appear very useful to override the system settings. You can implement your own list boxes and show them in front of Scintilla if its important enough.

It would be more interesting to design Scintilla to make it easier to implement new interactive widgets. For example, a HTML/CSS editor may want to allow colours to be edited through a colour-picker widget. I have looked at defining a simple common interface to integrate call tips, autocompletion and new widgets but there is a lot of communication performed between the core code and the widget code so that makes for a wide, complex interface.

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.
Stefano Mtangoo
2014-02-26 14:03:34 UTC
Permalink
Post by Stefano D. Mtangoo
Post by Stefano D. Mtangoo
I don't want to mess up with system wide settings so I will remain
content with status quo unless this is added!
Post by Stefano D. Mtangoo
Do you plan to add anything that will expose listbox for such and other
modifications?
No, as it doesn’t appear very useful to override the system settings.
You can implement your own list boxes and show them in front of Scintilla
if its important enough.
It would be more interesting to design Scintilla to make it easier to
implement new interactive widgets. For example, a HTML/CSS editor may want
to allow colours to be edited through a colour-picker widget.
I have Impemented a simple documentation box in wxWidgets/wxSTC so I added
new event to scintilla which is fired when AC is changed sending with it
current selected word. It would be useful if Scintill would have extra
ability to associate each Autocomplete word with **optional** text for
documentation, so that each time
Scintilla fires, it will send that docs. Another way is associating each AC
word with and ID (integer or long or even string). So each time selection
changes, Event is fired with that specific ID. This will enable two same
word have different docs.

Don't know how hard is that or even its acceptable with scintilla. I can
try to implement in future if it will find acceptance!

I have looked at defining a simple common interface to integrate call tips,
Post by Stefano D. Mtangoo
autocompletion and new widgets but there is a lot of communication
performed between the core code and the widget code so that makes for a
wide, complex interface.
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.
Neil Hodgson
2014-02-26 22:04:15 UTC
Permalink
It would be useful if Scintill would have extra ability to associate each Autocomplete word with **optional** text for documentation, so that each time
Scintilla fires, it will send that docs.
That sounds like application functionality - use a map to associate each word with its documentation.

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.
Stefano Mtangoo
2014-03-10 11:38:43 UTC
Permalink
Hi Neil,
It would be useful if Scintill would have extra ability to associate
each Autocomplete word with **optional** text for documentation, so that
each time
Scintilla fires, it will send that docs.
That sounds like application functionality - use a map to associate
each word with its documentation.
I understand that documetation thing is application functionality in this
case but even the map will be useless as Scintilla have no way to
get currently selected word in AC box. I have implemented a signal that
does this (adding to what wxForum bcteh have started of course).
Can I send a patch to scintilla?
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/d/optout.
Neil Hodgson
2014-03-11 10:11:03 UTC
Permalink
I understand that documetation thing is application functionality in this case but even the map will be useless as Scintilla have no way to
get currently selected word in AC box. I have implemented a signal that does this (adding to what wxForum bcteh have started of course).
Can I send a patch to scintilla?
An API to retrieve the currently selected item's text is simple to implement so would be fine.

A signal that is triggered when the selection changes is more difficult, since this is not currently supported by the Platform interface, that is, the interface between Scintilla and platform libraries. Changing the Platform interface generally breaks building on each platform until that platform's maintainer adds an implementation for the new functionality. There are 4 platform interfaces included in the Scintilla distribution and something like 6 or more maintained independently, so adding a new feature costs the time of each of those downstreams.

Generally, features exposed through the Platform interface should be widely implementable. Any new feature should be checked against other platforms to ensure that either the feature isn't needed for a platform or that the proposed API can be reasonably implemented.

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/d/optout.
Stefano D. Mtangoo
2014-03-11 19:17:51 UTC
Permalink
Post by Neil Hodgson
I understand that documetation thing is application functionality in this case but even the map will be useless as Scintilla have no way to
get currently selected word in AC box. I have implemented a signal that does this (adding to what wxForum bcteh have started of course).
Can I send a patch to scintilla?
An API to retrieve the currently selected item's text is simple to implement so would be fine.
Thats good to hear.
Post by Neil Hodgson
A signal that is triggered when the selection changes is more difficult, since this is not currently supported by the Platform interface, that is, the interface between Scintilla and platform libraries. Changing the Platform interface generally breaks building on each platform until that platform's maintainer adds an implementation for the new functionality. There are 4 platform interfaces included in the Scintilla distribution and something like 6 or more maintained independently, so adding a new feature costs the time of each of those downstreams.
Generally, features exposed through the Platform interface should be widely implementable. Any new feature should be checked against other platforms to ensure that either the feature isn't needed for a platform or that the proposed API can be reasonably implemented.
AFAIK it should be easy (given that there are signals for canceling
Auto-complete for example). Since AC Box will be shown so getting
selected text should not be difficult for any platform and sending that
signal should use same mechanism as other signals.

Best Regards,
Stefano
Post by Neil Hodgson
Neil
--
Stefano D. Mtangoo
Mob: +255 754710410
Twitter: @mtangoo
Web. http://hosannahighertech.co.tz
Linkedin: http://www.linkedin.com/pub/stefano-mtangoo/45/644/281
/The purpose of man is to know his Maker Be known by his Maker
And make his Maker known So that others may know his Maker as their
Maker(Emeal Zwayne) /
--
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/d/optout.
Loading...