In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Array browser stange behaviour

Foro de Xailer profesional en español
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Array browser stange behaviour

Mensaje por Giuseppe Bogetti »

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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Array browser stange behaviour

Mensaje por ignacio »

Giuseppe,
> I've done the double setting of control type because setting only
> :nEditType activated only a Get whichever value I set to it.
There was a bug on seting the nEditType when the Browse was already running
that is fixed in PR5a
> Also note the in the GetButton Condition if I set the control type to
> beGET_BUTTON I have a GetListbox instead.
GridEdit is not documented yet. The values for the property nEditMode are
not the same than BrwColumn:nEditType:
#define emNORMAL 0
#define emBUTTON 1
#define emLIST 2
We hope we will publish PR5A tomorrow.
Regards,
BTW this problem is gone whith the first fix I commented
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:[email=1485bqsjoo2z4.rmy52bdiwi1m.dlg@40tude.net...]1485bqsjoo2z4.rmy52bdiwi1m.dlg@40tude.net...[/email]
> 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
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Array browser stange behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 4 Oct 2005 17:18:08 +0200, Giuseppe Bogetti ha scritto:
The forgotten image
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
--
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Array browser stange behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 4 Oct 2005 17:20:08 +0200, Ignacio Ortiz de Zúñiga ha scritto:
> Giuseppe,
>
>> I've done the double setting of control type because setting only
>>:nEditType activated only a Get whichever value I set to it.
>
> There was a bug on seting the nEditType when the Browse was already running
> that is fixed in PR5a
>
>> Also note the in the GetButton Condition if I set the control type to
>> beGET_BUTTON I have a GetListbox instead.
>
> GridEdit is not documented yet. The values for the property nEditMode are
> not the same than BrwColumn:nEditType:
>
> #define emNORMAL 0
> #define emBUTTON 1
> #define emLIST 2
>
> We hope we will publish PR5A tomorrow.
>
> Regards,
>
> BTW this problem is gone whith the first fix I commented
>
> "Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
> news:[email=1485bqsjoo2z4.rmy52bdiwi1m.dlg@40tude.net...]1485bqsjoo2z4.rmy52bdiwi1m.dlg@40tude.net...[/email]
>> 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
Thanks and excuse me for posting in the wrong group.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Responder