Página 1 de 1

Array browser stange behaviour

Publicado: Mar Oct 04, 2005 5:18 pm
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

Array browser stange behaviour

Publicado: Mar Oct 04, 2005 5:20 pm
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

Array browser stange behaviour

Publicado: Mar Oct 04, 2005 5:20 pm
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
--

Array browser stange behaviour

Publicado: Mar Oct 04, 2005 5:50 pm
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