OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Emiliano on April 09, 2014, 03:49:16 AM

Title: Combo Box and Style=4 Color
Post by: Emiliano on April 09, 2014, 03:49:16 AM
I noticed that the control "Combo Box" + "Style = 4 Color" displays the list of colors.
However, the list is only ByLayer, ByBlock and colors 1-2-3-4-5-6-7

you can see "all the other colors?"
Title: Re: Combo Box and Style=4 Color
Post by: owenwengerd on April 09, 2014, 06:43:17 AM
A Style 4 combo can display AutoCAD colors 1 - 255, plus ByLayer and ByBlock. You can use ComboBox-AddColor (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/ComboBox/AddColor.htm) to add additional colors.
Title: Re: Combo Box and Style=4 Color
Post by: Emiliano on April 10, 2014, 04:49:47 AM
So you confirm to me that you can not add a link to the "select color" dialog to select another color.
So I should use 'ComboBox-AddColor' 255-7 = 248 times to add all the colors?

Title: Re: Combo Box and Style=4 Color
Post by: roy_043 on April 10, 2014, 05:02:39 AM
A combo box with 255/256 options? Is that wise? Why not use (acad_colordlg) or (acad_truecolordlg)?
This solution by Fred may be of interest:
http://www.opendcl.com/forum/index.php?topic=1654.msg8228#msg8228
Title: Re: Combo Box and Style=4 Color
Post by: marcoheuer on April 10, 2014, 07:02:28 AM
hello owen,
in version 8.0.0.5 missing the items "select color ..." and "windows ..."
in version 7.0.0.8 they are still present.

best regards
marco
Title: Re: Combo Box and Style=4 Color
Post by: owenwengerd on April 10, 2014, 07:49:10 AM
Ah, I see Marco. I will investigate.
Title: Re: Combo Box and Style=4 Color
Post by: owenwengerd on April 10, 2014, 07:57:44 PM
Quote from: marcoheuer on April 10, 2014, 07:02:28 AM
in version 8.0.0.5 missing the items "select color ..." and "windows ..."

This is now fixed for the next build.

BTW, the new ComboBoxLab sample is a great tool for experimenting with combo box controls.
Title: Re: Combo Box and Style=4 Color
Post by: Emiliano on April 10, 2014, 11:12:05 PM
ahhhhhhhhh......

it seemed strange that it was my choice to include only the colors 1-7  ;D

'm waiting for the next build.  :)
Title: Re: Combo Box and Style=4 Color
Post by: Emiliano on April 14, 2014, 07:13:41 AM
Quote from: owenwengerd on April 10, 2014, 07:57:44 PM
Quote from: marcoheuer on April 10, 2014, 07:02:28 AM
in version 8.0.0.5 missing the items "select color ..." and "windows ..."

This is now fixed for the next build.

BTW, the new ComboBoxLab sample is a great tool for experimenting with combo box controls.

When will you release the new build?
Title: Re: Combo Box and Style=4 Color
Post by: owenwengerd on April 14, 2014, 07:43:20 AM
I guess late this week or over the next weekend.
Title: Re: Combo Box and Style=4 Color
Post by: marcoheuer on April 22, 2014, 09:00:37 AM
thanks owen, it works perfectly.

best regards
marco