Print Page | Close Window

xtpEditStyleMultiline

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17080
Printed Date: 17 May 2024 at 2:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: xtpEditStyleMultiline
Posted By: markmark
Subject: xtpEditStyleMultiline
Date Posted: 07 August 2010 at 3:08am

Hi

 

If you use the code I entered below, you can enter text on multiple lines.

What my customers are asking.....

 

   1   Can we use enter and not Control & enter to get a new line.

   2   Can the row grow as we enter a new line.

 

 

Thanks

 

Mark

 
Private Sub Form_Load()
 Dim rRec As ReportRecord
 Dim rItem As ReportRecordItem

 wndReportControl.AllowEdit = True
 wndReportControl.SetCustomDraw xtpCustomMeasureRow

 wndReportControl.Columns.Add 0, "Notes", 200, True

 Set rRec = wndReportControl.Records.Add
 Set rItem = rRec.AddItem("Some Text")
 rItem.CreateEditOptions
 rItem.EditOptions.EditControlStyle = xtpEditStyleMultiline + xtpEditStyleAutoVScroll

 Set rRec = wndReportControl.Records.Add
 Set rItem = rRec.AddItem("And Some Text")
 rItem.CreateEditOptions
 rItem.EditOptions.EditControlStyle = xtpEditStyleMultiline + xtpEditStyleAutoVScroll

 wndReportControl.Populate
End Sub



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



Replies:
Posted By: Aaron
Date Posted: 07 August 2010 at 12:46pm
Hi Mark,
 
I think you have live with it... You could set Column.Alignment = xtpAlignmentWordBreak and user can see more of the editing field while typing. But a autoresize would be handy  I will add this to my list and maybe CJ feels like to add this request.
 
 
 
  


-------------
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: markmark
Date Posted: 09 August 2010 at 3:06am

Thanks for your reply Aaron.

Shame about the auto size when editing an item, but would be great if CJ added this.
Any idea about the newline using just enter?
 
I have put a support call in to CJ for this, but as yet no reply.
 
Thanks
 
Mark


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


Posted By: Aaron
Date Posted: 09 August 2010 at 9:58am
Hi Mark,
 
I don't see a way to add newline with ENTER key. The editing stops when using ENTER key so... Guess we have to wait for CJ
 
Good luck
  


-------------
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: Xander75
Date Posted: 09 August 2010 at 10:59am
Hi,

@Aaron: It should be possible to detect that a user has pressed the Enter key using "PreviewKeyDown" then using ReportControl.Navigator.BeginEdit to reselect the cell for editing. I have done so but in my code this is used to move onto the next editable cell.

Although this does mean the cursor would move out of it's position when the cell being edited regains focus, unless there's a way of storing the cursor position and resetting it, but I doubt it.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: Aaron
Date Posted: 09 August 2010 at 11:15am
Originally posted by Xander75 Xander75 wrote:

Hi,

@Aaron: It should be possible to detect that a user has pressed the Enter key using "PreviewKeyDown" then using ReportControl.Navigator.BeginEdit to reselect the cell for editing. I have done so but in my code this is used to move onto the next editable cell.

Although this does mean the cursor would move out of it's position when the cell being edited regains focus, unless there's a way of storing the cursor position and resetting it, but I doubt it.
 
Hi,
 
I tried that but it didn't start edit so I gave up on that option. I think CJ needs to help Mark (and maybe others who need this)
 
Thanks though for looking at this
 


-------------
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: markmark
Date Posted: 10 August 2010 at 2:09am
Yes thanks to you both.
 
I will see what CJ can do for me.
 
Thanks again
 
Mark


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


Posted By: markmark
Date Posted: 13 August 2010 at 10:04am
Hi Codejock.
 
Any update to this, and my support ticket.
 
Thanks
 
Mark


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



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