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.

Dani

Intermediate

  • "Dani" started this thread

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

1

Tuesday, November 13th 2012, 3:08pm

Spinner source with working Change Event

Hey there,

since I wanted to use the Jabaco Spinner control I had to change a couple of things in my Jabaco Framework to get it to work as expected.
The MouseListener and the KeyListener are obsolete for the JSpinner so I removed them.
Basically there where no Events fired that would allow to confirm value changes.
I added a ChangeListener.

I realized that the implementation of Spinner1.Value should rather set the Value of the underlying SpinnerListModel not of the editor otherwise an initial Change() Event will be fired twice.
It also delivers wrong values when the spinner changes after values are typed to the spinner.
I think the spinner works more precise when we access its models values directly! (I did only limited testing on this!)

I posted some code on how to implement a custom SpinnerListModel in a different thread. With the Change() event it is now possible to actually use this control.

It would be nice to have this in the Jabaco Framework too:

-> Spinner.txt

Dani

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Wednesday, November 14th 2012, 2:51am

RE: Spinner source with working Change Event

It would be nice to have this in the Jabaco Framework too:
Haven't looked special at it.
But it seems, that a Spinner don't exists for VB6. So that implementation can never be incopatible to an original VB6-imnplemantation. :)

Here its is uploaded:
[ http://code.google.com/p/jabacoframework/source/detail?r=95 ]
[ https://jbaindi.googlecode.com/files/Jabaco-rev95.jar ]

But why you don't add your contribution yourself to SVN?

There already existing five commiters:
[ http://code.google.com/p/jabacoframework/people/list ]

You need at first to sign up at google:
[ https://accounts.google.com/NewAccount ]
Then you have to contact manuel, that you want to have committer access.

This side
[ http://code.google.com/p/jabacoframework/source/checkout ]
shows then beside the anonymous checkout your personallized one.

It will be

Source code

1
svn checkout https://jabacoframework.googlecode.com/svn/trunk/ jabacoframework --username youremail@email.com

(instead of "youremail@email.com" there stand then your email with which you have registered yourself at google and which manuel have added as commiter)

To commit, change at first the downloaded files and then upload with

Source code

1
svn commit -m "here you can write a comment" jabacoframework


Thats it.

More information about the svn-commands, you can find at
[ http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.commit.html ]
[ http://svnbook.spears.at/nightly/de/svn.…n.c.commit.html ]
[ http://svnbook.red-bean.com/en/1.7/svn.t…ur.cycle.commit ]
[ http://maverick.inria.fr/~Xavier.Decoret…/svn/index.html ]
[ http://www.yolinux.com/TUTORIALS/Subversion.html ]

And if you want to do that graphical with GUI, then OlimilO have created this side:
[ http://www.jabaco.org/wiki/Develop_the_Jabaco_Framework ]

But myself, I make changes on svn only on command line,


Greatings
theuserbl

Rate this thread
WoltLab Burning Board