Array browser stange behaviour
Publicado: Mar Oct 04, 2005 5:18 pm
Hi,
I have an array browser with two columns as in attached image.
lAllowEdit is set to .t. and lFastEdit is set to .f.
All the two columns have nEditType set to beNONE.
I activate editing in OnKeyDown event of browser and OnDataDblClick of
column 2.
The code that activates editing is as follows:
DO CASE
// Get Button Editing
CASE ( .. GetButton Condition ... )
::oBrwVars:aCols[ MY_VAR_VALUE ]:nEditType := beGET
::oBrwVars:aCols[ MY_VAR_VALUE ]:oGridEdit:nEditMode := beGET
::oBrwVars:aCols[ MY_VAR_VALUE ]:Edit()
// Get Listbox Editing
CASE ( ... GetListbox Condition ... )
::oBrwVars:aCols[ MY_VAR_VALUE ]:nEditType := beGET_LISTBOX
::oBrwVars:aCols[ MY_VAR_VALUE ]:aEditListText := ::aCollation
::oBrwVars:aCols[ MY_VAR_VALUE ]:aEditListBound := ::aCollation
::oBrwVars:aCols[ MY_VAR_VALUE ]:oGridEdit:nEditMode := beGET_LISTBOX
::oBrwVars:aCols[ MY_VAR_VALUE ]:Edit()
// Get Editing
CASE ( .. Get Condition ... )
::oBrwVars:aCols[ MY_VAR_VALUE ]:nEditType := beGET
::oBrwVars:aCols[ MY_VAR_VALUE ]:Edit()
ENDCASE
I've done the double setting of control type because setting only
:nEditType activated only a Get whichever value I set to it.
Also note the in the GetButton Condition if I set the control type to
beGET_BUTTON I have a GetListbox instead.
Is it a know bug or is there something wrong with my copy of Xailer ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
I have an array browser with two columns as in attached image.
lAllowEdit is set to .t. and lFastEdit is set to .f.
All the two columns have nEditType set to beNONE.
I activate editing in OnKeyDown event of browser and OnDataDblClick of
column 2.
The code that activates editing is as follows:
DO CASE
// Get Button Editing
CASE ( .. GetButton Condition ... )
::oBrwVars:aCols[ MY_VAR_VALUE ]:nEditType := beGET
::oBrwVars:aCols[ MY_VAR_VALUE ]:oGridEdit:nEditMode := beGET
::oBrwVars:aCols[ MY_VAR_VALUE ]:Edit()
// Get Listbox Editing
CASE ( ... GetListbox Condition ... )
::oBrwVars:aCols[ MY_VAR_VALUE ]:nEditType := beGET_LISTBOX
::oBrwVars:aCols[ MY_VAR_VALUE ]:aEditListText := ::aCollation
::oBrwVars:aCols[ MY_VAR_VALUE ]:aEditListBound := ::aCollation
::oBrwVars:aCols[ MY_VAR_VALUE ]:oGridEdit:nEditMode := beGET_LISTBOX
::oBrwVars:aCols[ MY_VAR_VALUE ]:Edit()
// Get Editing
CASE ( .. Get Condition ... )
::oBrwVars:aCols[ MY_VAR_VALUE ]:nEditType := beGET
::oBrwVars:aCols[ MY_VAR_VALUE ]:Edit()
ENDCASE
I've done the double setting of control type because setting only
:nEditType activated only a Get whichever value I set to it.
Also note the in the GetButton Condition if I set the control type to
beGET_BUTTON I have a GetListbox instead.
Is it a know bug or is there something wrong with my copy of Xailer ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy