Corrections at HMG Reference (hmgdoc)

Moderator: Rathinagiri

User avatar
srvet_claudio
Posts: 1934
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 28 times
Been thanked: 112 times
Contact:

Re: HMG.3.4.0 EVENT ON KEY ERROR

Post by srvet_claudio » Tue Jun 23, 2015 3:24 pm

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
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 176 times

Post by Pablo César » Tue Jun 23, 2015 3:30 pm

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 871 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
andyglezl
Posts: 835
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 7 times
Been thanked: 20 times
Contact:

Post by andyglezl » Tue Jun 23, 2015 9:50 pm

+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 )
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 176 times

Post by Pablo César » Tue Jun 23, 2015 11:21 pm

Pablo César wrote:Realmente el hmgdoc está incorrecto al apuntar el evento ON EVENT
Falla mia. Disculpen. :oops:

Corregido !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
luisvasquezcl
Posts: 1021
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 11 times
Been thanked: 14 times
Contact:

Post by luisvasquezcl » Wed Jun 24, 2015 1:06 am

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

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 176 times

Post by Pablo César » Wed Jun 24, 2015 2:31 am

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. :)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 176 times

Post by Pablo César » Fri Sep 16, 2016 6:10 pm

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 668 times
Thanks in advanced,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
srvet_claudio
Posts: 1934
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 28 times
Been thanked: 112 times
Contact:

Post by srvet_claudio » Fri Sep 16, 2016 7:15 pm

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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 176 times

Post by Pablo César » Mon Oct 31, 2016 10:42 am

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 ?
Last edited by Pablo César on Mon Oct 31, 2016 12:51 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
srvet_claudio
Posts: 1934
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 28 times
Been thanked: 112 times
Contact:

Post by srvet_claudio » Mon Oct 31, 2016 12:46 pm

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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

Post Reply