Author Topic: Sync Two Comboboxes  (Read 4485 times)

0 Members and 1 Guest are viewing this topic.

Guest

  • Guest
Sync Two Comboboxes
« 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.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Sync Two Comboboxes
« Reply #1 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.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Guest

  • Guest
Re: Sync Two Comboboxes
« Reply #2 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!

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Sync Two Comboboxes
« Reply #3 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)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Guest

  • Guest
Re: Sync Two Comboboxes
« Reply #4 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".

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Sync Two Comboboxes
« Reply #5 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

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.