Página 1 de 1

OnCheckState problem

Publicado: Mar Oct 25, 2005 11:05 am
por Ingo
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C5D953.F34CD960
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0008_01C5D953.F34CD960"
------=_NextPart_001_0008_01C5D953.F34CD960
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
sorry I have still problems with TComboBox / OnCheckState.
Please look at the example:
a form with ComboBox an editcontrol and an OK-button
The editcontrol:OnCheckState() returns .F. if ComboBox:cText is empty =
and on the other side .T. if not
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)
=20
Please input "a" or any char into the ComboBoxEdit and then try to =
change the focus to the Edit-control by using the TAB-key. The focus =
changes to the OK-button and not to editcontrol and afterwards by the =
next turn over the Combo he will change to the editcontrol.
In FW16 I used the When-clause of the editcontrol and called =
oDlg:AevalWhen() in the Valid-clause of the ComboBox.
How can I do the same in Xailer?
Regards
Ingo
------=_NextPart_001_0008_01C5D953.F34CD960
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>sorry I have still problems with =
TComboBox /=20
OnCheckState.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>Please look at the =
example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>a form with ComboBox an editcontrol and =
an=20
OK-button</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The editcontrol:OnCheckState() returns =
..F.Âif=20
ComboBox:cText is empty and on the other side .T. if not</FONT></DIV>
<DIV>Â</DIV>
<DIV><FONT face=3DArial size=3D2>ÂÂÂ METHOD =
Edit2CheckState( oSender=20
) CLASS TForm1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ÂÂÂ RETURN=20
!EMPTY(::oCombo:cText)<BR></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>Please </FONT><FONT face=3DArial =
size=3D2>input "a" or=20
any charÂinto the ComboBoxEdit and then try to change the focus to =
the=20
Edit-control by using the TAB-key. The focusÂchanges to the =
OK-button and=20
not to editcontrol and afterwards by the next turn over the =
ComboÂhe will=20
change to the editcontrol.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>In FW16 I used the When-clause of the =
editcontrol=20
and called oDlg:AevalWhen() in the Valid-clause of the =
ComboBox.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>How can I do the same in =
Xailer?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV>
<DIV><FONT face=3DArial size=3D2>Ingo</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>Â</DIV></BODY></HTML>
------=_NextPart_001_0008_01C5D953.F34CD960--
------=_NextPart_000_0007_01C5D953.F34CD960
Content-Type: application/x-zip-compressed;
name="Test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Test.zip"
UEsDBAoAAAAAAMBUWTMAAAAAAAAAAAAAAAAHAAAAU291cmNlL1BLAwQUAAAA CABhVFkzvVB3Z/oB
AABJCAAAEAAAAFNvdXJjZS9Gb3JtMS5wcmfNVF1vmzAUfUfiP9x1L6RaSFJp mmSpkxIH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
I3UcJui5TBH6v7qXmuLufyWAPmS7qbaT4WLe+bTK96/3+oGtvh5uRfoHDlr1 B0q1tzf2XNh0/uMb
1gS0eiY/XZEVF/60HlSY6c/XtHFaSPgn+HIlaMPwn/8fUEsBAhQACgAAAAAA wFRZMwAAAAAAAAAA
AAAAAAcAAAAAAAAAAAAQAP9BAAAAAFNvdXJjZS9QSwECFAAUAAAACABhVFkz vVB3Z/oBAABJCAAA
EAAAAAAAAAABACAAtoElAAAAU291cmNlL0Zvcm0xLnByZ1BLAQIUABQAAAAI AGFUWTPTSM0UxwEA
ACQEAAAQAAAAAAAAAAEAIAC2gU0CAABTb3VyY2UvRm9ybTEueGZtUEsBAhQA FAAAAAgAME5XM+9P
NVvQAAAAJQEAAA8AAAAAAAAAAQAgALaBQgQAAFNvdXJjZS9UZXN0LnByZ1BL AQIUABQAAAAIAE1T
WTM3AN+powEAANQCAAAIAAAAAAAAAAEAIAC2gT8FAABUZXN0LnhwalBLBQYA AAAABQAFACQBAAAI
BwAAAAA=
------=_NextPart_000_0007_01C5D953.F34CD960--

Attached files Test.zip (2.1 KB)Â

OnCheckState problem

Publicado: Mar Oct 25, 2005 12:21 pm
por ignacio
Ingo,
Change all your code for only this two lines:
METHOD ComboEditUpdate( oSender ) CLASS TForm1
RETURN ::RequestState()
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)
RequestState() is equivalent to AevalWhen()
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje news:[email=435df541@ozsrvnegro.ozlan.local...]435df541@ozsrvnegro.ozlan.local...[/email]
Hello,
sorry I have still problems with TComboBox / OnCheckState.
Please look at the example:
a form with ComboBox an editcontrol and an OK-button
The editcontrol:OnCheckState() returns .F. if ComboBox:cText is empty and on the other side .T. if not
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)

Please input "a" or any char into the ComboBoxEdit and then try to change the focus to the Edit-control by using the TAB-key. The focus changes to the OK-button and not to editcontrol and afterwards by the next turn over the Combo he will change to the editcontrol.
In FW16 I used the When-clause of the editcontrol and called oDlg:AevalWhen() in the Valid-clause of the ComboBox.
How can I do the same in Xailer?
Regards
Ingo
--

OnCheckState problem

Publicado: Mar Oct 25, 2005 12:27 pm
por ingo[1]
Ignacio,
I changed the code, it doesn't work by using TAB-key.
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag news:435e0734$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
Ingo,
Change all your code for only this two lines:
METHOD ComboEditUpdate( oSender ) CLASS TForm1
RETURN ::RequestState()
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)
RequestState() is equivalent to AevalWhen()
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje news:[email=435df541@ozsrvnegro.ozlan.local...]435df541@ozsrvnegro.ozlan.local...[/email]
Hello,
sorry I have still problems with TComboBox / OnCheckState.
Please look at the example:
a form with ComboBox an editcontrol and an OK-button
The editcontrol:OnCheckState() returns .F. if ComboBox:cText is empty and on the other side .T. if not
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)

Please input "a" or any char into the ComboBoxEdit and then try to change the focus to the Edit-control by using the TAB-key. The focus changes to the OK-button and not to editcontrol and afterwards by the next turn over the Combo he will change to the editcontrol.
In FW16 I used the When-clause of the editcontrol and called oDlg:AevalWhen() in the Valid-clause of the ComboBox.
How can I do the same in Xailer?
Regards
Ingo
--

OnCheckState problem

Publicado: Mar Oct 25, 2005 12:29 pm
por ingo[1]
Ignacio,
heureka :-)) now it works!!!!!!
Thanks
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag news:435e0734$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
Ingo,
Change all your code for only this two lines:
METHOD ComboEditUpdate( oSender ) CLASS TForm1
RETURN ::RequestState()
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)
RequestState() is equivalent to AevalWhen()
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje news:[email=435df541@ozsrvnegro.ozlan.local...]435df541@ozsrvnegro.ozlan.local...[/email]
Hello,
sorry I have still problems with TComboBox / OnCheckState.
Please look at the example:
a form with ComboBox an editcontrol and an OK-button
The editcontrol:OnCheckState() returns .F. if ComboBox:cText is empty and on the other side .T. if not
METHOD Edit2CheckState( oSender ) CLASS TForm1
RETURN !EMPTY(::oCombo:cText)

Please input "a" or any char into the ComboBoxEdit and then try to change the focus to the Edit-control by using the TAB-key. The focus changes to the OK-button and not to editcontrol and afterwards by the next turn over the Combo he will change to the editcontrol.
In FW16 I used the When-clause of the editcontrol and called oDlg:AevalWhen() in the Valid-clause of the ComboBox.
How can I do the same in Xailer?
Regards
Ingo
--