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.
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
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
thers' really no need for a heart attack. Its' so easy, maybe have a look at this tiny little sound tutorial. regards OlimilO
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(...
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
would be better if we implement Backcolor and Forecolor for variables of type Color
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
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...
Quoted It is Public Domain? it is just a sample project where you can see some features of Jabaco. OlimilO
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
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...
good suggestion, how would you design and code it?
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
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
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 ...
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
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...
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...
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...
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 ...