You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

1

Friday, July 19th 2013, 1:05pm

Listbox (Checkbox)

Having Just installed Jabaco-rev105.jar
There have been some changes that have rendered my program unworkable.
The Listbox.Style = vbListBoxCheckbox does not change the style from the standard listbox
Even if I program it in code instead of just checking the option.

Is there any way to resolve this, before I go berserk ?

Perry

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Friday, July 19th 2013, 6:57pm

RE: Listbox (Checkbox)

There have been some changes that have rendered my program unworkable.


Can you post an examples, please?
Which program runs with the original Jabaco.jar, but no longer with Jabaco-rev105.jar ?


Quoted

The Listbox.Style = vbListBoxCheckbox does not change the style from the standard listbox


That is right. But that don't work with the old Jabaco.jar, too.

As you can read at
http://www.jabaco.org/wiki/ListBox
Manuel tried out an different implementation of it.

Jabaco Source

1
2
3
4
5
6
7
8
9
10
Public Sub Form_Load()
   List1.AddItem New ListCellData("United States", Nothing, False)
   List1.AddItem New ListCellData("Germany", Nothing, True)
   List1.AddItem New ListCellData("Italy", Nothing, True)
   List1.AddItem New ListCellData("United Kingdom", Nothing, False)
   List1.AddItem New ListCellData("Brazil", Nothing, True)
   List1.AddItem New ListCellData("Canada", Nothing, False)
   List1.AddItem New ListCellData("Austria", Nothing, False)
   List1.AddItem New ListCellData("Japan", Nothing, False) 
End Sub

This creates Checkboxes with every Jabaco.jar-version.

Greatings
theuserbl

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

3

Friday, July 19th 2013, 7:39pm

Thanks for your example.
Your example worked on my machine as well.
Now I'll go back and study my code.
you are using a ListCellData method that I have never used.

I used the addItem method. That being the method used in VB
It in previous versions placed the Items with check boxes, providing the CheckBox property Style was selected.

Again thanks... I believe this will resolve it.


Later ...........

That did the Job, and the examples you gave worked fine.
Thanks Again.

This post has been edited 1 times, last edit by "Perry" (Jul 19th 2013, 8:04pm)


Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

4

Friday, July 19th 2013, 8:44pm

Hey there,

I tried with
Jabaco200910070500.jar
from http://www.jabaco.org/framework.html
and
Jabaco200910010500.jar

The earlier version works fine!
So somewhere around rev49, rev50 or rev51 of the framework something has been changed that affects the ListBox CheckBox!!

Dani

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

5

Sunday, August 11th 2013, 9:28pm

Hey there,

I have committed a patch that fixed the Listbox.Style = vbListBoxCheckbox issue.
However, I don't know why the previous code did not work!?

Dani

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

6

Monday, August 12th 2013, 4:55pm

Dani;
Great.
You said a patch ... is that something we can just plug in until a new framework ver?
Where did you commit it? Is there a new Version of the framework out?

Perry

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

7

Monday, August 12th 2013, 6:33pm

Hey there,

You can view the changes I made here:
https://code.google.com/p/jabacoframewor…vn106&r=106#289

The uncommented code looks fine to me. Still, it throws an error!
Maybe someone wants to dig deeper. I am not sure if it is worth a new framework compillation yet.

But you can try this:

download the attached file ListBox.txt
rename it to ListBox.class
backup your Jabaco.jar
copy that file to your Jabaco.jar (winzip, winrar)

Dani

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

8

Wednesday, August 28th 2013, 10:37pm

Have now uploaded Jabaco revision 108:
[ Jabaco-rev108.jar ]

And sad news:
On January 15, 2014 and later, I will no longer have the ability to upload new version of Jabaco.jar on
[ https://code.google.com/p/jbaindi/downloads/list ]
The reason is, that Google stops its service, to upload files for developers:
[ http://google-opensource.blogspot.de/201…ad-service.html ]

Hopefully the SVN-tree of the Jabaco-Framework will be longer supported.

I think I need to surch for a new place for uploading files. Sourceforge isn't such easy. But existing other possibilities?

Greatings
theuserbl

Rate this thread
WoltLab Burning Board