You are not logged in.

Search results

Search results 21-40 of 112.

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.

Tuesday, August 26th 2014, 4:33pm

Author: jbExplorer

How to write a Jabaco app, where the routines are callable from elsewhere.

Quoted from "theuserbl" Don't know, what you have a problem with that. Have added a Function-Test project, which shows, that everything works fine. Quoted from "theuserbl" Don't know, what you have a problem with that. Have added a Function-Test project, which shows, that everything works fine. theuserbl, Never mind. I exited from the calling app, went back in, and everything fine, thanks.

Tuesday, August 26th 2014, 3:24pm

Author: jbExplorer

How to write a Jabaco app, where the routines are callable from elsewhere.

Source code 1 2 3 Public Static Sub SayHello() MsgBox "Hello Jabaco-folks!" End Sub Although this works as a sub, what if you want to write a function, to be callable from another app? For example, in the same application where your SayHello example works ( Test.SayHello() works fine, thanks ), I tried Source code 1 2 3 4 5 Public Static Function GetTestString() As String Dim sTestString As String sTestString = "What the...?" GetTestString = sTestString End Function But, when it's called, Sourc...

Friday, August 1st 2014, 7:31pm

Author: jbExplorer

Do it like ...

"I'll translate several parts to C++ and Jabaco." Nice. I Always thought, it made sense to port as much as possible to Jabaco, since its syntax is so similar to VB. "I'll improve the Design-Editor and rewrite in C++ with Jabaco/JNI-connection. I've completed several tests successfully. Version 1.6 will handle the Java LAF in the Designer Many parts are written in VB6 and I tried to use VB6 only. But it's not possible to reach acceptable performance without C++." Thanks for the update, Manuel. Al...

Friday, August 1st 2014, 7:26pm

Author: jbExplorer

Do it like ...

Quoted from "spysonic" version 1.6... please.. Sorry about that, chief.

Monday, July 28th 2014, 6:08pm

Author: jbExplorer

Redirecting standard output and standard error, to text boxes

So the forum doesn't actually have tags. Ok, we can leave as is. Hopefully anybody will think to use 'standard output' if 'stdout' doesn't pan out. Thanks & regards,

Monday, July 28th 2014, 2:11pm

Author: jbExplorer

Redirecting standard output and standard error, to text boxes

Quoted from "Dani" Hey there, nice sample on how to redirect an output stream. THANKS... BY using Quoted java/io/OutputStream as superclass for clsOutputStream you are allready overriding every generic method and property that you are addressing! So... Jabaco Source 1 2 3 4 5 6 7 8 9 10 Public Sub write( nOutputCharacter As Integer ) 'Me.writeOverridable( nOutputCharacter ) Dim cOutputCharacter As String cOutputCharacter = Chr( nOutputCharacter ) txtJBTextArea.AppendText( cOutputCharacter ) End...

Monday, July 28th 2014, 11:40am

Author: jbExplorer

Can we use the Jars in production?

Quoted from "spysonic" I thought "silence means yes"... and I thought we're allowed to use what we create in jabaco in any way we like The output of Jabaco is free to use.

Sunday, July 27th 2014, 4:34pm

Author: jbExplorer

Redirecting standard output and standard error, to text boxes

Assume the form is named frmTest, and you have 2 text boxes, frmTest.txtOut and frmTest.txtErr In the main proc, Source code 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 Import java#io#PrintStream Public psError As PrintStream Public psOut As PrintStream '... '... '... Public Sub main(ByJava args() As String) '... '... Dim opStreamErr As clsOutputStream Dim opStreamOut As clsOutputStream '... '... frmTest.SetDefaultClose() frmT...

Sunday, July 27th 2014, 2:41pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Ugh. Stupid. It's in the middle of the form_load, so the child components haven't been fully defined yet. Alright, please disregard all of the above. I'll start a new thread, with the solution to this question. But only after cutting the grass first.

Sunday, July 27th 2014, 1:53pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Quoted from "jbExplorer" Quoted from "jbExplorer" Quoted from "Dani" Quoted from "jbExplorer" but I was trying to find out if there was a way to redirect the output, before it hits that window. If you found a solution, please do share your code! Thanks Dani Of course, will do. Dani, I'm converting a Java example, and will share the code when it's finished. Can a VB#TextBox be cast, as a JTextArea? I'm sublcassing OutputStream, and one of the parameters is a JTextArea instance. So, in the form l...

Saturday, July 26th 2014, 8:25pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Quoted from "jbExplorer" Quoted from "jbExplorer" Quoted from "Dani" Quoted from "jbExplorer" but I was trying to find out if there was a way to redirect the output, before it hits that window. If you found a solution, please do share your code! Thanks Dani Of course, will do. Dani, I'm converting a Java example, and will share the code when it's finished. Can a VB#TextBox be cast, as a JTextArea? I'm sublcassing OutputStream, and one of the parameters is a JTextArea instance. So, in the form l...

Saturday, July 26th 2014, 8:00pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Quoted from "jbExplorer" Quoted from "Dani" Quoted from "jbExplorer" but I was trying to find out if there was a way to redirect the output, before it hits that window. If you found a solution, please do share your code! Thanks Dani Of course, will do. Dani, I'm converting a Java example, and will share the code when it's finished. Can a VB#TextBox be cast, as a JTextArea? I'm sublcassing OutputStream, and one of the parameters is a JTextArea instance. So, in the form load, we have Source code ...

Wednesday, July 23rd 2014, 10:30pm

Author: jbExplorer

Is there a way to refer to a form at runtime?

Quoted from "theuserbl" Quoted Dani/theuserbl, this is the type of thing I'm looking for. Good to know that the actual design names are no longer available. One more question - how would I find properties like the MousePointer (vbDefault) or Caption, for a parent form? I already mentioned this link: [ http://www.jabaco.org/board/1129-me-cont…k.html#post4192 ] Every control have a SuperClass. That have itself a superclass, etc. You can ask, in the program code, what control it is: Jabaco Source ...

Wednesday, July 23rd 2014, 5:06pm

Author: jbExplorer

Is there a way to refer to a form at runtime?

Quoted from "Dani" have a look her at AbstractForm: https://code.google.com/p/jabacoframewor…stractForm.jsrc and this Function: 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 Private Function getParentContainer() As Container Dim comp() As java#awt#Component Dim i As Integer comp = Me.getComponents() Dim rootComp As Container For i = 0 To Ubound(comp) If comp(i).getClass.getName.equals("javax.swing.JRootPane") Then rootComp...

Wednesday, July 23rd 2014, 4:04pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Quoted from "Dani" Quoted from "jbExplorer" but I was trying to find out if there was a way to redirect the output, before it hits that window. If you found a solution, please do share your code! Thanks Dani Of course, will do.

Wednesday, July 23rd 2014, 4:00pm

Author: jbExplorer

Is there a way to refer to a form at runtime?

Quoted from "theuserbl" Quoted from "jbExplorer" But I was looking for a way to access the forms, by sort of compiling a component name string that is typed, while the application is running. It can't be hard-coded. It has to be typed in, during runtime. Don't know, what you mean, Do you mean something like [ http://www.jabaco.org/board/1129-me-cont…k.html#post4192 ] Where yoiu can access all created controls. Or do you want to create your own control on runtime? : Jabaco Source 1 2 3 4 5 6 7 8...

Wednesday, July 23rd 2014, 1:16pm

Author: jbExplorer

Is there a way to refer to a form at runtime?

Quoted from "spysonic" Hello.. dont know if this is what you mean. Public Sub Text2_Change(ChangeType As ChangeType, ChangeEvt As DocumentEvent) If Text2.Text = "form1.text1.text" Then: MsgBox Me.Text1.Text End Sub It display on the message box the string entered in text1 after typing "form1.text1.text" in text2" sorry im a super beginner! Thanks for trying Spy. But I was looking for a way to access the forms, by sort of compiling a component name string that is typed, while the application is ...

Wednesday, July 23rd 2014, 1:11pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Quoted from "Dani" Hey there, if you want to access the StackTrace: Jabaco Source 1 2 3 4 5 6 7 'Import java#util#Arrays Dim Stack() As String, i As Integer Stack = Split(Arrays.toString(Err.getStackTrace()),",") For i = 0 To Ubound(Stack) Debug.Print Stack(i) Next i Dani Thanks, Dani. I can do that, but I was trying to find out if there was a way to redirect the output, before it hits that window. Anyway, it's no longer necessary. All set, thanks.

Tuesday, July 22nd 2014, 11:06pm

Author: jbExplorer

Is there a way to refer to a form at runtime?

If you have a form called frmTest, and maybe you have 2 controls, a listbox and a text box, lstTest and txtTest, Can you refer to the form from the txtTest, at runtime? In other words, at runtime, if you type in the txtTest, this string: frmTest.txtTest.Text , is there a function that can read that string, and then return the value of Text, from txtTest? Just trying to see if there are ways of querying the properties of the form, while the user is actually in the form.

Tuesday, July 22nd 2014, 10:05pm

Author: jbExplorer

Questions about the bottom windows, in the IDE

Quoted from "jbExplorer" Hi, The bottom right window, the one that contains 'Listening for transport', and any errors - that's the standard error, correct? Is there an official Jabaco method for redirecting this, to a text box? It is standard error, and it's easy to direct it to a file with printstream and seterr. But I don't know how to direct it, to a component text area.

WoltLab Burning Board