Active Control

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2646
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Active Control

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Active Control

Post by Rathinagiri »

Hi

You can use 'this' object.

eg.,

cActiveControlName := this.name
cActiveWindowName := thiswindow.name
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: Active Control

Post by Mario Mansilla »

Hola Daniel :
Puedes usar esta propiedad : FocUsedControl.
<WindowName>.FocusedControl --> cFocusedControlName

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

Saludos
Mario Mansilla
User avatar
danielmaximiliano
Posts: 2646
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Active Control

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply