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.

fomaxrge

Trainee

  • "fomaxrge" started this thread

Posts: 88

Date of registration: Aug 14th 2012

  • Send private message

1

Wednesday, August 22nd 2012, 1:21pm

ComboBox1.ListIndex=-1

Hi again i have a button called reset and when is clicked i want to set my combobox1 at the first item.

I have
item1-->empty
item2-->admin
item3-->user

When i do


Public Sub Reset_Click()
ComboBox1.ListIndex=-1 or 0 nothing changed
End Sub

**When i make Listindex=1 or 2 evrything is ok

BUT I CAN NOT SET IT TO -1

could you please help me!

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

2

Thursday, August 23rd 2012, 8:31am

Hey there,

see also bugreport:

http://www.jabaco.org/board/p3125-combob…1.html#post3125

Lately theuserbl is the only one who updates and provides compiled framework versions.
Maybe he is willing to fix this as well?! :rolleyes:

Dani

fomaxrge

Trainee

  • "fomaxrge" started this thread

Posts: 88

Date of registration: Aug 14th 2012

  • Send private message

3

Thursday, August 23rd 2012, 10:16am

Hello again Dani.



I am new user of Jabaco and i am a lit bit confused.

I have to download only the latest framework?

It is something like update?

I do not need the older frameworks?

You told to make a change of the framework code of combobox class how could i make that change?

About listindex-1 is it on the last framework?



Thank you for your precious help!

This post has been edited 1 times, last edit by "fomaxrge" (Aug 23rd 2012, 12:22pm)


Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

4

Thursday, August 23rd 2012, 8:20pm

Hey there,

unfortunatly there is no fixed location for the latest compiled framework version. So someone who is not constantly watching this board will not even know where and what version to look for!
As far as I know this post:

http://www.jabaco.org/board/p3044-comman…r.html#post3044

is pointing to thelatest version.

But as I mentioned the Combo.ListIndex bug is not fixed yet.
I pointed out how to fix it in the framework as you might have seen in the bugreport.

In general to substitute any existing framework on your system all you have to do is:

In your Jabaco installation path rename Jabaco.jar to Jabaco.old in case you need to switch back. And paste in Jabaco-rev87.jar renaming it to Jabaco.jar. Start up Jabaco voila. You are all set!

I think you should start here to understand what the framework is:

http://www.jabaco.org/wiki/Jabaco_Framework

Also there are numerous posts regarding the framework.
Use the search facility to find e.g. how to compile your own framework version!!

Dani

fomaxrge

Trainee

  • "fomaxrge" started this thread

Posts: 88

Date of registration: Aug 14th 2012

  • Send private message

5

Friday, August 24th 2012, 11:16am

Hi Dani thank you for the userfull link.
It helped me a lot to understand the frameworks.


But i have another question yet.
How can i change the code

Public Property Let ListIndex(val As Integer)
If val > 0 And val < ListCount Then
Call Parent.setSelectedIndex(val)
End If
End Property



to something like this?


Public Property Let ListIndex(val As Integer)
If val >= -1 And val < ListCount Then
Call Parent.setSelectedIndex(val)
End If
End Property

so to use it on my program

This post has been edited 1 times, last edit by "fomaxrge" (Aug 24th 2012, 11:32am)


Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

6

Friday, August 24th 2012, 1:41pm

Hey there,

as I have been trying to explain:

In order to make that change you have to compile the framework to get your own Jabaco.jar.
And that is a bit of a task!

You will have to do some reading and searching in this forum.
Check out this thread for a start:

http://www.jabaco.org/board/p3112-http-u…y.html#post3112

I have done this once to get some very specific functionality but I hardly remember every step.

Dani

fomaxrge

Trainee

  • "fomaxrge" started this thread

Posts: 88

Date of registration: Aug 14th 2012

  • Send private message

7

Friday, August 24th 2012, 2:57pm

there is no other way / code to make the pointer go to the combobox with the first item?
For example something like if the value = "empty" (that is my first item)

Sorry if am tiring but i am trying to make my reset button work and i am confused

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

8

Friday, August 24th 2012, 3:08pm

Hey there,

I should have thought of it earlier, just for this one ComboBox:

Jabaco Source

1
ComboBox1.Parent.setSelectedIndex(-1)


You can always access a components java instance directly through it's .Parent intellisense menu!!

Dani

fomaxrge

Trainee

  • "fomaxrge" started this thread

Posts: 88

Date of registration: Aug 14th 2012

  • Send private message

9

Friday, August 24th 2012, 3:41pm

IT WORKS!!!! thank you very much
*Even though i do not not what exactly .parent does i will try to find a tutorial see.
Thank you again

Rate this thread
WoltLab Burning Board