You are not logged in.

Search results

Search results 221-240 of 277.

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.

Sunday, March 15th 2009, 10:26pm

Author: OlimilO

List all superclasses interfaces and methods

Hi, this is a small project. The idea to that was born out of the typeOf-function. It lists all superclasses (baseclasses) and interfaces to a given class-name (incl. namespace) even from the project itself, and all included namespaces. don't know if it can be useful for you, see yourself. greetings OlimilO

Sunday, March 15th 2009, 9:24pm

Author: OlimilO

3. Wave audio resources

in VB6 you know the function LoadResData that returns an Array of Bytes and you can use it there like this: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Private m_Wave() As Byte Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" ( _ ByRef lpSound As Byte, ByVal hModule As Long, ByVal dwFlags As Long) As Long Private Const SND_MEMORY As Long = &H4 Private Sub Form_Load() 'Function LoadResData(id, type) ' Mitglied von VB.Global ' Lädt Daten von verschiedenen möglichen Typen...

Sunday, March 15th 2009, 7:14pm

Author: OlimilO

Question: how to use a SplitPane?

Hello again, Quoted "JSplitPane is used to divide two (and only two) Components." this normally is enough, as long as there is a container-control like a panel, that itself throws a resize-event. I miss something like that in Jabaco. in VB6 I used the PictureBox as a Panel-control it also throws a resize event. now I used another solution, i used a UserControl, because it has the resize-event. But there are only two things: * all controls on it are private -> solution: create public properties f...

Sunday, March 15th 2009, 12:43pm

Author: OlimilO

how to implement mouse and keyboard events in an Applet?

Hi, I am wondering how to implement mouse and keyboard events in an Applet? because the interfaces MouseListener an KeyListener are not available for an Applet any idea? OlimilO

Sunday, March 15th 2009, 12:32pm

Author: OlimilO

Better Project Organization

Hi moogly, good idea i would join your suggestion. OlimilO

Sunday, March 15th 2009, 12:18pm

Author: OlimilO

Debugger don't work

Hi Stefan, maybe there is a minor problem of comprehension or something does not work due to a beta-version reason.lets solve your problem step by step: please do the following steps (even if they may look simple to you, please follow the steps): * start Jabaco (click the jabaco -icon) * when Jabaco starts you should see a dialog named "Neues Projekt" in the tab "Neu" select the icon "SDI-Anwendung" (normally it is selected yet) and finish the dialog with the button "Öffnen" * Jabaco finished st...

Wednesday, March 11th 2009, 5:05pm

Author: OlimilO

ListBox.ListIcon ?

Hello, the ListBox-control has the property ListIcon. Has anybody tried this? I assume that it should be possible to give an icon to an item. But i did not manage to do this. any ideas? greetings OlimilO

Wednesday, March 11th 2009, 4:22pm

Author: OlimilO

2. picture resources (pixel based)

I also have bad news: i made bad experiences with pictures of type *.bmp (windows-bitmaps) and *.ico (windows-icons) i did not get them to work. maybe because they are not supported under linux. But don't bother you *.png-, *.jpg- and *.gif-files work fine. imho: the winner of all type of pictures is the png-format Property Editor: for a PictureBox control and everywhere where you have a Picture property, you simply can select the image you like in the Property-editor. Source Code: in your sourc...

Wednesday, March 11th 2009, 3:32pm

Author: OlimilO

1. basics

let's start: select the files you want to integrate in your project: in Jabaco right click on the project-explorer select the menu item "Add File..." or click the button "Add File...". From the drop-down menu select the menu item "Resource". An open-file-dialog appears where you can select your files. After selecting a file, Jabaco does the following things for you: * the files immediately will be copied to a new sub direcotry named "Res" below your jabaco-project folder * for each file an objec...

Wednesday, March 11th 2009, 2:57pm

Author: OlimilO

Resources

Hello Jabaco fans, there are already a few threads that touch on this subject: Loadpicture ; create jabaco menu and toolbar ; I also want to mention maXim's RCC-tool. @maXim Thanks a lot for this nice piece of software from his project I first learned how picture resources can be used in Jabaco. are you curious ? read more ...

Saturday, March 7th 2009, 2:56pm

Author: OlimilO

contains

for "contains" the associative Hashtable is better: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Public Sub Command3_Click() Dim List As New java#util#ArrayList Dim i As Integer For i = 0 To 10 List.add(i) Next MsgBox CStr(List.size) MsgBox "List.contains(5): " & List.contains(5) 'for "contains" the associative Hashtable is better: Dim dic As New java#util#Hashtable dic.put("Apfel", "Apfel") dic.put("Birne", "Birne") dic.put("Melone", "Melone") dic.put("Kiwi", "Kiwi") dic.put...

Saturday, March 7th 2009, 2:40pm

Author: OlimilO

ReDim Crash

OK, for Lists you have to look into java#util Jabaco Source 1 2 3 4 5 6 7 8 Public Sub Command3_Click() Dim List As New java#util#ArrayList Dim i As Integer For i = 0 To 10 List.add(i) Next MsgBox CStr(List.size) End Sub again to arrays: what do you think about LBound? imho: the standard is: lbound is always 0 and therefor LBound is not longer used anymore. greetings OlimilO

Saturday, March 7th 2009, 12:16pm

Author: OlimilO

ReDim Crash

Quoted However, I would like to get warned at compile-time. The Jabaco compiler should reduce the likelihood of run-time exceptions to a minimum of course i agree with you OlimilO

Saturday, March 7th 2009, 12:14pm

Author: OlimilO

ReDim Crash

hmm maybe we should first try to define how it should be expected from Jabaco. what do you think? should Jabaco react and do it the same way as VB6? in VB6 this two sources are äquivalent to define and redim a dynamical array: in one line: Jabaco Source 1 ReDim arr(1 To 3, 2 To 4, 5 To 7) As Integer in two lines: Jabaco Source 1 2 Dim arr() As Integer ReDim arr(1 To 3, 2 To 4, 5 To 7) so the first one can be called as "syntactical sugar" making it possible in Jabaco maybe should be no problem we...

Saturday, March 7th 2009, 9:50am

Author: OlimilO

ReDim Crash

Hi A1880 in VB6 this does not compile much earlier in line 17 you get a errormessage: "Error during comile: Array already dimensioned". do you think that this should be possible in Jabaco whereas it is not possible in VB6? btw: in your second line: Jabaco Source 1 Dim arr(1 To 3, 2 To 4, 5 To 7) As Integer you define a fixedsize array in VB6 whereas with: Jabaco Source 1 ReDim arr(1 To 3, 2 To 4, 5 To 7) As Integer you can define and dimension a dynamical array in one line. try it! greetings Oli...

Tuesday, March 3rd 2009, 3:56pm

Author: OlimilO

storing an enum-constant in a collection

Hi I tried this, but I encountered some problems 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 Option Explicit Public Enum MyEnum FlagNone = 0 Flag0 = 1 Flag1 = 2 Flag2 = 4 Flag3 = 8 End Enum Dim col As Collection Public Sub Command1_Click() Dim f As MyEnum = MyEnum.Flag2 MsgBox f col = New Collection Dim b As Boolean b = col.Add(f) MsgBox b ' why false? Dim f1 As MyEnum 'f1 = col.Item(1) 'ClassCastExce...

Friday, February 27th 2009, 5:42pm

Author: OlimilO

Question: how to use a SplitPane?

Hello everybody, did you see the great Splitpane-control? just say ... this is the left control ,this is the right control it's cool you can use it this way: Jabaco Source 1 2 3 4 Public Sub Form_Load() SplitPane1.setFrame(List1, fmComponentLeft) SplitPane1.setFrame(List2, fmComponentRight) End Sub but i am wondering if it is possible to use more than one control on each side? e.g. on the left, on the upper part we have a textbox and below a listbox. any idea? Thank you in advance OlimilO

Friday, February 27th 2009, 11:51am

Author: OlimilO

How to use static method?

Hello, @A1880 fast richtig # -> expects a namespace but "getDomain" is a function @Gerome why not using an object variable? this works on my computer: Jabaco Source 1 2 3 4 Dim s As String Dim sys As New com#sun#security#auth#module#NTSystem s = sys.getDomain MsgBox s greetings OlimilO

Thursday, February 26th 2009, 6:02pm

Author: OlimilO

ModalDialog II

Hi @all, The last solution maybe is suitable if you have only one modal dialog in your project. But as it grows bigger and bigger you maybe gain for a simpler and more generalized solution. Of course there are some things that can be extracted and put togehter in one single class: ModalDialog The class should do the main work for us that is always the same in every modal dialog. * showing the form/Dialog * substitute the contentpane (needed here) * transfering any desired object (that will be ch...

Thursday, February 26th 2009, 3:16pm

Author: OlimilO

enabling/disabling all components on a container

Hi Jabaco-Amigos this one uses the TypeOf-Function, in order to enable/disable alle controls of a container in one single line. Now there are two methods to reach this * Container_SetControlsEnabled * Component_SetEnabled its usage is like: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 Public Sub CheckBox1_Click() 'enables/disables all controls inside the splitpane Container_SetControlsEnabled(SplitPane1, CBool(CheckBox1.Value)) End Sub Public Sub CheckBox2_Click() 'enables/disables only the TextBox Com...

WoltLab Burning Board