Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - xtpEditStyleMultiline
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpEditStyleMultiline

 Post Reply Post Reply
Author
Message
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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.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
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: 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....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
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: 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....
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
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: 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....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.