You are not logged in.

Search results

Search results 201-220 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 19th 2012, 9:34am

Author: Dani

combobox in a jbgrid cell

Hey there, forget everything about adding ComboBox1 in Form_Load ... Use the 'build in' ComboBox like this: Jabaco Source 1 2 3 4 5 6 7 8 9 Public Sub JBGrid1_BeforeCellEdit(row As Integer, col As Integer) 'Case 1 for column 1 (zero based) Select Case col Case 1 JBGrid1.ComboList = "Test1|Test2" 'invokes ComboList, use '|' as item seperator Case Else JBGrid1.ComboList = "" 'reset to DefaultEditor End Select End Sub to check what happened there: Jabaco Source 1 2 3 Public Sub JBGrid1_AfterCellEdi...

Thursday, November 15th 2012, 4:08pm

Author: Dani

Added Anchor() Property

How do I insert an image to a post? What url is required to not insert the image as an attachment? Thanks, Dani

Thursday, November 15th 2012, 4:04pm

Author: Dani

Added Anchor() Property

Hey there, [img]http://www.jabaco.org/board/index.php?page=Attachment&attachmentID=324&h=38c7e8f2151f64a730f02d6a8e1cb256abc12eff[/img] I suppose that is not intentionally!? Dani

Wednesday, November 14th 2012, 8:56pm

Author: Dani

combobox in a jbgrid cell

Hey there, about the 'DblClick()' ...you mean in the 'cboList'? I don't really see a chance. Get a handle on that list an add a MoueseListener. I don't know if that is possible, sorry.. This is not really satisfying either but it may give you an idea: Jabaco Source 1 2 3 4 5 6 7 Public Sub Form_Load() ComboBox1.Visible = False End Sub Public Sub ComboBox1_Click() ComboBox1.Visible = True End Sub Or simply place the ComboBox behind the Grid at designtime... Dani

Tuesday, November 13th 2012, 3:08pm

Author: Dani

Spinner source with working Change Event

Hey there, since I wanted to use the Jabaco Spinner control I had to change a couple of things in my Jabaco Framework to get it to work as expected. The MouseListener and the KeyListener are obsolete for the JSpinner so I removed them. Basically there where no Events fired that would allow to confirm value changes. I added a ChangeListener. I realized that the implementation of Spinner1.Value should rather set the Value of the underlying SpinnerListModel not of the editor otherwise an initial Ch...

Monday, November 12th 2012, 5:46pm

Author: Dani

JSpinner - How to pass custom SpinnerListModel to constructor

Hey there, OK, got it now! If anyone knows how to pass a string array directly ... please let me know. Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Option Explicit 'Import java#util#ArrayList Public Sub Form_Load() Dim sList As ArrayList = New java#util#ArrayList sList.add("Januar") sList.add("Februar") sList.add("März") sList.add("April") sList.add("Mai") sList.add("Juni") sList.add("Juli") sList.add("August") sList.add("September") sList.add("Oktober") sList.add("November")...

Monday, November 12th 2012, 10:57am

Author: Dani

Option Button unselected works on vb6 .. help now in abaco?

Hey there, try adding one more but invisible button To the button group. When you want To "deselect", Select the invisible one. Jabaco Source 1 OptionBox1.Visible = False If you find another solution ... please share! Dani

Saturday, November 10th 2012, 11:44pm

Author: Dani

JSpinner - How to pass custom SpinnerListModel to constructor

Hey there, to create a spinner, first create its model and then pass the model to the JSpinner constructor. In Java it should look something like this: Source code 1 2 3 4 5 String[] monthStrings = { "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"}; //Edit: ..deleted one line!! SpinnerListModel monthModel = New SpinnerListModel(monthStrings); JSpinner spinner = New JSpinner(monthModel); Now I am trying to achieve the same in J...

Thursday, November 8th 2012, 9:33am

Author: Dani

Added Anchor() Property

Hey there, looks good to me! Thanks for taking care of the framework... Dani

Wednesday, November 7th 2012, 10:48am

Author: Dani

Added Anchor() Property

Hey there theuserbl, I think it would be nice to have this in the framework: Jabaco Source 1 2 3 4 5 6 7 '->ListBox.jsrc ' ******************************** SPECIAL FUNCTIONS ******************************** Public Sub RemoveItemAt(Index As Integer) myModel.removeElementAt(Index) Call fireChange() End Sub So maybe while you are at it ... for the next release!? Dani

Monday, November 5th 2012, 10:05am

Author: Dani

Added Anchor() Property

Hey there theuserbl, thanks a lot, especially for the Silk SVN. I wasn't aware of that possibillity. About the little BugFix - what do you not like about '>=' ... Jabaco Source 1 2 3 4 5 Public Property Let ListIndex(val As Integer) If val >= -1 And val < ListCount Then Call Parent.setSelectedIndex(val) End If End Property I think there are many occasions where you want a ComboBox to be empty. And with ComboBox1.Parent.setSelectedIndex(-1) it is possible anyway! Thanks again, Dani

Saturday, November 3rd 2012, 6:42pm

Author: Dani

Added Anchor() Property

Hey there theuserbl, verry nice example of how to run through all the VB components/ classes. After just little testing with a few controlls I must say it makes rezising much easier. You don't have to worry about the placing of controlls relative to each other. Nice feature. Since I am on an old machine I allways worry about speed and resources. How do you think this will affect loading of Forms and Dialogs? Of course I did not notice any difference, still I'd like to know. Would you mind postin...

Friday, November 2nd 2012, 3:02pm

Author: Dani

combobox in a jbgrid cell

Hey there, Please try to post your code in the Jabaco Code Box for better readability. Use the <JBC> button in the editor to do so!! I don't know the rest of your code. But remember I told you... Quoted 'AFTER!!!!!! DataMatrix or TextMatrix of JBGrid1 is addressed set your new CellEditor If you don't fill your Grid with data your CellEditor will not work! What are you trying to do here? Do you really want the MsgBox to pop up every loop? Quoted Do While Data.next() MsgBox JBGrid1.Parent.getColum...

Thursday, November 1st 2012, 4:44pm

Author: Dani

Option Button unselected works on vb6 .. help now in abaco?

Hey there, I am Not sure I understand! You are trying To unselect every OptionBox of that group? You did Not post the code For UpdateLabels. So I don't know how you are trying to do that! I think when after the initial start of the programm you have made a selection, exactly one button Is selected from Then On! The underlying Java radio-button-group concept does Not allow a Single JRadioButton to be used to 'turn it on and off again' Use the CheckBox Instead! Dani

Wednesday, October 31st 2012, 4:02pm

Author: Dani

combobox in a jbgrid cell

Jabaco Source 1 2 3 4 Public Sub ComboBox1_Change() If Combobox1.ListCount < 3 then Exit Sub MsgBox("your selection is " + ComboBox1) End Sub

Wednesday, October 31st 2012, 3:59pm

Author: Dani

combobox in a jbgrid cell

Hey there, I think you are thinking too complicated here: Jabaco Source 1 2 3 Public Sub ComboBox1_Change() MsgBox("your selection is " + ComboBox1) End Sub The thing is: when ever you .add to the ComboBox ComboBox1_Change() is invoked!! I don't know if that is a BUG or intentionally designed like this... But you have to find some way to work arround that: Jabaco Source 1 2 'If you know how many Items are to be loaded If Combobox1.ListCount < 3 then Exit Sub Dani

Wednesday, October 31st 2012, 3:16pm

Author: Dani

combobox in a jbgrid cell

Hey there, ComboBox1.Text sets the ComboBox1.ListIndex if the String matches the ListItem. Since ComboBox1.ListIndex can not be set to 0 or -1 (see Bugreport) we are using ComboBox1.Parent.setSelectedIndex(-1) wich displays an empty ComboBox1. There is no property of ComboBox that allows us to display text other than ListItems. I think in VB6 that was possible! So when you pass the JBGrid CellContent to the ComboBox it would oben with that String and set its ListIndex accordingly. I don't see ho...

Wednesday, October 31st 2012, 2:17pm

Author: Dani

combobox in a jbgrid cell

Hey there, I don't know how to display any text on the ComboBox. ComboBox1.Text = "test" does not seem to work!! I'll have a look at the framework. This will preserve the grid content when ComboBox1_Click is fired and this will also keep ComboBox1.List from having any item preselected: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 'draw a JBGrid1 'draw a ComboBox1 Public Sub Form_Load() JBGrid1.Editable = jbEditOnClick JBGrid1.TextMatrix(0,2) = "test" 'AFTER!!!!!! DataMatrix or TextMatrix of...

Tuesday, October 30th 2012, 6:14pm

Author: Dani

combobox in a jbgrid cell

Hey there, Ok, my guess is that this should do it: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 'draw a JBGrid1 Public Sub Form_Load() JBGrid1.Editable = jbEditOnClick ' JBGrid1.SelectionMode = flexSelectionByRow Dim ComboBox1 As javax#swing#JComboBox = New javax#swing#JComboBox ComboBox1.AddItem("Yes") ComboBox1.AddItem("No") JBGrid1.TextMatrix(0,2) = "" 'AFTER!!!!!! DataMatrix or TextMatrix of JBGrid1 is addressed set your new CellEditor JBGrid1.Parent.getColumnModel().getColumn(2).setCellEditor(N...

WoltLab Burning Board