Does StyledTextCtrl.AutoCompSetMaxWidth work?

I'm running into the case where the autocompletion box for my
StyledTextCtrl is too narrow and it's cutting off (with '...') the
right most characters. This is very frustrating since for strings
with very long common prefixes, all you see is "[common prefix]..."
for all matches.

I've spent a long time on this and I discovered the
AutoCompSetMaxWidth function. However, I tried to set it
AutoCompSetMaxWidth to 200 chars but it does not seem to do anything.
Is there a way to get around this?

Thanks,

Will

Will wrote:

I'm running into the case where the autocompletion box for my
StyledTextCtrl is too narrow and it's cutting off (with '...') the
right most characters. This is very frustrating since for strings
with very long common prefixes, all you see is "[common prefix]..."
for all matches.

I've spent a long time on this and I discovered the
AutoCompSetMaxWidth function. However, I tried to set it
AutoCompSetMaxWidth to 200 chars but it does not seem to do anything.

After a quick look I don't see that value being used anywhere, so you are probably correct.

Is there a way to get around this?

Is there a way to do the search such that you don't need the big prefix? For example, let the user choose from an autocomp list of the prefixes, and then insert that text and popup another list of the items within the selected prefix (without the prefix being shown in the list).

···

--
Robin Dunn
Software Craftsman