You are not logged in.

Search results

Search results 21-40 of 40.

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, August 5th 2013, 1:02pm

Author: Perry

Shell

This is what I got So Far --------------------------------------------- Source code 1 2 3 4 5 6 7 8 9 10 11 Dim FN as String,SN as String Dim ShellExecute As java#lang#Runtime = Java#lang#Runtime.getRuntime ' *** This below is Dimmed for future error checking *** Dim IOP As Java#lang#Process = Java#lang#Process Dim IOE As java#io#BufferedReader = Java#io#BufferedReader FN = "H:\Library\Filename.rtf" SN = "start " & FN Debug.Print SN ShellExecute.exec(SN) -----------------------------------------...

Friday, August 2nd 2013, 3:05pm

Author: Perry

Shell

There is a Java Example that I found Online, but I'm not good enough at Java to convert this to Jabaco. I'm going to try though.... maybe I'll learn something. I found it at: https://gist.github.com/matthewmccullough/46017 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 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * A Java method to execute and wait for a shell command to comp...

Friday, August 2nd 2013, 1:34pm

Author: Perry

Radio Button Menu

Yes I'm aware it is a detour. But I find that in many languages, either some item doesn't work as advertised ( even VB built by Microsoft ) or there is something you want to do that has no implementation. I find the best way to learn a language is to jump in head first, and make an application. The problem with VB is that the runtime is not distributed adequately, and it will only run on a Microsoft OS, and they are threatning to drop support for it.... ( That all stinks! ) I Hope the Framework ...

Thursday, August 1st 2013, 1:06pm

Author: Perry

Radio Button Menu

Dani I made a new project and copied your code into it. It's thowing an error when it hits line 5 It says Class 'ButtonGroup' Not Found Am I missing something here? Is there a class that has to be defined? Later ....................... OK .. Got it to work . Thanks Had to change it as below. ------------------------------------------------------- Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Option Explicit Dim tmpGroupFile As VB#VBMenuGroup = Me.MenuBar.createMenuGroup(Nothing, "File", "Fi...

Wednesday, July 31st 2013, 1:28pm

Author: Perry

Radio Button Menu

I noticed that you have the option of setting up a Radio Button menu. Dim mnuEdit As VB#VBRadioButtonMenuItem Also MenuBar.createRadioButtonMenu Can anyone give any examples of how to implement these. I can get the radio button items to show up on the menubar, and I can select them as well .. but radio buttons as opposed to check boxes usually turn off other buttons that are in the same group. The Ideah is that only one in the group can be selected. However if you use my implementation, if you s...

Monday, July 29th 2013, 7:18pm

Author: Perry

Shell

I know how to use the Shell command and it works well. I have already in VB used a ShellExecute command. I think however it is a call to the Kernal. That probably won't work in a multi platform language like Java. It loads and runs an App by loading a file that has the associated extension like .pdf or such. Is there something equivalent in Jabaco? I have already used Jabaco's Shell Command to a similar effect. SN = "Write.exe /L " & Chr(34) & FN & Chr(34) Shell (SN ) That works Ok when you know...

Monday, July 22nd 2013, 6:14pm

Author: Perry

Richtext box

I am trying to save a document from a richtext box with formatting & font designations which change a number of times throughout the document. I know how to print it out from the richtext box. But to save the file ... at least as .rtf Are there any examples ... can I get any direction on this? Perry

Friday, July 19th 2013, 9:42pm

Author: Perry

App.Path

YES!!! I had a copy of my download. still with the original name that I had Copied. I verified the jar was currupt. I DLed it again. Now I have the function back! Thanks a bunch. Dani thanks for your Input. I'm I will study your examples. Anything I can get. Thanks again.

Friday, July 19th 2013, 9:05pm

Author: Perry

App.Path

In fact if I try to declare it as an object, I can't even get that method from the list. See Pic Below. index.php?page=Attachment&attachmentID=361

Friday, July 19th 2013, 8:37pm

Author: Perry

App.Path

I use WinXP On my system the App.Path stopped working when I changed the .Jar to Jabaco-rev105.jar As you suggested I used msgbox VB#FileSystem.CurDir it yeilded this error: java.lang.Exception: CallByName 'CurDir' failed! at VBA.Interaction.CallByName(Interaction.java:187) at VBA.Interaction.CallByName(Interaction.java:185) at VBA.Interaction.CallByName(Interaction.java:176) at frmLibrary.Form_Load(frmLibrary.jsrc:474) at VB.AbstractForm.fireLoaded(AbstractForm.jsrc) at VB.LoadAdapter.run(LoadA...

Friday, July 19th 2013, 7:41pm

Author: Perry

App.Path

I am Using V. 1.5.2 I have installed Jabaco-rev105.jar I am trying to find the App.Path. That Function is no longer working. I want it because I don't want to install the program that I am Making on the user's computer, but I want the program to run and access files from the USB flash drive. Is there a work around? Perhaps a new method I don't know about?

Friday, July 19th 2013, 7:39pm

Author: Perry

Listbox (Checkbox)

Thanks for your example. Your example worked on my machine as well. Now I'll go back and study my code. you are using a ListCellData method that I have never used. I used the addItem method. That being the method used in VB It in previous versions placed the Items with check boxes, providing the CheckBox property Style was selected. Again thanks... I believe this will resolve it. Later ........... That did the Job, and the examples you gave worked fine. Thanks Again.

Friday, July 19th 2013, 1:05pm

Author: Perry

Listbox (Checkbox)

Having Just installed Jabaco-rev105.jar There have been some changes that have rendered my program unworkable. The Listbox.Style = vbListBoxCheckbox does not change the style from the standard listbox Even if I program it in code instead of just checking the option. Is there any way to resolve this, before I go berserk ? Perry

Friday, July 19th 2013, 12:58pm

Author: Perry

JbGrid Issues

It is very important on the program I'm working on that Int() performs properly. I kludged a work around in the mean time. Public Function UInt (Byval V ) As Integer Dim SV() As String SV = Split(Str(V),".") UInt = Val(SV(0)) End Function I didn't mess with the Java source. I don't know enough about what I'm doing there.

Thursday, July 18th 2013, 6:56pm

Author: Perry

JbGrid Issues

I installed Jabaco-rev105.jar. It took care of that problem. But it introduced another bug Dim Ret as single Ret = Int(5/7) returns a result of 1. not 0 like it should. Dim Ret as Integer Ret = 5/7 Gives a better result Perry

Thursday, July 18th 2013, 1:46pm

Author: Perry

Menubars Invisible

The menubars on a program I am making are contextual. That is I want them to appear in some circumstances but not in others. I have found no examples of how to selectively make them invisible. Can anyone help? A small time Later: Never mind. When I DL the Latest JAR file the problem was resolved. Perry Miller

Wednesday, July 17th 2013, 8:41pm

Author: Perry

JbGrid Issues

For the JB Grid Control: Nice but for a few bugs. when you set the property Editable = jbEditOn DblClick, a double click on the grid will fire the double click event on all initially visible cells. However when you need to edit a cell that needs to be scrolled onto the screen, when you double click it, though you can edit the cell, it will not fire the double click event. I don't know quite how to fix this without kludging a work-around. Any Ideas?

Tuesday, July 9th 2013, 5:53pm

Author: Perry

Printing

The Simplest way I found to print out in Jabaco. Format all your output into a rich text control ie.: Richtext1.Text = "This is an Example" or: Richtext1.Text = A$ & vbcrlf Then use: Richtext1.Parent.Print () That is all. You will even be given a printer dialog.

Thursday, January 20th 2011, 5:54am

Author: Perry

Here I'm Puzzled - Picturebox

Yet the GUI gives me 2 possibilities. 1/2 LoadPicture(Resource as String) as Image or 2/2 LoadPicture (Resource as IResource) as Image Clearly the variable FN in my code above is a String, which the GUI says is acceptable. It is also a valid file address, as it was just retrieved from the commondialog control. I also tried the New Resources trick ... It complained as well until I placed a Set command before the Picture1.Picture command. That quieted the compiler .... but though it didn't complai...

Wednesday, January 19th 2011, 12:44am

Author: Perry

Here I'm Puzzled - Picturebox

I wrote this code to familiarize myself with the Controls. I can't understand why this won't work. I placed a Picturebox on a form, & also a commondialog control. I placed this code in th picturbox click event Public Sub Picture1_Click() Dim P As PictureBox,C As CommonDialog,FN As String Set P = Picture1 Set C = CommonDialog1 With C .Filter = "(*.bmp)|*.bmp" .ShowOpen End With FN = C.FileName P.Picture = LoadPicture (FN) P.PaintPicture LoadPicture(FN) ,0,0 End Sub Note the 2 lines before the End...

WoltLab Burning Board