HMG 3.3.0 (Stable) Patch 1

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

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

HMG 3.3.0 (Stable) Patch 1

Post by Pablo César » Fri Jun 06, 2014 11:10 am

Rathinagiri wrote:Claudio, there is a small fix to h_controlmisc.prg with regard to numeric textbox.

When the value is assigned decimals are truncated.

Here is the fix. Change the following line No. 514 with the following:

Line with problem:

Code: Select all

        SetWindowText ( c , ALLTRIM(STR(Int(value))) )
Fix:

Code: Select all

        SetWindowText ( c , ALLTRIM(STR(value)) )
Yes you are right Rathi, this was missing correction, specially when use SetProperty in Numeric TextBox.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
srvet_claudio
Posts: 1952
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 31 times
Been thanked: 120 times
Contact:

Post by srvet_claudio » Fri Jun 06, 2014 1:33 pm

Rathinagiri wrote:Claudio, there is a small fix to h_controlmisc.prg with regard to numeric textbox.

When the value is assigned decimals are truncated.

Here is the fix. Change the following line No. 514 with the following:

Line with problem:

Code: Select all

        SetWindowText ( c , ALLTRIM(STR(Int(value))) )
Fix:

Code: Select all

        SetWindowText ( c , ALLTRIM(STR(value)) )
Done.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
danielmaximiliano
Posts: 2044
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 87 times
Been thanked: 12 times
Contact:

Post by danielmaximiliano » Thu Jun 12, 2014 2:52 pm

Hola a todos :
estoy mirando file:///C:/hmg.3.3.0/doc/data/index.htm la seccion Read Keyboard and Mouse
en un lugar dice :

Hello everyone:
'm looking at file :/ / / C :/ hmg.3.3.0/doc/data/index.htm Read the section Keyboard and Mouse
in a place says:

Complementary Functions:
- Gets Form/Control Name and Form Parent Name by window handle (complement, e.g. to the read keyboard functions):

- GetFormNameByHandle ( hWnd, @cFormName, @cFormParentName ) --> Return nFormIndex

- GetControlNameByHandle ( hWnd, @cControlName, @cFormParentName ) --> Return nControlIndex

donde genero el manejador hWnd , ya que necesito generar un funcion generica que usen varias ventanas
where gender handler hWnd , and I need to generate a generic function using multiple windows
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

Post Reply