Menu

Combo with two columns

Help
2011-12-12
2013-03-18
  • nenad cikic

    nenad cikic - 2011-12-12

    I have this combo
    COMBO(@s20),AT(7,67,154,14),USE(BlagajnaOpis),IMM,FORMAT('34L(2)|M~<154>ifra~@n14@400L(2)|M~opis~@s100@'),DROP(5),FROM(Queue:FileDropCombo)

    It is two column combo but in c2j i see just the first column. I suppose in java the combo can not have more columns. Having multi column combo might well be clarion peculiarity.

    Thanks
    Nenad

     
  • Andrew Barnham

    Andrew Barnham - 2011-12-12

    Yes, c2j only supports single column drop downs.  Adding support for more than one column is possible but possibly alot of work.

     
  • nenad cikic

    nenad cikic - 2011-12-12

    ok,no problem

     
  • Andrew Barnham

    Andrew Barnham - 2011-12-12

    Following up…  Combo needs alot of work.

    In c2j, Combos are implemented using Swing JComboBox; and lists use amodified JTable.  The problem is that lists in JComboBox are reimplemented, using their own ComboBoxModel etc etc which is heavily limited.  So painstaking reimplementation of things such as IMM mode on drop down list etc is not in place.

    The solution to get this working correctly is to extend c2j implementation of LIST, so COMBO is essentially a JTextField with a drop down JTable; reuse all the code in c2j list implementation.  Rebuilding COMBO to mix JTextField + JTable is no small task.  Keen to make this happen but my workload is quite high at the moment and looks like it will be high into the next couple of months at least. For the meantime,  COMBO is going to remain poorly implemented :-( ; unless someone else has a go at it :-).

     
  • nenad cikic

    nenad cikic - 2011-12-13

    OK, no problem. I will have just one combo box I think and I have this workaround so it's working. If I want I can also populate combo queue manually.

    I would like to help you extend the funcionalities of c2j but I am a newbie in Java and I have my boss that tells me what to do and what not. Also last Friday the owners communicated to us they will lower wages by 10%, so I am a bit pissed (excuse me for this off topic), and I do not want to fight with them about programming priorities. Do you know anyone in Australia that needs a good programmer? :)

    Nenad

     

Log in to post a comment.

Auth0 Logo