Variables Vacias * * URGE * *

HMG en Español

Moderator: Rathinagiri

User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

Re: Variables Vacias * * URGE * *

Post by AidTIC »

Ya, con la versión HMG 3.0.46 no habia problemas con el gif me de hacia el fondo transparente. Y ahora, el mismo fuente, compilado con HMG 3.1.5 el fondo se queda Negro. Con los botones del toolbar.
Skydone Solutions
www.skydone.com
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Variables Vacias * * URGE * *

Post by srvet_claudio »

AidTIC wrote:Ya, con la versión HMG 3.0.46 no habia problemas con el gif me de hacia el fondo transparente. Y ahora, el mismo fuente, compilado con HMG 3.1.5 el fondo se queda Negro. Con los botones del toolbar.
Cambia en el archivo: c:\hmg.3.1.5\source\c_toolbar.c en a linea 294 la original:
if (himage==NULL) // ScaleStretch, Transparent, BackgroundColor, AdjustImage, TransparentColor
himage = (HWND) HMG_LoadPicture( (TCHAR*)HMG_parc(2) , hb_parni(11) , hb_parni(12) , (HWND) hwndTB , 0 , 0 , -1, 0, -1 ) ;


por:
if (himage==NULL) // ScaleStretch, Transparent, BackgroundColor, AdjustImage, TransparentColor
himage = (HWND) HMG_LoadPicture( (TCHAR*)HMG_parc(2) , hb_parni(11) , hb_parni(12) , (HWND) hwndTB , 0 , 1 , -1, 0, -1 ) ;


y volver a recrear la lib (BuildAllLib.bat)
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Variables Vacias * * URGE * *

Post by esgici »

srvet_claudio wrote: Cambia en el archivo: c:\hmg.3.1.5\source\c_toolbar.c en a linea 294 la original:
...
por:
...
y volver a recrear la lib (BuildAllLib.bat)
Hola Dr.

Is this a patch :? :?:

Saludos
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Variables Vacias * * URGE * *

Post by srvet_claudio »

esgici wrote: Is this a patch :? :?:
Yes for compatibility with old behavior, please test (toolbar images) with images that are not .BMP
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

Re: Variables Vacias * * URGE * *

Post by AidTIC »

Perfecto, he cambiado el o por el uno como me habeis indicado, y perfecto.
Muchisimas gracias.

Ahora otro detalle, al ejecutar BuildAllLib.bat, he observado el siguente warning,

Compiling 'source\h_windows.prg'...
Lines 19656, Functions/Procedures 117
Generating C source output to 'C:\Users\Martin\AppData\Local\Temp\hbmk_2wbv9w.di
r\h_windows.c'... Done.
../../../../../../hmg.3.1.5/source/c_grid.c: In function 'HB_FUN_LISTVIEW_GETSUB
ITEMRECT':
../../../../../../hmg.3.1.5/source/c_grid.c:502:2: warning: the address of 'Rect
' will always evaluate as 'true' [-Waddress]
../../../../../../hmg.3.1.5/source/c_grid.c: In function 'HB_FUN_LISTVIEW_GETITE
MRECT':
../../../../../../hmg.3.1.5/source/c_grid.c:518:2: warning: the address of 'Rect
' will always evaluate as 'true' [-Waddress]

Harbour 3.2.0dev (r1307180024)
Copyright (c) 1999-2013, http://harbour-project.org/" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
Compiling 'h_crypt.prg'...
Lines 649, Functions/Procedures 8
Generating C source output to 'C:\Users\Martin\AppData\Local\Temp\hbmk_tm4w22.di
r\h_crypt.c'... Done.



no se si afecta ha algo.

Saludos y mil gracias.
Skydone Solutions
www.skydone.com
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Variables Vacias * * URGE * *

Post by srvet_claudio »

AidTIC wrote:Ahora otro detalle, al ejecutar BuildAllLib.bat, he observado el siguente warning,

Compiling 'source\h_windows.prg'...
Lines 19656, Functions/Procedures 117
Generating C source output to 'C:\Users\Martin\AppData\Local\Temp\hbmk_2wbv9w.di
r\h_windows.c'... Done.
../../../../../../hmg.3.1.5/source/c_grid.c: In function 'HB_FUN_LISTVIEW_GETSUB
ITEMRECT':
../../../../../../hmg.3.1.5/source/c_grid.c:502:2: warning: the address of 'Rect
' will always evaluate as 'true' [-Waddress]
../../../../../../hmg.3.1.5/source/c_grid.c: In function 'HB_FUN_LISTVIEW_GETITE
MRECT':
../../../../../../hmg.3.1.5/source/c_grid.c:518:2: warning: the address of 'Rect
' will always evaluate as 'true' [-Waddress]
Estas advertencias son "normales" no afectan en nada.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Variables Vacias * * URGE * *

Post by esgici »

srvet_claudio wrote:
esgici wrote: Is this a patch :? :?:
Yes for compatibility with old behavior, please test (toolbar images) with images that are not .BMP
Does will be added in next release :?:

Saludos
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Variables Vacias * * URGE * *

Post by srvet_claudio »

esgici wrote:
srvet_claudio wrote:
esgici wrote: Is this a patch :? :?:
Yes for compatibility with old behavior, please test (toolbar images) with images that are not .BMP
Does will be added in next release :?:

Saludos
Yes, I'm working on it.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

Re: Variables Vacias * * URGE * *

Post by AidTIC »

una pregunta, que editor para DBF/cdx me recomendáis de 64 Bits??? Estaba gastando el PROMETHEUS 2000, pero no funciona en 64 Bits.

Gracias.
Skydone Solutions
www.skydone.com
Post Reply