Thanks for this hint/correction.
How do I include these new controls in my projects?
They don't appear in the list of controls within the IDE.
Have a look at the uDirBrowse-example:
http://code.google.com/p/jabacoframework…uDirBrowse.jsrc
DirListBox is a UserControl written by FrancoAA. In this case, it is better to integrate the DirListBrowse code completly as Sourcecode in the own project. Because integrating only the binary code, then in the IDE there is no widget to use.
Is it enough to use a "new FileList()"?
FileListBox was implemented by me as Class file. So to use it, it is still a little tricky. Right.
The following does
not work:
|
Jabaco Source
|
1
2
3
4
5
6
|
Public Sub Command1_Click()
Dim d As New FileListBox()
d.Parent.show()
Debug.Print d.List(1)
End Sub
|
Thats a little bit to short. I am currently on Linux, so I can't test it. But I know, that you have everything to write, what the IDE do otherwise automatical.
For your code it means:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Public Sub Command1_Click()
Dim d As New FileListBox()
d.Top = 5
d.Left = 5
d.Height = 150
d.Width = 200
d.Visible = True
d.BorderStyle = fmBorderStyleSingle
d.CanGetFocus = True
d.Enabled = True
d.FixedCellHeight = -1
d.FixedCellWidth = -1
d.FontBold = False
d.FontItalic = False
d.FontName = Arial
d.FontSize = 9
d.MousePointer = vbDefault
d.Orientation = lstOrientationVertical
d.Style = vbListBoxStandard
d.MouseIcon = Nothing
Me.add(d)
d.Parent.show()
Debug.Print d.List(1)
End Sub
|
For more examples of integrating new controls in Jabaco hava a look at the examples at
http://www.jabaco.org/board/589-examples…s-and-more.html
For example the LineExample uses a "Line-Control", which not exists in the IDE.
And the JabPic-example uses - if I remember right - a control with vertical text, which not exists as control in the IDE.
Is the list of controls automatically derived from the Jabaco.jar?
No, that is the sadly problem. The shown controls in the IDE are completly independent of Jabaco.jar. They exists, too, when Jabaco.jar not exists.
The only controls which are not automatical there are self created UserControls. But they are only there, if the USerControls are in Sourcecode in your project.
Is it necessary to edit some configuration files?
No.
Greatings
theuserbl