HMG 3.3.0 (Stable) Patch 1

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 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: 1908
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 25 times
Been thanked: 83 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: 1981
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 12 times
Been thanked: 8 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 / Telegrams To cel +54 011 690 26 142

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests