Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - BUG: MultiLinesCount issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: MultiLinesCount issue

 Post Reply Post Reply
Author
Message
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 Topic: BUG: MultiLinesCount issue
    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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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 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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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: 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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2008 at 10:36am
Hello,
 
I can't.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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: 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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: 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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
BoboP View Drop Down
Groupie
Groupie


Joined: 21 March 2008
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote BoboP Quote  Post ReplyReply Direct Link To This Post 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
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.