OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on October 29, 2008, 05:59:31 AM

Title: dcl_Control_GetBackColor
Post by: velasquez on October 29, 2008, 05:59:31 AM
Hello 
working with PictureBox in OpenDCL 4.1.2.2 and Windows XP I do (dcl_Control_SetBackColor DuctilCAD_Tubos_BG-Flange 11239775) this works well. 
But when I do (Setq JoyBackG (dcl_Control_GetBackColor DuctilCAD_Tubos_BG-Flange)) this comes back -32417. 
This value is totally wandered. 
Why does this happen? 
Is it possible to capture the correct value?

Thanks
Title: Re: dcl_Control_GetBackColor
Post by: owenwengerd on October 29, 2008, 07:39:02 AM
There was a bug in the code causing the color to be returned as a short integer instead of a long integer. I've fixed the bug for the OpenDCL 5 Beta 1 build. Unfortunately I don't think there is any way to work around the problem in OpenDCL 4.