You are not logged in.

Search results

Search results 161-180 of 500.

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.

Saturday, September 11th 2010, 9:20pm

Author: A1880

Dim in loop compiler-bug

What are you trying to achieve in the first place? Your sample redefines a variable several times. I that on purpose? Usually you define a variable just once with DIM and possibly REDIM it to change the array dimensions. Your way of redefinition not only confuses the compiler but also the reader and maintainer of your code. Am I missing something? Greetings A1880

Friday, September 3rd 2010, 11:08am

Author: A1880

JBGrid cell 0 0 does not populate - while the rest does

Well, it should be possible to populate all cells as shown is this sample. But you are right with your observation that JBGrid tends to provide some surprises to developers Greetings A1880

Saturday, August 28th 2010, 11:32am

Author: A1880

Find and Replace (Editor Bug)

Yes, you are right. This bug was reported already back in April. Cheers A1880

Thursday, August 26th 2010, 10:30pm

Author: A1880

UserControl and Graphics2d

As a startingpoint for your experiments: 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 Option Explicit Import java#awt Import java#awt#geom Public Sub Command1_Click() ' Picture1 is a control of type PictureBox myPaint Picture1.Parent.getGraphics() End Sub Public Sub myPaint(g As Graphics) Dim g2 As Graphics2D = Cast(g, Graphics2D) Call g2.setStroke(New BasicStroke(2.0)) Call g2.draw(New Rectangle2D$Double(5, 5, 50, 20)) Call g2.setStroke(New BasicStroke(4.0)) Call g2...

Tuesday, August 24th 2010, 3:17pm

Author: A1880

OLE_COLOR and richtextbox.selcolor

OLE_COLOR is not defined in Jabaco. RichTextBox.BackColor is of type "long". You can use "RGB(r, g, b)" to set such a color. There are 143 hits on "color" if you consult the search facility of this forum. Give it a try! Calling external DLLs is one of the more involved areas of Jabaco. It might be easier to go for the Java way rather than exploiting all sorts of tricky Microsoft APIs. Happy experimenting! A1880

Thursday, August 19th 2010, 11:22pm

Author: A1880

drag and drop

This could be a starting point for your experiments: 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 Option Explicit Private bDragging As Boolean Private dx As Integer Private dy As Integer Private lastX As Integer Private lastY As Integer Public Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Not bDragging Then bDragging = True dx = Picture1.Left - X dy = Picture1.Top - Y End If End Sub Public Su...

Thursday, August 19th 2010, 1:40pm

Author: A1880

drag and drop

What would you like to drag and drop? The pictureBox control on the form? Or something else to be dropped on the pictureBox? Greetings A1880

Wednesday, August 18th 2010, 5:05pm

Author: A1880

not closable window

No, I haven't tried on Linux. I suppose, the Linux behaviour depends on your desktop manager and on your X11 environment. It might be possible to trap closing interrupts from within the calling shell. Greetings A1880

Monday, August 16th 2010, 11:36pm

Author: A1880

not closable window

Strangely enough, the following does not yield a main form bigger than the screen: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Option Explicit Public Sub Form_Load() Me.BorderStyle = vbFixedDialog End Sub Public Sub Form_Resize() Me.Move(-100, -100, Screen.Width + 200, Screen.Height + 300) End Sub Public Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 27 Then system.exit 1 End If End Sub Any ideas, why? b.t.w.: with Borderstyle = vbBSNone you can still close the application by using t...

Sunday, August 8th 2010, 6:52pm

Author: A1880

Jabaco - number 1 rated on basic.mindteq.com !!

The proper URL ist http://basic.mindteq.com Note the "q" in mindteq Cheers A1880

Tuesday, August 3rd 2010, 4:14pm

Author: A1880

I need help on jtable component.

You may want to give a try to the search facility of this forum. 6 jtable hits ... Cheers A1880

Monday, August 2nd 2010, 5:13pm

Author: A1880

OK- und Cancel-Button eines Dialoges

Vielleicht hilft ein Blick in den Quellcode von TextBox im Framework. Danach hat TextBox verständlicherweise einen eigenen Handler für Tastendrücke: Jabaco Source 1 2 3 4 5 6 7 8 Public Sub keyPressed(e As KeyEvent) If Me.MultiLine = False Then If e.getKeyCode = KeyEvent.VK_ENTER Then e.consume End If End If RaiseEvent KeyDown(KeyEventToKeyCode(e), KeyEventToShiftConstant(e)) End Sub Generell gebe ich Dir recht: Wenn die vordefinierten Controls im Framework nicht ausreichen, wird's in Jabaco reg...

Sunday, July 11th 2010, 2:44pm

Author: A1880

Problem downloading update to application?

This article might help. I am wondering if the difference between "C:/" and "C:\" is relevant. Another problem might be URLDownloadToFileA() vs. URLDownloadToFileW() Java strings are passed with 2-byte characters. My advice would be to check the return value of URLDownloadToFile See here for details. Try to use a http/network monitoring tool to find out and anlyze the actual network traffic. An alternative could be to implement the download using java APIs rather than WINAPI calls. Look at "java...

Sunday, July 11th 2010, 12:17pm

Author: A1880

Property bag in Jabaco?

Property bags can be used in VB5/VB6 as "VBRUN.PropertyBag" to persist properties of a control. The Jabaco framework does not include a ported PropertyBag class yet. Donators are welcome, as always.

Saturday, July 10th 2010, 9:55pm

Author: A1880

Property bag in Jabaco?

Jabaco controls have a "tag" property which could be used as property bag. You could either assign a sequence of key=value pairs: Jabaco Source 1 xyControl.tag = "key1=value1;key2=value2;key3=value3" or you could pack a complete XML tree into the "tag" property. The key=value pairs can be unpacked using the "Split()" method for strings. I am sure that Google has a lot of hits redarding "java property bag". Please post you findings here. Success A1880

Tuesday, July 6th 2010, 9:28am

Author: A1880

compilation problems

Just edit the filename in the dialog form to have a .jar extension. The IDE does not propose the proper extension when you change the filetype. You can check if it actually is a jar file by renaming it to xxx.zip A proper jar file can be opened as a zip archive. Success! A1880

Monday, July 5th 2010, 3:35pm

Author: A1880

compilation problems

Hi, you may want to search this forum for related posts. The *.exe file is in fact a self-unzipping Jar file. But the Jabaco IDE actually generates pure Jar files, if you select the proper filetype. However, neither Jar nor exe do include the complete Java runtime environment (JRE). A proper JRE has to be installed on every PC which wants to run the executable. Greetings A1880

Saturday, July 3rd 2010, 8:58pm

Author: A1880

Applet lokal okay - "access denied" wenn vom Server gestartet

Um per ODBC auf eine Datenbank zuzugreifen, muss das Applet die lokalen ODBC-Treiber auf dem PC nutzen. Das scheitert evtl. an Sicherheitsrestriktionen. Applets sollen ja eigentlich in einer "Sandbox" arbeiten und möglichst wenig lokale Ressourcen verwenden dürfen, da man sonst per Applet leicht Virien und Trojaner installiert bekommen könnte. Es hat auch den Nachteil, dass man auf jedem nutzenden PC einheitliche ODBC-Quellen konfigurieren müsste. Ich kenne auch keinen direkten Weg, um aus Jabac...

Sunday, June 27th 2010, 5:53pm

Author: A1880

Help on Stopwatch

I think there are a few spelling errors in your code. Try this: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Public Sub Timer1_Timer() Debug.Print Now Label4.Caption = CInt(Label4.Caption) + 1 If Label4.Caption = 60 Then Label4.Caption = "0" Label3.Caption = CInt(Label3.Caption) + 1 If Label3.Caption = 60 Then Label3.Caption = "0" Label2.Caption = CInt(Label2.Caption) + 1 If Label2.Caption = 60 Then Label2.Caption = "0" Label1.Caption = CInt(Label1.Caption) + 1 End If End If End If En...

Saturday, June 26th 2010, 11:14am

Author: A1880

Create a Web Service with Jabaco

The short answer is: Yes, you can use java frameworks like Axis2 to provide web services from Jabaco. The long answer: It probably takes some research to get all the bits and pieces together which are needed to establish a service. Services have to be stable, monitored, secure, performant, configurable, transactional, free of memory leaks, ... The Jabaco IDE is best suited for development of interactive applications with a graphical user interface or for console commandline applications which ar...

WoltLab Burning Board