Ignacio,
it works when you input a char and then leaving the ComboBox by tab.
It works too if you input "antonia" and the name will be changed by the
OnExit-method into "Antonia" and then leaving by tab.
But it doesn't work if you select an item from the ComboBox-itemlist!!
Pleas look again to the example.
Regards
Ingo
Attached files Test.zip (2.1 KB)Â
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.
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.
OnCheckState the 3rd
- ignacio
- Site Admin
- Mensajes: 9463
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
OnCheckState the 3rd
Ingo,
Try this also:
METHOD ComboChange( oSender, nIndex, nOldIndex ) CLASS TForm1
oSender:nIndex := nIndex
::RequestState()
RETURN NIL
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText) .OR. ::oCombo:nIndex > 0
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje
news:435e0d1b$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ignacio,
>
> it works when you input a char and then leaving the ComboBox by tab.
> It works too if you input "antonia" and the name will be changed by the
> OnExit-method into "Antonia" and then leaving by tab.
>
> But it doesn't work if you select an item from the ComboBox-itemlist!!
>
> Pleas look again to the example.
>
> Regards
>
> Ingo
>
>
Try this also:
METHOD ComboChange( oSender, nIndex, nOldIndex ) CLASS TForm1
oSender:nIndex := nIndex
::RequestState()
RETURN NIL
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText) .OR. ::oCombo:nIndex > 0
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje
news:435e0d1b$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ignacio,
>
> it works when you input a char and then leaving the ComboBox by tab.
> It works too if you input "antonia" and the name will be changed by the
> OnExit-method into "Antonia" and then leaving by tab.
>
> But it doesn't work if you select an item from the ComboBox-itemlist!!
>
> Pleas look again to the example.
>
> Regards
>
> Ingo
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
OnCheckState the 3rd
Ignacio,
oops that's it. Many, many thanks!
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
news:435e1ea2$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> Try this also:
>
> METHOD ComboChange( oSender, nIndex, nOldIndex ) CLASS TForm1
>
> oSender:nIndex := nIndex
> ::RequestState()
>
> RETURN NIL
>
> METHOD Edit2CheckState( oSender ) CLASS TForm1
>
> RETURN !EMPTY(::oCombo:cText) .OR. ::oCombo:nIndex > 0
>
> Regards,
>
> "Ingo" <ingo.jh@web.de> escribió en el mensaje
> news:435e0d1b$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ignacio,
>>
>> it works when you input a char and then leaving the ComboBox by tab.
>> It works too if you input "antonia" and the name will be changed by the
>> OnExit-method into "Antonia" and then leaving by tab.
>>
>> But it doesn't work if you select an item from the ComboBox-itemlist!!
>>
>> Pleas look again to the example.
>>
>> Regards
>>
>> Ingo
>>
>>
>
>
oops that's it. Many, many thanks!
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
news:435e1ea2$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> Try this also:
>
> METHOD ComboChange( oSender, nIndex, nOldIndex ) CLASS TForm1
>
> oSender:nIndex := nIndex
> ::RequestState()
>
> RETURN NIL
>
> METHOD Edit2CheckState( oSender ) CLASS TForm1
>
> RETURN !EMPTY(::oCombo:cText) .OR. ::oCombo:nIndex > 0
>
> Regards,
>
> "Ingo" <ingo.jh@web.de> escribió en el mensaje
> news:435e0d1b$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ignacio,
>>
>> it works when you input a char and then leaving the ComboBox by tab.
>> It works too if you input "antonia" and the name will be changed by the
>> OnExit-method into "Antonia" and then leaving by tab.
>>
>> But it doesn't work if you select an item from the ComboBox-itemlist!!
>>
>> Pleas look again to the example.
>>
>> Regards
>>
>> Ingo
>>
>>
>
>