Discussion:
Getting Scintilla Aucomplete Box Width
Stefano Mtangoo
2013-07-30 19:29:03 UTC
Permalink
I wonder if there is a way to get current Scintilla AC Box width, after
Autocomplete List is loaded.
I modified sources to add function to emit a signal when Autocomplete
selected Item changes and have a need to know the width.
Also if you are interested in new signal I can provide a patch

TIA,
Stefano
--
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-31 00:19:45 UTC
Permalink
I wonder if there is a way to get current Scintilla AC Box width, after Autocomplete List is loaded.
Scintilla does not expose an API to retrieve this information.

Its likely the information can be derived using platform calls. The list will be a window and platforms provide calls to retrieve their positions such as the win32 call GetClientRect as used by the platform interface method GetClientPosition.
I modified sources to add function to emit a signal when Autocomplete selected Item changes and have a need to know the width.
Also if you are interested in new signal I can provide a patch
Between core Scintilla and the platforms is a 'platform interface' which is supposed to remain stable. Its likely that adding a new signal will require updating this interface, breaking current implementations. Implementations of the signal would (eventually) be required for all platforms. There may even be problems with implementing this on some platforms.

Its worthwhile publishing a patch but adding this to Scintilla will require some person or group to design and implement a cross platform API along with platform-specific implementations.

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
2013-07-31 09:12:55 UTC
Permalink
Post by Stefano Mtangoo
Post by Stefano Mtangoo
I wonder if there is a way to get current Scintilla AC Box width, after
Autocomplete List is loaded.
Scintilla does not expose an API to retrieve this information.
Its likely the information can be derived using platform calls. The list
Post by Stefano Mtangoo
will be a window and platforms provide calls to retrieve their positions
such as the win32 call GetClientRect as used by the platform interface
method GetClientPosition.
Is it possible to get this information in ScintillaBase? If yes any
direction?
Am new to Scintilla internals and I get a bit of problems in understanding
some issues!
Post by Stefano Mtangoo
Post by Stefano Mtangoo
I modified sources to add function to emit a signal when Autocomplete
selected Item changes and have a need to know the width.
Post by Stefano Mtangoo
Also if you are interested in new signal I can provide a patch
Between core Scintilla and the platforms is a 'platform interface' which
Post by Stefano Mtangoo
is supposed to remain stable. Its likely that adding a new signal will
require updating this interface, breaking current implementations.
Implementations of the signal would (eventually) be required for all
platforms. There may even be problems with implementing this on some
platforms.
Its worthwhile publishing a patch but adding this to Scintilla will
require some person or group to design and implement a cross platform API
along with platform-specific implementations.
I see. Its useless anyway apart from my personal uses :)
Post by Stefano Mtangoo
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
2013-07-31 23:53:19 UTC
Permalink
Is it possible to get this information in ScintillaBase? If yes any direction?
You should step through the display of an autocompletion box in a debugger or by reading the code.
I see. Its useless anyway apart from my personal uses :)
Its likely other people will want item selection notifications but if they do, they should now be volunteering to help implement it.

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...