Print Page | Close Window

Multiline Item

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=10820
Printed Date: 22 May 2025 at 6:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiline Item
Posted By: jpbro
Subject: Multiline Item
Date Posted: 28 May 2008 at 8:27pm
I've got a property grid as follows:


   With Me.gridOwner
      .VariableItemsHeight = True
     
      Set objCat = .AddCategory("Contact Information")
      With objCat
         .Expandable = False
         .Expanded = True
      End With
     
      Set objItem = objCat.AddChildItem(PropertyItemString, "Main Contact Name", "")
     
      Set objItem = objCat.AddChildItem(PropertyItemString, "Company", "")
     
      Set objItem = objCat.AddChildItem(PropertyItemString, "Mailing Address", "")
      With objItem
         .MultiLinesCount = 3
      End With
     
     
   End With


The grid appears as expected, and the third child item is a multiline edit box that allows 3 lines of text (so far so good). The only problem is that the user must press Ctrl+Enter instead of just Enter to enter multiple lines of text in the multiline item.

Is there any way to have the Enter key go to the next line in a multiline edit item, or are we stuck with Ctrl+Enter (that is, is it a training issue)?

Thanks a lot.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: Aaron
Date Posted: 28 May 2008 at 10:39pm
Jason,
 
I am afraid you will get stuck with Ctrl-Enter for now.


-------------
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: Oleg
Date Posted: 29 May 2008 at 1:15am
There is workaround
 
Const ES_WANTRETURN = &H1000
 
Item.MultiLinesCount = 3
Item.EditStyle = ES_WANTRETURN
 
 


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


Posted By: Aaron
Date Posted: 30 May 2008 at 5:06am
Hi,
 
Thanks Олег
Are there more workarounds we don't know of?


-------------
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: jpbro
Date Posted: 30 May 2008 at 8:57am
Perfect Oleg, thanks!

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Oleg
Date Posted: 30 May 2008 at 3:10pm
Hi,
EditStyleWantReturn "officially" added to 12.0.1 :-)
 
Sorry about such hacks.


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


Posted By: Aaron
Date Posted: 01 June 2008 at 12:45am
Originally posted by oleg oleg wrote:

Hi,
Sorry about such hacks.
 
Hi Oleg
 
That's OK.
I have been working several years with MS controls so I'm used to it 


-------------
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....



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