TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: Guest on March 12, 2008, 03:18:30 PM

Title: Sync Two Comboboxes
Post by: Guest on March 12, 2008, 03:18:30 PM
Is it possible to sync two or more combo boxes.  My goal is to modify the contents of one combo box and then have that information synched up with other combo boxes.  Each of the entries in the Drawing Name column are set as the combo box style.
Title: Re: Sync Two Comboboxes
Post by: T.Willey on March 12, 2008, 03:48:47 PM
With regular dcl you could, but you would have to code it yourself within the action_tile.
Title: Re: Sync Two Comboboxes
Post by: Guest on March 12, 2008, 03:52:46 PM
With regular dcl you could, but you would have to code it yourself within the action_tile.

Not going back.... Heck, I don't think I can even WRITE DCL anymore - it's been so long!
Title: Re: Sync Two Comboboxes
Post by: Kerry on March 13, 2008, 05:13:00 AM
yes.

do you want both combos using the same data .. or .. the data in one combo to be decided by the selection value in another ?

Have a look at
(dcl_ComboBox_AddString Form_ComboBox
   NewString [as String])

and

(dcl_ComboBox_DeleteString Form_ComboBox
   nIndex [as Integer])

and

(dcl_ComboBox_AddList Form_ComboBox
   StringList [as List of Strings])

and

(dcl_ComboBox_Clear Form_ComboBox)
Title: Re: Sync Two Comboboxes
Post by: Guest on March 13, 2008, 08:22:24 AM
I want the combo boxes in the last column to use the same data as the combo box next to "Default Project Files".
Title: Re: Sync Two Comboboxes
Post by: Kerry on March 13, 2008, 04:04:19 PM
You could have a list names say DwgNamesList
then
(dcl_ComboBox_AddList Form_ComboBox_Default    DwgNamesList)
(dcl_ComboBox_AddList Form_ComboBox_Data1     DwgNamesList)
etc