|  | 
| xtpEditStyleMultiline | 
| Post Reply   | 
| Author | |
| markmark   Senior Member   Joined: 30 November 2007 Status: Offline Points: 142 |  Post Options  Thanks(0)  Quote  Reply  Topic: xtpEditStyleMultiline 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.Columns.Add 0, "Notes", 200, True  Set rRec = wndReportControl.Records.Add  Set rRec = wndReportControl.Records.Add  wndReportControl.Populate | |
| 
     Product: Xtreme SuitePro (ActiveX) version 13.0.0
 Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 | |
|  | |
| Aaron   Senior Member   Joined: 29 January 2008 Status: Offline Points: 2192 |  Post Options  Thanks(0)  Quote  Reply  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.... | |
|  | |
| markmark   Senior Member   Joined: 30 November 2007 Status: Offline Points: 142 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Aaron   Senior Member   Joined: 29 January 2008 Status: Offline Points: 2192 |  Post Options  Thanks(0)  Quote  Reply  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.... | |
|  | |
| Xander75   Senior Member     Joined: 26 April 2007 Status: Offline Points: 353 |  Post Options  Thanks(0)  Quote  Reply  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) | |
|  | |
| Aaron   Senior Member   Joined: 29 January 2008 Status: Offline Points: 2192 |  Post Options  Thanks(0)  Quote  Reply  Posted: 09 August 2010 at 11:15am | 
| 
 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.... | |
|  | |
| markmark   Senior Member   Joined: 30 November 2007 Status: Offline Points: 142 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| markmark   Senior Member   Joined: 30 November 2007 Status: Offline Points: 142 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |