Look at the /doc/combobox.html file.

You should write something like:

 .combobox list insert end {item1 item2 item3}

pathName list option args
     This command is used to manipulate the items in the dropdown list. It
     has several forms, depending on option:


     delete first ?last?
          Deletes one or more elements of the dropdown list. First and last
          are indices specifying the first and last elements in the range
          to delete. If last isn't specified it defaults to first, i.e. a
          single element is deleted.


     get first ?last?
          If last is omitted, returns the contents of the dropdown list
          element indicated by first, or an empty string if first refers to
          a non-existent element. If last is specified, the command returns
          a list whose elements are all of the dropdown list elements
          between first and last, inclusive. Both first and last may have
          any of the standard forms for indices.


     index index
          Returns the integer index value that corresponds to index. If
          index is end the return value is a count of the number of
          elements in the dropdown list (not the index of the last
          element).


     insert index ?element element ...?
          Inserts zero or more new elements in the list just before the
          element given by index. If index is specified as end then the new
          elements are added to the end of the list. Returns an empty
          string.


     size
          Returns a decimal string indicating the total number of elements
          in the dropdown list.



|--------+------------------------------------->
|        |          [EMAIL PROTECTED] |
|        |          Sent by:                   |
|        |          [EMAIL PROTECTED]|
|        |          eforge.net                 |
|        |                                     |
|        |                                     |
|        |          11/13/2001 02:52 AM        |
|        |                                     |
|--------+------------------------------------->
  
>-----------------------------------------------------------------------------------------------------------|
  |                                                                                    
                       |
  |       To:     [EMAIL PROTECTED]                                      
                       |
  |       cc:                                                                          
                       |
  |       Fax to:                                                                      
                       |
  |       Subject:     [vtcl-user] How to insert any item into the VTCL-Combobox ?     
                       |
  |                                                                                    
                       |
  
>-----------------------------------------------------------------------------------------------------------|




Hi all,

i need some basic help working with the combobox in VTCL1.52 under Unix.
How is it possible to insert any item into the combobox ?
I cant find any possibility , neither via VTCL nor via editor.

I know - it is really simple - but i dont know how.
I tried some things like

 .combobox insert end "test"

or setting  the corresponding textvariable to "test1\n test2\n" and so
on...
Nothing works.
Any help ????

I need to insert this items via a procedure.

Thanks in advance for your help

Herbert

[EMAIL PROTECTED]


_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user




_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to