[SOLVED] EditControlStyle = xtpEditStyleMultiline |
Post Reply |
Author | |
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Posted: 26 April 2011 at 8:34am |
Hi,
When setting a column EditControlStyle = xtpEditStyleMultiline (with TextFont set to a larger size) the selection is only partially and other part is cutoff. See image below
Set Me.wndReportControl.PaintManager.TextFont = Me.Font (just set larger size)
Me.wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow + xtpCustomMeasureRow
Add column:
With .Columns.Add(Me.wndReportControl.Columns.Count, "Name", 200, True)
.Alignment = xtpAlignmentVCenter .AutoSortWhenGrouped = True .Sortable = False .Groupable = True .Visible = True .AutoSize = True .Editable = False With .EditOptions .MaxLength = 40 .EditControlStyle = xtpEditStyleMultiline * .SelectTextOnEdit = True End With End With
Private Sub wndReportControl_MeasureRow(ByVal Row As XtremeReportControl.IReportRow, ByVal hdc As stdole.OLE_HANDLE, ByVal Width As Long, Height As Long)
On Error Resume Next If Not Row.GroupRow Then Height = 30 Else Height = 50 End If End Sub * This will produce:
Thanks
edit: It's a Windows flaw, nothing can be done here.
|
|
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.... |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Hi Aaron,
I've tried to reproduce your bug, but everything works fine for me. Please create a support ticket and attach some sample code that reproduces your problem. Andre |
|
Codejock support
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Andre, "Submitting ticket" will always be in forum... I have still a bad taste in my mouth since... Well here it is:
|
|
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.... |
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
I confirm the issue.
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Hi,
this is a bug of the Windows edit control. Please use a appropriate row height to resolve the problem. In the provided sample at least 38px. As you can see here, it is a bug of the underlying Windows control. Just put a standard edit control on the form and set it to multiline and the font to Tahoma 22. Andre |
|
Codejock support
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Andre,
It's indeed Windows flaw, nothing can be done here...
Thanks
|
|
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.... |
|
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 |