2012-03-27 05:58 UTC
I just can not understand how to use the combobox with style "4 - Color". :'(
I simply want to understand how to read and set a color.
- To read the color set, use the following code
(setq col (dcl_ComboBox_GetTBText Applic_Form_ComboCol)))
However, in this way, the revenue of the color string in the language of AutoCAD (English, Italian, German, etc..)
how can I get the number of colors selected to avoid checking the language of AutoCAD?
- To set a color using the lisp code, I tried using
(setq num_color "3") ;<--Green
(dcl_ComboBox_SetCurSel Applic_Form_ComboCol (+ (atoi num_color) 1))
This code works, until the list of the colors, is added, at the top the last color used. :'(
I'm confused ???
Can you help me?
Thanks in advance.
I simply want to understand how to read and set a color.
- To read the color set, use the following code
(setq col (dcl_ComboBox_GetTBText Applic_Form_ComboCol)))
However, in this way, the revenue of the color string in the language of AutoCAD (English, Italian, German, etc..)
how can I get the number of colors selected to avoid checking the language of AutoCAD?
- To set a color using the lisp code, I tried using
(setq num_color "3") ;<--Green
(dcl_ComboBox_SetCurSel Applic_Form_ComboCol (+ (atoi num_color) 1))
This code works, until the list of the colors, is added, at the top the last color used. :'(
I'm confused ???
Can you help me?
Thanks in advance.