You are not logged in.

Search results

Search results 21-40 of 102.

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, December 29th 2009, 6:58am

Author: StefanSchnell

(1) hDC for a picture box? (2) AddressOf? (3) App.Instance?

Hello Mark, here is a small solution to get the hInstance and a little bit more: 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 '-Begin----------------------------------------------------------------- '-External functions-------------------------------------------------- Private WinAPI Function GetWindowLong Lib "user32.dll" _ Alias "GetWindowLongA" (ByVal hwnd As Long, _ ByVal...

Monday, December 28th 2009, 11:55am

Author: StefanSchnell

(1) hDC for a picture box? (2) AddressOf? (3) App.Instance?

Hello Mark, welcome at Jabaco. Your questions are not easy to answer, because they are very Windows specific and also the topic is very complicated. I will try to give you a DC answer: The hDC of a PictureBox in VB is very easy to find out. VB create a PictureBox as a window with CreateWindowEx and the class ThunderPictureBox. So you can use the API functions GetDC and GetWindowDC. The device context is Windows specific, look here for further explanation. It is in Jabaco (Java) not the same. Jav...

Monday, December 28th 2009, 12:43am

Author: StefanSchnell

Graphics/Images/Pictures format

Hello Harddrive, so far I know, in Java, and also in Jabaco, you can use the graphics formats JPG, GIF and PNG. Try this to get the supported image reader formats: Jabaco Source 1 2 3 4 5 6 Dim ImgTypes() As String Dim i As Long ImgTypes = javax#imageio#ImageIO.getReaderFormatNames() For i = 0 To UBound(ImgTypes) Debug.Print ImgTypes(i) Next i Look here for further explanation: http://www.exampledepot.com/egs/javax.im…GetFormats.html and here: Resources Cheers Stefan

Friday, October 16th 2009, 4:33pm

Author: StefanSchnell

How to use pointer with Jabaco

Hi Faldegast, yes, you are right, with this native Windows library you create variables outside of Java and get their addresses in memory back. No garbage collector (GC) or something else. Cheers Stefan

Friday, October 16th 2009, 3:52pm

Author: StefanSchnell

VarPtr with UniCode

Hi Bruce, try this: 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 Private WinAPI Function MessageBox Lib "user32.dll" _ Alias "MessageBoxW" (ByVal hwnd As Long, ByVal lpText As Long, _ ByVal lpCaption As Long, ByVal wType As Long) As Long Private WinAPI Function FromUniCode Lib "kernel32.dll" _ Alias "WideCharToMultiByte" (ByVal CodePage As Long, ByVal dwFlags As Long, _ ByVal lpWideCharStr As Long, ByVal cch...

Saturday, September 19th 2009, 12:16am

Author: StefanSchnell

connect to database MDB

Hello natch, you find an answer here. Cheers Stefan

Saturday, September 19th 2009, 12:08am

Author: StefanSchnell

how to connect to a database? MDB/SQL

Hello natch, here is an example: 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 Dim Con As java#sql#Connection Dim Order As java#sql#Statement Dim Data As ResultSet 'Load the JDBC-ODBC driver Class.forName "sun.jdbc.odbc.JdbcOdbcDriver" 'Create connection to the database test Set Con = java#sql#DriverManager.getConnection("jdbc:odbc:test") 'Create statement Set Order = Con.createStatement 'Create a table Order.executeUpdate("CREATE TABLE employee(N...

Thursday, September 17th 2009, 12:57pm

Author: StefanSchnell

Java and memory usage

Hello Milan, if you want to see a lot of internals about your JavaVM try this: 1. Go to the path [Drive]\Programs\Java\jdk1.6.0_16\bin 2. Start the program jvisualvm.exe 3. And now you see all you want: CPU usage, GC activity in the Monitor tab or all running threads in timeline, table and and and You find a lot of information about Java VisualVM here. Sometimes a programmer must be a detective. Cheers Stefan

Thursday, September 17th 2009, 12:47pm

Author: StefanSchnell

how to connect to a database? MDB/SQL

Hello natch, no problem, here is a description how to connect to an existing MDB and to receive data. If you want to send data, use the command executeUpdate, with the SQL command INSERT, UPDATE or DELETE. Cheers Stefan

Monday, September 14th 2009, 11:28pm

Author: StefanSchnell

Language mix

Hello Manuel, hello community, one suggestion for one of the next generation of Jabaco: It should be possible to mix Jabaco VB like language and Java code anyway you want. Maybe it could be start with the command Java Begin and end with Java End, and all the code between this commands are native Java. What do you think about this possibility? Cheers Stefan

Sunday, September 13th 2009, 8:24pm

Author: StefanSchnell

Make XML-Parser installation optional

Hi Manuel, one suggestion for a future version of Jabaco: I install Jabaco always as virtual software archive. The necessary XML parser installation starts always too, but I do not need it. Is it possible, for a future version, to implement a request at the installation routine, which asks the user whether he want it? Cheers Stefan

Sunday, September 13th 2009, 8:04pm

Author: StefanSchnell

JFormattedTextField

Hi Milan, I get the same result as you. Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 Public Sub Form_Load() Dim DatF As java#text#DateFormat = New java#text#SimpleDateFormat ("dd-MM-yyyy") Dim df As javax#swing#text#DateFormatter = New javax#swing#text#DateFormatter(DatF) Dim tf As javax#swing#JFormattedTextField = New javax#swing#JFormattedTextField(df) tf.setBounds(10,10,300,20) Me.add tf d = Format$(Now, "dd-mm-yyyy") tf.setValue(DatF.format(d)) End Sub I add two lines to your code to see the ...

Sunday, September 13th 2009, 6:39pm

Author: StefanSchnell

Quote characters in Strings

Hello A1880, no solution for your problem, but a small hint how to use escape sequences with Jabaco. Look here for a great collection of Java components. Here a small example how to use the unescape function in the Lang component: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 '-Begin----------------------------------------------------------------- Function unesc(myString As String) As String Dim strWriter As java#io#StringWriter If Len(myString) > 0 Then strWriter = New jav...

Tuesday, September 1st 2009, 12:15am

Author: StefanSchnell

TabStrip does not work

Hello Oliver, many thanks for your explanation, now it works better - but not perfect. Hope that the problem, were you are talking about, correct and the handling simplified in a future version. Cheers Stefan

Tuesday, September 1st 2009, 12:01am

Author: StefanSchnell

A realization of the debug example in Java

Hello community, you find a full realization of of the debug example above in Java here. I create this solution, because I get so many requests for an excutable example in Java from users around the world. Hope you enjoy it. Cheers Stefan

Sunday, August 23rd 2009, 11:46am

Author: StefanSchnell

An addition

Hello community, before I forget it, look at the OSS note 382318, it describes a problem occurs in function module RFC_READ_TABLE and the simple solution, do not use function module RFC_READ_TABLE. Cheers Stefan

Sunday, August 23rd 2009, 11:39am

Author: StefanSchnell

A small ABAP debug example

Hello community, ABAP stores the break points of his debugger in the tables ABDBG_BPS = Table with all BPsABDBF_INFO = Table with the validities of the BPsICFATTRIB = Description of attributes for trace and debugging The following source read this tables and give the information in three grids back. It is a monitor for all BP in a SAP system. 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 ...

Sunday, August 23rd 2009, 11:11am

Author: StefanSchnell

TabStrip does not work

Hello community and Manuel, I think there is something wrong with the TabStrip control. I do the following: 1. Open a TabStrip on Form1. 2. Add two UserControls. 3. Add the TabStrip1.Tabs.Add command to main module. 4. Start the project. 5. Now I see the attaching screen (Form1) and 6. and get this exception twice: Source code 1 2 3 4 Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 0 at javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(BasicTabbedPaneUI.java:...

Sunday, August 23rd 2009, 10:51am

Author: StefanSchnell

Einen habe ich noch...

Hallo Manuel, noch einen Vorschlag für eine zukünftige Version: Das Steuerelement TabStrip ist, so meine Sicht der Dinge, etwas aufwendig zu erstellen. Für eine zukünftige Version wünsche ich mir ein zusätzliches Control, ähnlich dem Tabbed Dialog Control, so dass ich die Steuerelemente direkt auf den einzelnen Registerblättern in der IDE während des Designs positionieren und auch zwischen den Tabs während des Designs hin- und herschalten kann. Weiterhin großes Lob an Dich für dieses Projekt. Ch...

Wednesday, August 12th 2009, 2:10pm

Author: StefanSchnell

Shell and Process ID

Hello Gerome, look here for VarPtr class and library. Cheers Stefan

WoltLab Burning Board