You are not logged in.

Search results

Search results 281-300 of 325.

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, November 7th 2011, 8:55am

Author: Dani

Can not initialize Type variable (multidimensional array)

Hey there, I have already posted this in the General topics, questions and discussions section. The multidimensional array as part of the type structure causes a compiler error. You can read a bit more about this there. I just thought it belongs here too! Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Option Explicit Private Type arr a() As Long End Type Public Sub Form_Load() Dim arr1 As arr 'Redim arr1.a(0 To 4) 'works!! Redim arr1.a(0 To 4, 1 To 2) MsgBox "arr1.a " _ & Lboun...

Monday, November 7th 2011, 8:44am

Author: Dani

Can not initialize Type variable (multidimensional array)

Hey there thuserbl, Quoted At the moment I have no time for it. I think you have been very 'gründlich' on this one allready! Thanks for that. I guess I can use the array outside the type structure then. Dani PS: I will post this in the Bugreport section. I am sure Manuel wil read it. A lot of people are very frustrated with him and I agree he should be a bit more present. The community would be much more active if he could drop a couple lines every week. On the other hand he has given us a very ...

Sunday, November 6th 2011, 10:26pm

Author: Dani

Can not initialize Type variable (multidimensional array)

Hey there again, Actually on second thought Jabaco does support multidimensonal arrays! Jabaco Source 1 2 3 4 5 6 7 8 9 10 Option Explicit Public Sub Form_Load() Dim a() As Long Redim a(0 To 4, 1 To 2) MsgBox "a " _ & Lbound(a, 1) & " bis " & Ubound(a, 1) & ", " _ & Lbound(a, 2) & " bis " & Ubound(a, 2) Unload Me End Sub works fine and isn't that a multidimensional array? It just does not work as part of my Type structure and I can not figure out why: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 ...

Sunday, November 6th 2011, 9:01pm

Author: Dani

Can not initialize Type variable (multidimensional array)

Hmmmm...thats sad..., thanks for explaining in detail! I am used to the VB restriction of Ubound and Lbound but reading your posts it seems like Java String Array provides features that would make life a lot easyer right now . So I guess I have to rewrite my VB6 chartplotting.bas a bit. A x/y - price/Date plotting module. Or maybe since I was populating the array from a database I might simply skip the array and use the resultSet instead and do the scale calculations on the fly or even in the SQ...

Sunday, November 6th 2011, 6:39pm

Author: Dani

Can not initialize Type variable (multidimensional array)

Hey there, why does the following not work for a multidimensional array? Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Option Explicit Private Type arr a() As Long End Type Public Sub Form_Load() Dim arr1 As arr 'Redim arr1.a(0 To 4) 'works!! Redim arr1.a(0 To 4, 1 To 2) MsgBox "arr1.a " _ & Lbound(arr1.a, 1) & " bis " & Ubound(arr1.a, 1) & ", " _ & Lbound(arr1.a, 2) & " bis " & Ubound(arr1.a, 2) Unload Me End Sub 'ERROR: 'java.lang.VerifyError: (class: Form1, method: Form_Loa...

Friday, November 4th 2011, 4:23pm

Author: Dani

open a link with default browser

Hey everybody, in order to open a link to a web page from within my Jabaco progs with the default browser I am using the 'Bare Bones Browser Launch solution' Quoted The Bare Bones Browser Launch solution is appropriate when a compact lightweight method to open a web page is needed. Bare Bones is free and works on Mac OS X, GNU/Linux, Unix (Solaris), and Windows XP/Vista/7. ... It will attempt to use the Desktop library from Java 6 but fall back to system calls if the library is unavailable. It i...

Thursday, November 3rd 2011, 11:15am

Author: Dani

MousePointer - has to be set for every control seperatly

Hey everybody, when turning Me.MousePointer = vbHourglass I expect the MousePointer to stay like this for all the controls on the form or container they are hosted in. In Jabaco that is not the case! The MousePointer changes back to default when moved over most controls. Is this behavior wanted? Because you have to set the MousePointer for every single control on the form or container!!! Dani PS: I don't know if this is different between framework versions!?

Monday, October 31st 2011, 7:55pm

Author: Dani

Frame control array does not work

Hey everybody, a simple frame with the index property set to any valid value hosting any kind of control throws an Error: index.php?page=Attachment&attachmentID=298 Dani

Monday, October 31st 2011, 7:43pm

Author: Dani

Dialog behaves visually as if set .enabled=False

Hey everybody, I ve got a very strange thing happening with a dialog that I call like this Jabaco Source 1 2 3 Dim Dialog2 As New Dialog1 Dialog2.Parent.setLocationRelativeTo(Me) Dialog2.Show(1) now in the dialog I have all kinds of txtBoxes, lbls, frames and so on. The dialog works fine for a couple runs but every once in awhile it starts up but all the controlls are frozen as if set to .enabled=False. Visually nothing works but I found out that for some controls 'behind the scenes' my code is ...

Tuesday, October 25th 2011, 10:30am

Author: Dani

animated gif - how to?

Thank You, I experimented a little bit with this. Thanks to you inspiration a came up with a direct way. SamplePng needs to be present in your '/Res' directory. Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 Public Sub Form_Load() JBGrid1.Cols = 2 JBGrid1.Rows = 2 JBGrid1.Header(0) = "Pictures" 'needs to be adressed JBGrid1.TextMatrix(0, 0) = "" JBGrid1.DataMatrix(0,0).Icon = SamplePng JBGrid1.Parent.setRowHeight(80) End Sub I was also looking at: Jabaco Source 1 2 JBGrid1.Editable = jbEditOnClick ...

Sunday, October 23rd 2011, 9:43am

Author: Dani

animated gif - how to?

Thanks again theuserbl, very nice example. Opened my eyes about a couple of other issues as well!! It is not that easy to allways come up with the according java syntax. Still I am glad Jabaco is this flexible. Um den Bogen noch etwas weiter zu spannen: How would I add an image (not animated) to a JBgrid cell? Dani

Saturday, October 22nd 2011, 8:52pm

Author: Dani

animated gif - how to?

Hey there, did anyone ever succeed in showing an animated .gif in a Label or other usercontrol? Does anyone have an idea how to do that? Dani index.php?page=Attachment&attachmentID=292 Edit: I just found this post stating that a PictureBox does what I am looking for. My PictureBox does not play the animated .gif above! Is there any special format/ framerate, etc. required? Edit2: Hey, and don't tell me to use the progressbar!!

Friday, October 21st 2011, 1:42pm

Author: Dani

KeyPress Events - Filter

Thanks theuserbl, that is quick ... And dirty ... I am aware of a solution like that. As you pointed out it might be better to use the java referenz. Thats my thing with Jabaco I guess. I am never quite sure whether to use Java "shortcuts"/"detours" or not!? Staying with our little example here if I would set up a keylistener Jabaco Source 1 Text1.Parent.addKeyListener(Me) I would have to do that for every TextBox I need one for. Now in the key event I need to sort out wich TextBox fired the eve...

Friday, October 21st 2011, 10:07am

Author: Dani

KeyPress Events - Filter

Thanks for your reply, the problem is that the values are still passed through to the UI. In VB that is not the case! [img]http://www.jabaco.org/board/index.php?page=Attachment&attachmentID=290&h=0ffc74b1a1606d76930a18e797443141779b6af3[/img] Using a keylistener in Jabaco it would probably look something like this: Jabaco Source 1 2 3 4 5 6 7 Public Sub keyTyped(arg2 As KeyEvent) ' Eingabebegrenzung auf 0-9 Dim KeyCode As Integer KeyCode = arg2.getKeyChar If (KeyCode < arg2.VK_0) Or (KeyCode > a...

Thursday, October 20th 2011, 3:34pm

Author: Dani

KeyPress Events - Filter

Hey everybody, any chance getting this to work without setting up a keylistener the java way? Jabaco Source 1 2 3 Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End Sub Dani

Tuesday, September 27th 2011, 11:05am

Author: Dani

TextBox Alignment - false input behavior

Hey there theuserbl, thanks for pointing that out! I was just wondering how come that when typing letters and numbers it is the expected behaviour but typing a comma, decimalpoint, etc. it is not!? These are characters of the same fontset so I would expect them to bahave the same way. Dani

Friday, September 23rd 2011, 10:27am

Author: Dani

TextBox Alignment - false input behavior

Hey there, Jabaco Source 1 2 3 Public Sub Form_Load() Text1.Parent.setComponentOrientation(RIGHT_TO_LEFT) End Sub When typing letters and numbers the alignment is right. But then typing a comma, decimalpoint, etc. changes the alignment back to default! Also the caret changes to a different one! Dani

Friday, September 16th 2011, 10:01pm

Author: Dani

Spinner control - does not fire events

Hey there, I am not getting most of the spinner controls events fired! Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Public Sub Spinner1_Click() Debug.Print "I am alive!" End Sub Public Sub Spinner1_KeyPress(KeyAscii As Integer) Debug.Print "I am alive!" End Sub Public Sub Spinner1_KeyDown(KeyCode As Integer, Shift As Integer) Debug.Print "I am alive!" End Sub Public Sub Spinner1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Debug.Print "I am alive!" E...

Friday, September 16th 2011, 2:36pm

Author: Dani

JBGrid - formatting

Hey everybody, there are a couple issues about the JBGrid that either I can not get to work or simply don't work. I don't know!? Anyway the following does not work: Jabaco Source 1 2 3 4 5 ' JBGrid Public Sub Form_Load() grdTest.TextMatrix(0, 0) = "Test" grdTest.DataMatrix(0, 0).FontBold = True End Sub also in the JBGrid it is possible to set every cell to a different FontColor, alignment and so on ... But when a cell is selected the FontColor and other formatting turns to default values. You ca...

Wednesday, September 14th 2011, 1:02am

Author: Dani

No blinking cursor in textbox

Hey everybody, here is some more about Fonts: Jabaco Source 1 2 3 4 5 ' JBGrid Public Sub Form_Load() grdTest.TextMatrix(0, 0) = "Test" grdTest.DataMatrix(0, 0).FontBold = True End Sub .FontBold does not change!! In the JBGrid it is possible to set every cell to a different FontColor Jabaco Source 1 grdTest.DataMatrix(0, 0).CellForeColor = vbred But when a cell is selected the FontColor turns to a Default ForeColor. Is there any way to prevent that? So it would stay red and only the BackColor ch...

WoltLab Burning Board