Print Page | Close Window

BUG: MultiLinesCount issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=10568
Printed Date: 13 July 2025 at 12:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: MultiLinesCount issue
Posted By: Aaron
Subject: BUG: MultiLinesCount issue
Date Posted: 09 May 2008 at 3:02am
Hi,
 
If you set for example MultiLinesCount = 3 , you can type as many lines as you want. I thought this would prevent the user from typing more than 3 lines, but it isn't ?!?
 
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....



Replies:
Posted By: Oleg
Date Posted: 09 May 2008 at 4:53am
Hi,
 
By default user can't enter more than 3 lines.
Guess you have
Item.EditStyle = EditStyleAutoVscroll
line.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 09 May 2008 at 6:18am
Hi,
 
No, I haven't
 
All settings for the item
 
Set historyGeneralOptions = historyGeneral.AddChildItem(PropertyItemMultilineString, "TestString [string]", "TestString")
                historyGeneralOptions.Id = 1
                historyGeneralOptions.EditStyle = EditStyleMultiLine
                historyGeneralOptions.MultiLinesCount = 3
                historyGeneralOptions.Height = 100
                historyGeneralOptions.CaptionMetrics.DrawTextFormat = DrawTextVcenter
 


-------------
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: Oleg
Date Posted: 10 May 2008 at 4:41am
Hi,
remove historyGeneralOptions.Height = 100
and user will be able to enter 3 lines.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 11 May 2008 at 1:55am
Oleg,
 
I can still enter more than 3 lines.


-------------
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: Oleg
Date Posted: 11 May 2008 at 10:36am
Hello,
 
I can't.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 11 May 2008 at 2:46pm
Oleg,
 
Thank you very, very, very much for your outstanding support. Now I'm sure you have a magic wand, its unbelievable


-------------
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: jpbro
Date Posted: 28 May 2008 at 8:22pm
Hi Aaron,
I've found that if you use PropertyItemString instead of PropertyItemMultilineString then the number of lines will be limited to MultilinesCount. You won't get the drop-down editor though, so make sure you have set the VariableItemsHeight property to true for the PropertyGrid to show all of the lines.

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 28 May 2008 at 10:31pm
Originally posted by jpbro jpbro wrote:

Hi Aaron,
I've found that if you use PropertyItemString instead of PropertyItemMultilineString then the number of lines will be limited to MultilinesCount. You won't get the drop-down editor though, so make sure you have set the VariableItemsHeight property to true for the PropertyGrid to show all of the lines.
 
Hi,
Did you try to enter more than 3 lines? I think Oleg doesn't believe when I say it you can enter more than 3 lines in the multiline item.


-------------
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: jpbro
Date Posted: 30 May 2008 at 4:25pm
When I use PropertyItemString I cannot enter more than 3 lines. When I use PropertyItemMultilineString I can enter more than 3 lines...

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 31 May 2008 at 1:00am
Hi,
 
Thanks, glad I'm not the only one. Now I can say it's a bug.


-------------
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: Oleg
Date Posted: 02 June 2008 at 2:25am
Hi,
oh... you mean with Popup edit of PropertyItemMultilineString  item ?
Yes, with this edit you can.
 
I mean you can't enter in Edit part of item.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jpbro
Date Posted: 02 June 2008 at 10:07am
Hi Oleg,

I meant with the PropertyItemString item, so your advice worked perfectly regarding the Enter key in the edit part.

I believe that Aaron's complaint is with the PropertyItemMultilineString as it allows you to type more lines than defined in the MultiLinesCount property...this may be by design, but it would be nice if it either honoured the MultilinesCount property by default, or if there was a flag to get it to honour the MutilinesCount property.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: BoboP
Date Posted: 13 June 2008 at 8:06am
Hi !

I have used property grid in my application , where I needed multi-line
text box for value part.

I have it , but then i cant enter multiple lines into it.
it just lets enter only one line.

PropertyGridItem itemP;
                       
itemP = materialDetailItem.AddChildItem(PropertyItemType.PropertyItemMultilineString,"hi","")

itemP.EditStyle = PropertyItemEditStyle.EditStyleMultiLine;

                        itemP.MultiLinesCount = 3;
                        itemP.Height = 100;
                      

whats wrong here ?

Thanks



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