Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Suggestion for SuggestCtrl
Suggestion for SuggestCtrl [message #50069] Wed, 11 July 2018 02:34 Go to next message
luoganda is currently offline  luoganda
Messages: 205
Registered: November 2016
Experienced Member
Adding this two to SuggestCtrl may be usefull...
void ChkAddList(const WString& s)                 { if(-1==FindIndex(data,s))data.Add(s); }
const Vector<WString>& GetList()                  { return data; }


Also, adding AdjustWidth - to adjust dropDownArrList to owner width - would be nice,
but using something like: Logc x; x.SetB(GetSize().cx);list.SetPosX(x); doesn't seem to work.

[Updated on: Wed, 11 July 2018 18:17]

Report message to a moderator

Re: Suggestion for SuggestCtrl [message #50091 is a reply to message #50069] Mon, 23 July 2018 10:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Thanks, applied. I have renamed ChkAddList to FindAddList (a little bit more consistent IMO).

I have also made changes to the width of drop popup - I guess it now does what you need as default.
Re: Suggestion for SuggestCtrl [message #50092 is a reply to message #50069] Mon, 23 July 2018 18:29 Go to previous messageGo to next message
luoganda is currently offline  luoganda
Messages: 205
Registered: November 2016
Experienced Member
Yes, that would be it, thanks.

But there is a small bug in
void FindAddList(const char *s)...
the bug is recursion.
Re: Suggestion for SuggestCtrl [message #50093 is a reply to message #50092] Tue, 24 July 2018 08:30 Go to previous message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Thanks.
Previous Topic: DHCtrl, Ctrl NoBackPaint ignored?
Next Topic: DockWindow->Button hover paint bug
Goto Forum:
  


Current Time: Fri Nov 01 01:12:01 CET 2024

Total time taken to generate the page: 0.03374 seconds