Print Page | Close Window

PropertyGridItem Alignemt

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=10557
Printed Date: 05 July 2024 at 1:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyGridItem Alignemt
Posted By: McKloony
Subject: PropertyGridItem Alignemt
Date Posted: 08 May 2008 at 6:55am
If I set a PropertyGridItem with EditStyle = EditStyleMultiLine and MultiLinesCount = 3 of example, then the Aligment of the PropertyGridItem Caption is VCenter. Is it possible to set it VTopLeft?

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Aaron
Date Posted: 09 May 2008 at 12:02am
Hi,
 
Try this:
 
Item.CaptionMetrics.DrawTextFormat = DrawTextVcenter
Strange property though
 
I set the same properties you did and I found that with setting MultiLinesCount = 3 , you can type as many lines as you want. I thought this would prevent the user from typing more than 3 lines, but it isn't ?!?


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: McKloony
Date Posted: 09 May 2008 at 2:26am
Yes, that's works fine. Thank you!

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



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