Page 4 of 6

Re: HMG.3.4.0 EVENT ON KEY ERROR

Posted: Tue Jun 23, 2015 3:24 pm
by srvet_claudio
andyglezl wrote:Hola
Estoy tratando de utilizar dentro de un GRID, el evento ON KEY pero me despliega ERROR...

No estoy seguro si esta sintaxis que trae la Referencia esté correcta ?
-----------------------------------------------------------------------------------------------------------------
hello
I'm trying to use within a GRID, the ON KEY event but it displays ERROR ...

I'm not sure if it brings the reference syntax is correct ?
Grid-ON KEY.jpg
--------------------------------------------------------------------------------------------------


OK ya encontré como...(pero entonces está mal la referencia?)
OK and found as ...(but then bad reference?)

Code: Select all

...
ON KEY OnKey()
...

Function OnKey()
	IF HMG_GetLastVirtualKeyDown() == VK_F9
		HMG_CleanLastVirtualKeyDown()
		MSGINFO( "Entre a ONKEY()")
		ValGrid( 1, 2, 1, 1, 1, 1 )
	ENDIF
Return NIL
It is not an error in the documentation are two different syntaxes:

Code: Select all

@ 10,10 GRID <name> ;
     .... ;  
      ON KEY <onkey>  ;
     ....

Code: Select all

DEFINE GRID <name>
     ONKEY <onkey>
END GRID

Corrections at HMG Reference (hmgdoc)

Posted: Tue Jun 23, 2015 3:30 pm
by Pablo César
De facto ocurre dos formas para utilizar con Grid.
Una es ONKEY (para DEFINE GRID) y la otra ON KEY (para @... GRID).

Pero tambien se confunde con el ON KEY que se utiliza para definir el hotkey.
( ver en hmgdoc por Misc.Commands \ On Key )

Por eso consideré como error, porque indicaba al de hotkey.

Podemos mejorar el texto explicando eso, como a seguir:
Screen1.png
Screen1.png (88.73 KiB) Viewed 4515 times
Inclusive el htm OnKey no existia en el hmgdoc para este caso de Grids. Si habia OnKey.htm pero es relativo a HotKeys.

Para diferenciarlos podríamos contar con los archivos OnKey.htm y OnKey_Grid.htm.

(En color rojo, es el nuevo archivo a ser adicionado en hmgdoc)

Puede ser Claudio ?

Att.

Re: Corrections at HMG Reference (hmgdoc)

Posted: Tue Jun 23, 2015 9:50 pm
by andyglezl
+1
De facto ocurre dos formas para utilizar con Grid.
Una es ONKEY (para DEFINE GRID) y la otra ON KEY (para @... GRID).

Pero tambien se confunde con el ON KEY que se utiliza para definir el hotkey.
( ver en hmgdoc por Misc.Commands \ On Key )

Corrections at HMG Reference (hmgdoc)

Posted: Tue Jun 23, 2015 11:21 pm
by Pablo César
Pablo César wrote:Realmente el hmgdoc está incorrecto al apuntar el evento ON EVENT
Falla mia. Disculpen. :oops:

Corregido !

Re: Corrections at HMG Reference (hmgdoc)

Posted: Wed Jun 24, 2015 1:06 am
by luisvasquezcl
Estimado Pablo,
faltan las propiedades row y col en la sintaxis alternativa del browse. Estoy viendo la documentación incluida en el patch 1
DEFINE BROWSE <ControlName>
PARENT <xcValue>
WIDTH <nValue>
HEIGHT <nValue>
HEADERS <acValue>
WIDTHS <anValue>
WORKAREA <xcValue>
FIELDS <acValue>
VALUE <nValue>
FONTNAME <cValue>
FONTSIZE <nValue>
FONTBOLD <lValue>
FONTITALIC <lValue>
FONTUNDERLINE <lValue>
FONTSTRIKEOUT <lValue>
TOOLTIP <cValue>
DYNAMICBACKCOLOR <abValue>
DYNAMICFORECOLOR <abValue>
INPUTMASK <acValue> ]
FORMAT <acValues> ]
INPUTITEMS <aaValues
DISPLAYITEMS <aaValues>
BACKCOLOR <anValue>
FONTCOLOR <anValues
ONGOTFOCUS <ActionProcedure>
ONCHANGE <ActionProcedure
ONLOSTFOCUS <ActionProcedure
ONDBLCLICK <ActionProcedure>
ALLWEDIT <lvalue>
ALLWEAPPEND <lvalue>
ON HEADCLICK <abBlock>
WHEN <abBlock>
VALID <abBlock>
VALIDMESSAGES <acValues>
READONLY <anValues>
LOCK <lValue>
ALLOWDELETE <lValue>
LINES <lValue>
IMAGE <acValue>
JUSTIFY <anJustifyValue>
VSCROLLBAR <lValue>
HELPID <nValue>
BREAK <lValue>
HEADERIMAGES <acValue>
END BROWSE
Saludos cordiales,
Luis Vásquez

Corrections at HMG Reference (hmgdoc)

Posted: Wed Jun 24, 2015 2:31 am
by Pablo César
luisvasquezcl wrote:faltan las propiedades row y col en la sintaxis alternativa del browse.
Estoy viendo la documentación incluida en el patch 1
Hola Luis, ( SOLVED ) Realmente existe esta falla y por lo visto hace mucho tiempo que está con esa falta. :|

Será corregido para el próximo lanzamiento de version de HMG.

Gracias por avisarnos. :)

Corrections at HMG Reference (hmgdoc)

Posted: Fri Sep 16, 2016 6:10 pm
by Pablo César
For HMG Development Team,

At ../DOC/data/image.htm file for Control Image, there is a wrong hBitmap property at doc. Would please cut off it, in order to avoid confusions?
Screen4.png
Screen4.png (41.93 KiB) Viewed 4312 times
Thanks in advanced,

Re: Corrections at HMG Reference (hmgdoc)

Posted: Fri Sep 16, 2016 7:15 pm
by srvet_claudio
Pablo César wrote:For HMG Development Team,

At ../DOC/data/image.htm file for Control Image, there is a wrong hBitmap property at doc. Would please cut off it, in order to avoid confusions?

Screen4.png

Thanks in advanced,
Pablo,
I included the property hBitmap in the image control, but I forgot to include in the source code of HMG.3.4.3.

Corrections at HMG Reference (hmgdoc)

Posted: Mon Oct 31, 2016 10:42 am
by Pablo César
Hi Rathinagiri/Claudio and Roberto,

I would like to make mention of GetProperty() page at hmgdoc.

There are some interesting properties that I wish to be mentioned at doc for users in GetProperty.htm

For example: PrintWindow and many other that you could restrict or make public. But IMHO all information it's important to know and how to be used. Probably making mention of "restrict", "caution" or "advice".

Can I do it ?

Re: Corrections at HMG Reference (hmgdoc)

Posted: Mon Oct 31, 2016 12:46 pm
by srvet_claudio
Pablo César wrote:Hi Rathinagiri/Claudio and Roberto,

I would like to make mention of GetProperty() page at hmgdoc.

There are some interest properties that we could be informed to be used to the users by doc.

For example: PrintWindow and many other that you could restrict or make public. But IMHO all information it's important to know and how to be used. Probably making mention of "restrict", "caution" or "advice".

Can I do it ?
I'm sorry Pablo, but I do not understand what you mean.