You are not logged in.

Search results

Search results 101-120 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.

Monday, October 12th 2009, 5:37pm

Author: OlimilO

Playing Sound tutorial

We can make a procedure out of this, that simply plays a wave-file. Maybe this is suitable if you want to make a simple sound or noise in case the user of your program makes some silly things. Jabaco Source 1 2 3 4 5 Public Sub PlayWavFile(wavPath As String) Dim wavClip As Clip = AudioSystem.getClip wavClip.open(AudioSystem.getAudioInputStream(New File(wavPath))) wavClip.start End Sub

Monday, October 12th 2009, 5:35pm

Author: OlimilO

even much shorter

Of course we can shorten this a little bit Jabaco Source 1 2 3 4 5 6 7 8 9 Public Sub Command2_Click() Dim wavClip As Clip = AudioSystem.getClip wavClip.open(AudioSystem.getAudioInputStream( _ New File("C:\Windows\Media\chimes.wav"))) wavClip.start End Sub

Monday, October 12th 2009, 5:29pm

Author: OlimilO

How do I play a WAV file continuously?

thers' really no need for a heart attack. Its' so easy, maybe have a look at this tiny little sound tutorial. regards OlimilO

Monday, October 12th 2009, 5:23pm

Author: OlimilO

Playing Sound tutorial

How to play sound with Jabaco? It's time for my tiny little sound tutorial I wrote months ago. It's really easy... 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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Import java#io Dim WinMedia As String Public Sub Form_Load() ' ' we fetch the windows-directory from the system environment ' at the beginning, because we may need it often ' WinMedia = system.getenv(...

Monday, October 12th 2009, 2:23pm

Author: OlimilO

Option Strict On

Yes and No, unfortunately, "Option strict on" does make more other problems at the moment. But... it is just this: when the compiler detects incompatible types it simply does not compile. Conclusion is: take care of the types by yourself, be your own "Option strict on" OlimilO

Monday, October 12th 2009, 1:12pm

Author: OlimilO

Cursor in Textbox immer schwarz?

would be better if we implement Backcolor and Forecolor for variables of type Color

Monday, October 12th 2009, 1:07pm

Author: OlimilO

Cursor in Textbox immer schwarz?

Quoted Vielleicht wäre es besser, keine automatische Konversion von Objekten auf "Long" zu versuchen. Yes exactly, use Jabaco Source 1 Option Strict On Java has a strict type system. VB6 has not. This is why Jabaco has to do some conversions in order to simulate VB-behaviour. Better not try to assign a variable of type Color to a property of type Long. OlimilO

Sunday, October 11th 2009, 8:58pm

Author: OlimilO

Cursor in Textbox immer schwarz?

Hi, in VB6 ist die Function RGBim Modul Information zu finden. Für Jabaco auch, außerdem gibt es da noch die Funktionen * ColortoRGB * RGBtoColor das mit setCaretColor ist ein guter Tipp. Frage: sollte man so wie in VB6 die Cursor-Farbe automatisch auf die complementäre Hintergrundfarbe setzen? die Geschichte mit Not hab ich jetzt in einer MiniFunktion (in Information) gelöst: Jabaco Source 1 2 3 4 5 Dim orangeColor As Color = Color.orange Dim orangeRGB As Long = ColortoRGB(orangeColor) Text1.Ba...

Saturday, October 10th 2009, 10:52am

Author: OlimilO

JFrame vs JDialog.

Quoted It is Public Domain? it is just a sample project where you can see some features of Jabaco. OlimilO

Friday, October 9th 2009, 6:54pm

Author: OlimilO

JFrame vs JDialog.

OK, em, the more i read about principles of JFrame and JDialog, the differencies maybe have nothing to do with platform independency. But another thought: there were some people asking for Jabaco on mobile devices. It would be nice to be able to "switch" Jabaco to a mobile-Framework. regards OlimilO

Friday, October 9th 2009, 3:47pm

Author: OlimilO

JFrame vs JDialog.

Hi Faldegast, Quoted Any thougths about this? hmm.. Quoted I am immensly annoyed with the JFrame vs JDialog problem. JFrame for example lack modality and JDialog lack WindowState. I was annoyed with this when developing Java apps and am still annoyed when i see that this is a problem in Jabaco to immense problems ... could you please explain a little more? Quoted JFrame and JDialog are just Swing wrappers for the AWT Frame and Dialog. Would you call it a wrapper? ähm in fact it is a subclass. Ha...

Tuesday, October 6th 2009, 7:08pm

Author: OlimilO

thanks fixed

Hi Faldegast, thanks, fixed! Jabaco Framework Collection Want to take part of the development of the Jabaco Framework? have a look at the tutorial: Develop the Jabaco Framework regards OlimilO

Tuesday, October 6th 2009, 6:36pm

Author: OlimilO

Language mix

Hi Faldegast, Quoted I think that mixing Basic and Java code in a project may be useful indeed exactly just have a look at the Jabaco-Framework. In the folder VBA there is Java-code and in the folder VB there is Jabaco-code. So it's possible to implement things that are not possible for the Jabaco-compiler for now. e.g. bit-shifting use: ShL, ShR instead of <<, >> regards OlimilO

Monday, October 5th 2009, 6:14pm

Author: OlimilO

First 'serious' app, and something's not right

Quoted Also It'd be really nice if the next iteration of Jabaco allowed one to set commandline options in the IDE Yes, good suggestion, please note it under "Suggestions" so hopefully it won't be forgotten Quoted why the app stays in memory after it runs, requiring a process kill as already mentioned in the forum at different places, please use System.exit(0) or VBA#Global.End Source code 1 2 3 4 Public Sub bOK_Click() Unload Me VBA#Global.End End Sub Quoted why I tell the OK button to get the ...

Monday, October 5th 2009, 4:14pm

Author: OlimilO

String.startswith

at first glance: Have you noticed the function "startswith" of a java#lang#string? A Jabaco string can be casted to a java#lang#string "on the fly". Please write "Option Explicit" in the first line of Module1, start your app, and watch what Jabaco says. Everything what belongs to the form should be coded inside the form-module, do not use "Form1" from everwhere, but use "Me" inside the form. regards OlimilO

Monday, October 5th 2009, 1:48am

Author: OlimilO

What the Jabaco equiv for Dir$() and GetAttr()?

Hi Bruce, I've "tried" to implement Dir and GetAttr you can find it in the module FileSystem the same as in VB. for updating your Framework: in Jabaco click the menu item "?"->"Get the latest snapshot". But ... you can not use it like you did it here, however thanks to your hint, until now. Do you want to implement it? it's possible ... in Java you simply need java#io#File.listFiles() which delivers an array of files Are you already a Jabaco-Framework developer? have you seen the tutorial: Devel...

Saturday, October 3rd 2009, 8:35pm

Author: OlimilO

Passing Long Pointer to String in *W Win32 API calls

Hi Bruce, If you had a Visual Basic that could be used with the same code and with the same assembly on EVERY platform like, Linux, MacOS, Windows... wouldn't you say better goodbye to good old well known API-dll-hell under Windows? Try to give it a chance Possible very easy solution to your drive letters problem without WinAPI: Jabaco Source 1 2 3 4 5 6 Dim roots() As java#io#File roots = java#io#File.listRoots Dim i As Integer For i = 0 To Ubound(roots) Debug.Print roots(i) Next greetings Olim...

Saturday, October 3rd 2009, 1:25pm

Author: OlimilO

here

Yes I know. it comes from: Microsoft Scripting Runtime C:\Windows\system32\scrrun.dll In VB it is a very commonly used ActiveXdll. And in Jabaco most of the functionality is availiable through diverse classes in java#io, java#util...

Saturday, October 3rd 2009, 11:09am

Author: OlimilO

Compile error infinite loop

Hi Bruce, I pasted your code in Jabaco and tried it, but apart from the missing "Scripting"-stuff, I do not get any other error message nor infinite loops. Could you please upload your project. OlimilO P.S.: Quoted Did not register the class, BTW. Yes, BTW how would you register a class in Jabaco? There simply is no class named "Scripting" in the Jabaco Framework, but you could help to create one. Believe me I brood much about the ActiveX-problem. What do you think, how many ActiveXdlls are out ...

WoltLab Burning Board