Print Page | Close Window

Can we set text right aligned on a static control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11848
Printed Date: 06 October 2024 at 10:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can we set text right aligned on a static control
Posted By: vijaymahajan
Subject: Can we set text right aligned on a static control
Date Posted: 16 August 2008 at 7:15am

Hello,

We have some static controls on the ribbon bar.
We want to set the text right aligned on it.can we do it?Is there any
function to set the text right aligned on a static control?
 
 
 
see,here we want all the strings on left side to be right aligned?
 
Please let me know the solution.
 
Thanks And Regards,
Vijay.



Replies:
Posted By: Oleg
Date Posted: 18 August 2008 at 2:19am
Hi,
 
Sorry, there is no standard method. You can override CXTPControlLabel its
virtual CSize GetSize(CDC* pDC);
and
virtual void Draw(CDC* pDC);
and draw as you need.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net