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 » Draw, Display, Images, Bitmaps, Icons » Centering text in a rectange
Re: Centering text in a rectange [message #35351 is a reply to message #35341] Sat, 04 February 2012 15:33 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
jerson wrote on Fri, 03 February 2012 11:21

This is how I would do it. The gurus out here might have simpler ways to achieve the same



Point p = rect.CenterPos(GetTextSize(...));

[Updated on: Sat, 04 February 2012 15:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use the same .iml from multiple source files.
Next Topic: Bug: Missing width in DrawArc on X11
Goto Forum:
  


Current Time: Sat Apr 27 21:11:21 CEST 2024

Total time taken to generate the page: 0.04568 seconds