OpenDCL Combobox help?

Started by Shade, April 08, 2008, 12:39:26 PM

Previous topic - Next topic

Shade

Attach find my LSP code and ODCL file.

I am a rookie with OpenDCL and I am trying to translate one of my lisps with DCL into ODCL.

At current I am a little confused. When both my combo_boxes where combo_boxes, using dcl_Control_SetText would set the text when i initialized.  Now that I have switched the combo_box to a dropdown, dcl_Control_SetText, no longer set the display text.
Do I have to work with a item number and a list like with DCL?

Any help would be appreciated?

BazzaCAD

Welcome to the club. :)
I didn't look at your code, but...
The SetText does work, you just don't see the effects of the change (since it's read-only).
You can use:
(dcl_ComboBox_SetCurSel Untitled_Form1_ComboBox1 nIndex [as Integer])
OR
(Setq rValue (dcl_ComboBox_SelectString Untitled_Form1_ComboBox1 SearchString [as String]))

And you can use the following to get the selection or text
(Setq rValue (dcl_ComboBox_GetCurSel Untitled_Form1_ComboBox1))
OR
(Setq rValue (dcl_ComboBox_GetTBText Untitled_Form1_ComboBox1))
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom