ListBox Text property error (bug?) |
Post Reply |
Author | |
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
Posted: 14 March 2010 at 3:02pm |
Why the Text property of ListBox is read-only?
I don't understand because Description say that we can Gets or sets, while Property Type say Read-only.
The help file report:
DescriptionGets or sets the text associated with this control. Property typeRead-only property This property should be read and write, for compatibility with VB.ListBox control.
Many times need to select a ListBox item we use the Text property and is a sample way to select the item, without know the Index.
I.e., if we don't know the Index property, the Codejock ListBox force us to do extra work to search for all items to compare Text with us string, then set item using ListIndex.
So, if anyone would to migrate from VB.ListBox to XtremeSuiteControls.ListBox, must re-code all reading of Text property!
Using VB.ListBox:
List1.Text = "MyItem" <--- this not work XtremeSuiteControls.ListBox
Using Codejock.ListBox:
Dim idx as Long
For idx = 0 to List1.ListCount -1
If List1.List(idx) = "MyItem" Then
List1.ListIndex = idx
End If
Next idx
I think to be inadvertence...
I hope you plain to remove this limitation. |
|
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 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
You can use simply use FindItem-Method.
|
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
Thank you for reply.
OK, I know this, but the problem is different.
I explain: Codejock Controls is an 'enhanced replacement' for intrinsec VB controls (at least).
So, CJ.ListBox should be 100% compatible with VB.ListBox control. Instead isn't!
Moreover, this problem involve many other Codejock Controls.
When I want to migrate a VB project which use intrinsic VB controls, I would that the old VB control Properties and Methods should be supported in CJ Controls.
Instead I forced to rewrite a lot of code to solve the problems created by SuitePro because:
Many native Properties and Methods of VB controls not longer work in SuitePro.
Methods not supported. Example:
ListBox and ComboBox doesn't allow to add Item a design time.
ListView doesn't allow to create ColumnHeaders a design time.
Properties not supported. Example:
MouseIcon and MousePointer is missing on almost all of controls.
This is only a example, but there are many other methods and properties not supported by SuitePro.
Sincerely, after enthusiastic purchasing, I still discover day by day (with my disappointment) a lot of limitations in Codejock SuitePro ActiveX.
I don't know if I will renew my subscription next year...
|
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Thanks, we added "set" implementation for Text property.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |