Page 1 of 1

Color Picker Dialog

Posted: Mon Nov 12, 2012 7:22 am
by bymulker
Hi all,

In my old VBA code i used 'acedSetColorDialog' for color picker dialog but in intellicad this doesnt seem to work. Does someone know a workaround?

Thanks in advance.

Posted: Mon Nov 12, 2012 12:57 pm
by Accuright
Which version/edition of AutoCAD are you using? I'm looking in the object explorer for AutoCAD 2004 and no such member is listed.

Posted: Tue Nov 13, 2012 12:44 am
by bymulker
This was an API Call as listed below. I dont have MS Common controls.ocx anyway and dont want to get and register because the PC is administrated by a central IT team of my company.

Thanks.

Code: Select all

Public Declare Function acedSetColorDialog Lib "acad.exe" (color As Long, _
                ByVal bAllowMetaColor As Boolean, ByVal nCurLayerColor As Long) As Boolean

Posted: Tue Nov 13, 2012 1:50 am
by bymulker
Ok nevermind the problem is SOLVED :

http://vbnet.mvps.org/index.html?code/ ... color.htm