Page 1 of 1

Active Control

Posted: Sat Feb 23, 2013 12:47 am
by danielmaximiliano
Hola a Todos :

Necesitaria saber que control esta activo dentro de una ventana, utilizo una funcion compartida un poco extensa en codigo.
para saber en modo consola utiliza ReadVar() para saber la variable y GETACTIVE() para saber el Get activo.

ahora utilizo :

Code: Select all

set key K_F2 to Search() 
de esta forma utilizar

Code: Select all

ON KEY <Key>

            [ OF <ParentWindow> ]

            ACTION <ActionProcedureName> | <bBlock>
Translate Google

Hi Everyone:

Need to know which control is active within a window, use a shared function a bit long in code.
to see in console mode using ReadVar () for the variable and GetActive () for the Get Active.

I now use :

Code: Select all

set key K_F2 to Search() 
Thus use of:

Code: Select all

ON KEY <Key>

            [ OF <ParentWindow> ]

            ACTION <ActionProcedureName> | <bBlock>

search the forum with unsatisfactory result

Re: Active Control

Posted: Sat Feb 23, 2013 2:18 am
by Rathinagiri
Hi

You can use 'this' object.

eg.,

cActiveControlName := this.name
cActiveWindowName := thiswindow.name

Re: Active Control

Posted: Sat Feb 23, 2013 11:45 am
by Mario Mansilla
Hola Daniel :
Puedes usar esta propiedad : FocUsedControl.
<WindowName>.FocusedControl --> cFocusedControlName

If Form_1.Focusedcontrol = "Text_1"
..
..
Endif

Saludos
Mario Mansilla

Re: Active Control

Posted: Mon Feb 25, 2013 12:12 pm
by danielmaximiliano
Hola Mario y Rathi :
gracias por la repuesta que me brindaron, voy a probar y corregir parte de mi codigo para implementar lo que me
sugirieron.
disculpen mi repuesta tardia ya que tuve que modificar mi sistema TPV para que acepte terminales de venta remota.

Translate Google

Hello Mario and Rathi:
thanks for the answer they gave me, I will try and correct some of my code to implement what I
suggested.
excuse my tardy response as I had to modify my POS system to accept remote POS.