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 » can't WithDropChoice's data be accessed?
icon5.gif  can't WithDropChoice's data be accessed? [message #13284] Sat, 29 December 2007 03:34 Go to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
i use the template for EditString and EditInt.
when i input values, i can AddHistory().
but i don't see any other kinds of actions i can take to its data, except clear(). i need Find, at least Erase, At, etc.
Re: can't WithDropChoice's data be accessed? [message #13311 is a reply to message #13284] Mon, 31 December 2007 19:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, that is correct.

If you need erase, for now I recommend Clear and recreate the list.

Mirek
Re: can't WithDropChoice's data be accessed? [message #13375 is a reply to message #13284] Thu, 03 January 2008 17:11 Go to previous message
tvanriper is currently offline  tvanriper
Messages: 85
Registered: September 2007
Location: Germantown, MD, USA
Member
I had a similiar, but slightly different problem.

I only wanted to iterate over the existing entries, so I could present them in another dialog for changes... basically, I wanted a way to manipulate the 'history'.

To that end, follow this:

http://www.ultimatepp.org/forum/index.php?t=msg&th=3028& amp;start=0&

The changes I proposed will not change the entries, but will make it possible to iterate over them in a read-only fashion (thanks to the wonders of the const keyword).

As luzr said, you'd still need to use Clear and recreate the list, if you wanted to make edits... but at least you can see what's actually in the list.

I suspect this behavior is needed, in order to keep certain parts of the state stable (e.g. whether-or-not to display a drop-list at all).
Previous Topic: new DropList items cannot be inserted at the beginning
Next Topic: Proposed change for TabCtrl: Color of text...
Goto Forum:
  


Current Time: Fri Apr 19 20:10:23 CEST 2024

Total time taken to generate the page: 0.04338 seconds