Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Multiline Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiline Item

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1357
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: Multiline Item
    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

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1357
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.203 seconds.