OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: garcigj on October 09, 2008, 11:19:36 AM

Title: GRID ItemStyle 15 (DATE) Problem
Post by: garcigj on October 09, 2008, 11:19:36 AM
Initilize:

(dcl_Grid_Clear (vl-doc-ref 'EspaciosTiempos_EPInsert_Grid1))
    (dcl_Grid_AddColumns (vl-doc-ref 'EspaciosTiempos_EPInsert_Grid1)
         (list  (list  "Fechas:" 0 100)
           (list  "Proyecto" 0 100)
           (list  "Diagrama" 0 100)))
    (setq listIndex
      (list (dcl_Grid_AddString (vl-doc-ref 'EspaciosTiempos_EPInsert_Grid1)
         (strcat    "Inicio de Obra" "," FECHAI "," FECHAIEP) ",")
            (dcl_Grid_AddString (vl-doc-ref 'EspaciosTiempos_EPInsert_Grid1)
         (strcat    "Final de Obra" ","  FECHAF "," FECHAFEP) ",") 
      ))
    (mapcar (function (lambda (idx)
     (dcl_Grid_SetItemStyle (vl-doc-ref 'EspaciosTiempos_EPInsert_Grid1) idx 1 15)
     (dcl_Grid_SetItemStyle (vl-doc-ref 'EspaciosTiempos_EPInsert_Grid1) idx 2 0)
    )) listIndex)

Use:
If you activate the calendar and we use the keyboard changes the values in the Item, but if you activate the calendar we use the mouse and the item loses focus and does not change its value ..

Visual example:
Title: Re: GRID ItemStyle 15 (DATE) Problem
Post by: Fred Tomke on October 09, 2008, 11:21:48 AM
Hello, garcigj, am I right that you're using OpenDCL 4.21? In this case this is a bug. That does not occur in OpenDCL 5 anymore.

Fred
Title: Re: GRID ItemStyle 15 (DATE) Problem
Post by: garcigj on October 09, 2008, 11:35:54 AM
Hello Fred,

I'm using version 5.0.0.25 ENU and continues to misfire ..

José
Title: Re: GRID ItemStyle 15 (DATE) Problem
Post by: owenwengerd on October 18, 2008, 03:44:55 PM
I was able to reproduce this in Windows XP (it works correctly in Vista). This is now fixed for Beta 1.
Title: Re: GRID ItemStyle 15 (DATE) Problem
Post by: garcigj on October 20, 2008, 01:25:54 AM
OK. Thanks Owen