Can't seem to figure out how to get a specific button to click, after
inputting a value in an EditBox, and pressing <Enter>.
I tried populating the OnEnter with a method that clicks the button, but
it didn't work. I also tried populating the OnEnter event directly with
the method that is associated with the button click, but that didn't work.
Regards,
DC
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.
How to click a button, after ENTERing from an edit box
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
How to click a button, after ENTERing from an edit box
DC,
try ::[cVarName]:Click()
for example: ::oButton1:Click()
Maarten
try ::[cVarName]:Click()
for example: ::oButton1:Click()
Maarten
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
How to click a button, after ENTERing from an edit box
DC,
You can click the a button using its Click() method, or you can call the
button OnClick event directly.
Regards,
"DC" <NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:4c5e9481$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Can't seem to figure out how to get a specific button to click, after
> inputting a value in an EditBox, and pressing <Enter>.
>
> I tried populating the OnEnter with a method that clicks the button, but
> it didn't work. I also tried populating the OnEnter event directly with
> the method that is associated with the button click, but that didn't work.
>
>
>
> Regards,
>
> DC
>
>
>
You can click the a button using its Click() method, or you can call the
button OnClick event directly.
Regards,
"DC" <NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:4c5e9481$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Can't seem to figure out how to get a specific button to click, after
> inputting a value in an EditBox, and pressing <Enter>.
>
> I tried populating the OnEnter with a method that clicks the button, but
> it didn't work. I also tried populating the OnEnter event directly with
> the method that is associated with the button click, but that didn't work.
>
>
>
> Regards,
>
> DC
>
>
>
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
How to click a button, after ENTERing from an edit box
>>You can click the a button using its Click() method, or you can call
the button OnClick event directly. <<
Yes, that's what I was saying. But it doesn't work.
The Edit box is edtOtherCommands
The Button is btnOtherCommands
In the OnEnter event in edtOtherCommands, there is a method
METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmTXLDBMain
::btnOtherCommands:Click() // <==== This Click doesn't get executed
RETURN Nil
The intent is that, when the user types a command in the
edtOtherCommands box, btnOtherCommands command is clicked. But it
doesn't get clicked, unless the user clicks it manually, or presses the
hot key.
I'm trying to either automatically click the btnOtherCommands button,
whenever the user inputs a value in edtOtherCommands, and then presses
<Enter>.
the button OnClick event directly. <<
Yes, that's what I was saying. But it doesn't work.
The Edit box is edtOtherCommands
The Button is btnOtherCommands
In the OnEnter event in edtOtherCommands, there is a method
METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmTXLDBMain
::btnOtherCommands:Click() // <==== This Click doesn't get executed
RETURN Nil
The intent is that, when the user types a command in the
edtOtherCommands box, btnOtherCommands command is clicked. But it
doesn't get clicked, unless the user clicks it manually, or presses the
hot key.
I'm trying to either automatically click the btnOtherCommands button,
whenever the user inputs a value in edtOtherCommands, and then presses
<Enter>.
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
How to click a button, after ENTERing from an edit box
DC,
Please send a sample or tell us how to reproduce it with any of the
available Xailer samples.
Regards,
"DC" <NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:[email=4c600484@svctag-j7w3v3j....]4c600484@svctag-j7w3v3j....[/email]
> >>You can click the a button using its Click() method, or you can call
> the button OnClick event directly. <<
>
> Yes, that's what I was saying. But it doesn't work.
>
>
>
> The Edit box is edtOtherCommands
> The Button is btnOtherCommands
>
>
> In the OnEnter event in edtOtherCommands, there is a method
>
> METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmTXLDBMain
> ::btnOtherCommands:Click() // <==== This Click doesn't get executed
> RETURN Nil
>
>
> The intent is that, when the user types a command in the edtOtherCommands
> box, btnOtherCommands command is clicked. But it doesn't get clicked,
> unless the user clicks it manually, or presses the hot key.
>
> I'm trying to either automatically click the btnOtherCommands button,
> whenever the user inputs a value in edtOtherCommands, and then presses
> <Enter>.
>
>
>
>
>
>
>
Please send a sample or tell us how to reproduce it with any of the
available Xailer samples.
Regards,
"DC" <NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:[email=4c600484@svctag-j7w3v3j....]4c600484@svctag-j7w3v3j....[/email]
> >>You can click the a button using its Click() method, or you can call
> the button OnClick event directly. <<
>
> Yes, that's what I was saying. But it doesn't work.
>
>
>
> The Edit box is edtOtherCommands
> The Button is btnOtherCommands
>
>
> In the OnEnter event in edtOtherCommands, there is a method
>
> METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmTXLDBMain
> ::btnOtherCommands:Click() // <==== This Click doesn't get executed
> RETURN Nil
>
>
> The intent is that, when the user types a command in the edtOtherCommands
> box, btnOtherCommands command is clicked. But it doesn't get clicked,
> unless the user clicks it manually, or presses the hot key.
>
> I'm trying to either automatically click the btnOtherCommands button,
> whenever the user inputs a value in edtOtherCommands, and then presses
> <Enter>.
>
>
>
>
>
>
>
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
How to click a button, after ENTERing from an edit box
Hi Ignacio,
Sorry for the loooong delay, had to take care of other priorities for
the second half of the year.
This is a simple debugger for a third-party tool.
There's no point in uploading the whole project, because it requires
some setup from an external application.
Below are some code snippets from the project. Let me know if there's
any other information needed, thanks.
After inputting a command in the edtOtherCommands textbox, when you
press <Enter> it does nothing. If you press tab, then it will move to
the btnOtherCommands button as desired, where you can press <Enter>. Or
you can use the hotkey to click the btnOtherCommands.
The problem is, to be able to press <Enter> after typing a command in
edtOtherCommands, and for it to automatically jump to the
btnOtherCommands. The two components are immediately adjacent, on the form.
(I'll share all of this with the Xailer community, when it's complete):
....
COMPONENT edtOtherCommands
COMPONENT btnOtherCommands
COMPONENT edtCurrentRule
COMPONENT edtIncludePaths
....
The OnEnter event method for edtOtherCommands is
METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmDebuggerMain
// Support for typing commands not covered by the basic debugger form.
::btnOtherCommands:Click()
RETURN Nil
The OnClick event for btnOtherCommands is
METHOD ExecuteOtherCommand( oSender ) CLASS frmDebuggerMain
Local aLines := {}
Local sLine := ""
Local sLines := ""
Local nthLine := 0
Local nLineCounter := 0
Local sCommand := AllTrim( ::edtOtherCommands:Value )
If sCommand == "stop"
// For use in development
// Breakpoint in Xailer IDE here
sCommand := sCommand
Endif
oStdIn:WriteLine( sCommand )
sLines := ReadUntilDebuggerString(oStdErr, Self)
::memOtherOutput:Value := sLines
RETURN Nil
Sorry for the loooong delay, had to take care of other priorities for
the second half of the year.
This is a simple debugger for a third-party tool.
There's no point in uploading the whole project, because it requires
some setup from an external application.
Below are some code snippets from the project. Let me know if there's
any other information needed, thanks.
After inputting a command in the edtOtherCommands textbox, when you
press <Enter> it does nothing. If you press tab, then it will move to
the btnOtherCommands button as desired, where you can press <Enter>. Or
you can use the hotkey to click the btnOtherCommands.
The problem is, to be able to press <Enter> after typing a command in
edtOtherCommands, and for it to automatically jump to the
btnOtherCommands. The two components are immediately adjacent, on the form.
(I'll share all of this with the Xailer community, when it's complete):
....
COMPONENT edtOtherCommands
COMPONENT btnOtherCommands
COMPONENT edtCurrentRule
COMPONENT edtIncludePaths
....
The OnEnter event method for edtOtherCommands is
METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmDebuggerMain
// Support for typing commands not covered by the basic debugger form.
::btnOtherCommands:Click()
RETURN Nil
The OnClick event for btnOtherCommands is
METHOD ExecuteOtherCommand( oSender ) CLASS frmDebuggerMain
Local aLines := {}
Local sLine := ""
Local sLines := ""
Local nthLine := 0
Local nLineCounter := 0
Local sCommand := AllTrim( ::edtOtherCommands:Value )
If sCommand == "stop"
// For use in development
// Breakpoint in Xailer IDE here
sCommand := sCommand
Endif
oStdIn:WriteLine( sCommand )
sLines := ReadUntilDebuggerString(oStdErr, Self)
::memOtherOutput:Value := sLines
RETURN Nil
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
How to click a button, after ENTERing from an edit box
DC,
I am afraid I can not help you with that little information. Sorry.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"DC" escribió en el mensaje de noticias:4ce98bbb$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Hi Ignacio,
Sorry for the loooong delay, had to take care of other priorities for
the second half of the year.
This is a simple debugger for a third-party tool.
There's no point in uploading the whole project, because it requires
some setup from an external application.
Below are some code snippets from the project. Let me know if there's
any other information needed, thanks.
After inputting a command in the edtOtherCommands textbox, when you
press <Enter> it does nothing. If you press tab, then it will move to
the btnOtherCommands button as desired, where you can press <Enter>. Or
you can use the hotkey to click the btnOtherCommands.
The problem is, to be able to press <Enter> after typing a command in
edtOtherCommands, and for it to automatically jump to the
btnOtherCommands. The two components are immediately adjacent, on the form.
(I'll share all of this with the Xailer community, when it's complete):
....
COMPONENT edtOtherCommands
COMPONENT btnOtherCommands
COMPONENT edtCurrentRule
COMPONENT edtIncludePaths
....
The OnEnter event method for edtOtherCommands is
METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmDebuggerMain
// Support for typing commands not covered by the basic debugger form.
::btnOtherCommands:Click()
RETURN Nil
The OnClick event for btnOtherCommands is
METHOD ExecuteOtherCommand( oSender ) CLASS frmDebuggerMain
Local aLines := {}
Local sLine := ""
Local sLines := ""
Local nthLine := 0
Local nLineCounter := 0
Local sCommand := AllTrim( ::edtOtherCommands:Value )
If sCommand == "stop"
// For use in development
// Breakpoint in Xailer IDE here
sCommand := sCommand
Endif
oStdIn:WriteLine( sCommand )
sLines := ReadUntilDebuggerString(oStdErr, Self)
::memOtherOutput:Value := sLines
RETURN Nil
I am afraid I can not help you with that little information. Sorry.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"DC" escribió en el mensaje de noticias:4ce98bbb$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Hi Ignacio,
Sorry for the loooong delay, had to take care of other priorities for
the second half of the year.
This is a simple debugger for a third-party tool.
There's no point in uploading the whole project, because it requires
some setup from an external application.
Below are some code snippets from the project. Let me know if there's
any other information needed, thanks.
After inputting a command in the edtOtherCommands textbox, when you
press <Enter> it does nothing. If you press tab, then it will move to
the btnOtherCommands button as desired, where you can press <Enter>. Or
you can use the hotkey to click the btnOtherCommands.
The problem is, to be able to press <Enter> after typing a command in
edtOtherCommands, and for it to automatically jump to the
btnOtherCommands. The two components are immediately adjacent, on the form.
(I'll share all of this with the Xailer community, when it's complete):
....
COMPONENT edtOtherCommands
COMPONENT btnOtherCommands
COMPONENT edtCurrentRule
COMPONENT edtIncludePaths
....
The OnEnter event method for edtOtherCommands is
METHOD ClickOtherButton( oSender, oPrevCtl ) CLASS frmDebuggerMain
// Support for typing commands not covered by the basic debugger form.
::btnOtherCommands:Click()
RETURN Nil
The OnClick event for btnOtherCommands is
METHOD ExecuteOtherCommand( oSender ) CLASS frmDebuggerMain
Local aLines := {}
Local sLine := ""
Local sLines := ""
Local nthLine := 0
Local nLineCounter := 0
Local sCommand := AllTrim( ::edtOtherCommands:Value )
If sCommand == "stop"
// For use in development
// Breakpoint in Xailer IDE here
sCommand := sCommand
Endif
oStdIn:WriteLine( sCommand )
sLines := ReadUntilDebuggerString(oStdErr, Self)
::memOtherOutput:Value := sLines
RETURN Nil
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