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 » Community » Newbie corner » How do I get parameters for GetTextSize ( Get parameters for GetTextSize)
Re: How do I get parameters for GetTextSize [message #43331 is a reply to message #43316] Mon, 30 June 2014 22:02 Go to previous messageGo to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi Awksed,

Ok that is somewhat clearer now. Perhaps you could try the code below:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	DropList dl;
	TopWindow win;
	win.SetRect(0, 0, 400, 50);
	win.Add(dl.HSizePos(4, 4).TopPos(10, Ctrl::STDSIZE));
	dl.Add(0, AttrText("This is bold")SetFont(Courier(25)).Bold());
	dl.Add(1, AttrText("This is red").SetFont(Arial(25)).Ink(Red()));
	dl.Add(2, AttrText("This is centered").SetFont(Tahoma(25)).Center());
	dl.SetLineCy(30);
	dl <<= 0;
	win.Run();
}


Hope this could help you Nod

Good coding

Biobytes
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to position dialog in relation to parent window
Next Topic: Display of long text
Goto Forum:
  


Current Time: Thu May 09 22:39:08 CEST 2024

Total time taken to generate the page: 0.01491 seconds