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. How to convert AttrText to String?
Re: Problem. How to convert AttrText to String? [message #28018 is a reply to message #27846] Fri, 13 August 2010 11:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
kov_serg wrote on Fri, 06 August 2010 05:47

Value v=AttrText("text");
String s=v; // ups - invalid conversion RawValueRep<AttrText> -> String
Is something missed?

It happens when I try to insert Values into WithDropChoice<EditString> with Monospace font.
  ...
  list.AddList(AttrText("option 1").SetFont(Monospace()));
  list.AddList(AttrText("option 2").SetFont(Monospace()));
  ...
But when I select string from drop down list I have empty string as a result Shocked

ps: Upp2467


AttrText was concieved as simple means to put something more formatted to StdDisplay (and thus to everything that is using StdDisplay as default). No further use of such value was expected...
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Portable Delay() function ?
Next Topic: VectorMap<String,String> = Seg Fault
Goto Forum:
  


Current Time: Sun Jul 20 19:36:38 CEST 2025

Total time taken to generate the page: 0.03613 seconds