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 #27859 is a reply to message #27848] Sat, 07 August 2010 01:06 Go to previous messageGo to previous message
kov_serg is currently offline  kov_serg
Messages: 37
Registered: August 2008
Location: Russia
Member
Try this out:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;

struct Example : TopWindow {
	typedef Example CLASSNAME;
	WithDropChoice<EditString> item;
	Example() {
		SetRect(0,0,200,32);Title("Feel the difference");
		item.AddList(AttrText("one").SetFont(Monospace()));
		item.AddList(AttrText("two").SetFont(Monospace()));
		item.AddList(AttrText("three").SetFont(Monospace()));
		item.AddList("1");
		item.AddList("2");
		item.AddList("3");
		item.SetText("zero");
		item.HSizePosZ(8, 8).TopPosZ(8, 19);
		Add(item);
	}
};

GUI_APP_MAIN {
	Example().Run();
}
The question is what should I write to force this work?
 
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 Jun 02 05:43:45 CEST 2024

Total time taken to generate the page: 0.00378 seconds