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++ Core » Problem with Droplists and new Value
Re: Problem with Droplists and new Value [message #36551 is a reply to message #36519] Fri, 08 June 2012 15:45 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
AttrText cannot be used as key in droplist, because it lacks comparison operator. This would be broken without SVO_VALUE as well.

Easy solution in this case is to use integer index

dl.Add(0, AttrText("First").SetFont(Arial(12)).Bold().Ink(Red));

(and you can assign values directly then by SetData/<<=, no need to use SetIndex).

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: A warning in Diag.h
Next Topic: String isn't pickable?
Goto Forum:
  


Current Time: Thu Aug 28 13:44:24 CEST 2025

Total time taken to generate the page: 0.07103 seconds