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

Thursday, January 3rd 2013, 1:01am

Framework Update - Spinner Properties, TabStrip, Tabs

Hey there,

I have updated the framework a bit. With the Spinner Controll please keep in mind, that most properties have to be set AFTER setting a custom model!
In general many properties are very laf dependent so make sure you test on your target system...

TabStrip
Added Property TabLayout() -> setTabLayoutPolicy for ScrollTab or WrapedTab

Provided a Fix for an issue to make Get SelectedIndex() in MouseUp() Event Mac OS X compatible.
Commented it out in the framework; just gives you an idea how to do it!
see -> Public Sub mouseReleased(e As MouseEvent)

Tabs
Added Property Caption() -> Get and Set a Tabs.Caption() at its index

Spinner
Fixed most Properties, added Property Locked(), KeyListener

There is still an issue with ChangeEvent() being triggered twice when a value is set via 'Spinner1.Value = ' and at startup due to Parent.commitEdit() at Let Value().
On the other hand this makes sure that at initial use (user) ChangeEvent() is not fired twice each time with a different value!
I believe it is due to a bug in JSpinner, where its editor does not correctly pass its value.


Tabs
I would like to change

Jabaco Source

1
2
3
4
Public Property Get TabCount() As Integer 
   On Error Resume Next
   TabCount = myTabStrip.Parent.getComponentCount 
End Property


to

Jabaco Source

1
2
3
4
Public Property Get TabCount() As Integer 
   On Error Resume Next
   TabCount = myTabStrip.Parent.getTabCount 
End Property


This will actually get the number of tabs on the TabStrip also when no components are added

Jabaco Source

1
TabStrip1.Tabs.Add(Nothing, "Tab 1")


We could add

Jabaco Source

1
2
3
4
Public Property Get ComponentCount() As Integer 
   On Error Resume Next
   ComponentCount = myTabStrip.Parent.getComponentCount 
End Property


if that is needed...

Any objections?


Dani

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Tuesday, January 8th 2013, 8:11pm

Nice.

Haven't looked at your Tab-solution.
But if getTabCount works correct, then I think your bugfix will be ok.

And here the new uploaded file, so that everybody can trying your changes out:
[ Jabaco-rev103.jar ]
:)

Greatings
theuserbl

Dani

Intermediate

  • "Dani" started this thread

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

3

Thursday, January 10th 2013, 3:04pm

Hey there,

thanks theuserbl, I was counting on you :thumbsup:

I figured it is better to have the framework *.jars in one place!!


Dani

IAO

Beginner

  • "IAO" is male

Posts: 38

Date of registration: May 25th 2013

Location: Venezuela

Occupation: Electronic

  • Send private message

4

Saturday, June 15th 2013, 1:43am

Hi to all..

Thanks mr. theuserbl.
jabaco-rev103.jar with this version works better some programs that do not work.

I copy to Jabaco folder, and rename it to "jabaco.jar" it work well.

many thank you very much :)

This post has been edited 2 times, last edit by "IAO" (Jun 15th 2013, 3:51am)


IAO

Beginner

  • "IAO" is male

Posts: 38

Date of registration: May 25th 2013

Location: Venezuela

Occupation: Electronic

  • Send private message

5

Thursday, June 27th 2013, 2:07am

Hi...

I could see a new javaco-rev.
jabaco-rev105.jar
It's hard to know where they are. Here is the link.

Quoted

http://www.jabaco.org/board/p3547-instr-instrrev-different-results-compared-to-vb6.html#post3547


thanks again mr. theuserbl.

This post has been edited 1 times, last edit by "IAO" (Jun 27th 2013, 2:22am)


Rate this thread
WoltLab Burning Board