Página 1 de 1
OnCheckState the 3rd
Publicado: Mar Oct 25, 2005 12:46 pm
por Ingo
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)Â
OnCheckState the 3rd
Publicado: Mar Oct 25, 2005 2:01 pm
por ignacio
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
>
>
OnCheckState the 3rd
Publicado: Mar Oct 25, 2005 4:05 pm
por Ingo
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
>>
>>
>
>